Files
palemoon27/dom/cache/Action.cpp
T
roytam1 7f40159c31 import change from rmottola/Arctic-Fox:
- Bug 1110487 P2 Implement the nsIOfflineStorage interface in Cache. (e61a6d548)
- Bug 1110487 P3 Cache should ensure Actions are finished before completing. (0278071c5)
- Bug 1110487 P4 Allow Cache Action objects to be canceled more than once. (8734ce14e)
- Bug 1149987 - Part 1: Make it possible to send an ErrorResult that doesn't encode a JS exception through the IPDL layer (f8c8abf60)
- Bug 1149987 - Part 7: Send the full ErrorResult in the AddAllResponse IPC message; r=bkelly (0201b05e7)
- Bug 1145321 - Disconnect the CacheStorage object from its actor when it gets cycle collected; (78aac7cb5)
2019-06-27 10:41:36 +08:00

41 lines
886 B
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/dom/cache/Action.h"
namespace mozilla {
namespace dom {
namespace cache {
void
Action::CancelOnInitiatingThread()
{
NS_ASSERT_OWNINGTHREAD(Action);
// It is possible for cancellation to be duplicated. For example, an
// individual Cache could have its Actions canceled and then shutdown
// could trigger a second action.
mCanceled = true;
}
Action::Action()
: mCanceled(false)
{
}
Action::~Action()
{
}
bool
Action::IsCanceled() const
{
return mCanceled;
}
} // namespace cache
} // namespace dom
} // namespace mozilla