/src/mozilla-central/dom/cache/Action.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
3 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | | |
7 | | #include "mozilla/dom/cache/Action.h" |
8 | | |
9 | | namespace mozilla { |
10 | | namespace dom { |
11 | | namespace cache { |
12 | | |
13 | | void |
14 | | Action::CancelOnInitiatingThread() |
15 | 0 | { |
16 | 0 | NS_ASSERT_OWNINGTHREAD(Action); |
17 | 0 | // It is possible for cancellation to be duplicated. For example, an |
18 | 0 | // individual Cache could have its Actions canceled and then shutdown |
19 | 0 | // could trigger a second action. |
20 | 0 | mCanceled = true; |
21 | 0 | } |
22 | | |
23 | | Action::Action() |
24 | | : mCanceled(false) |
25 | 0 | { |
26 | 0 | } |
27 | | |
28 | | Action::~Action() |
29 | 0 | { |
30 | 0 | } |
31 | | |
32 | | bool |
33 | | Action::IsCanceled() const |
34 | 0 | { |
35 | 0 | return mCanceled; |
36 | 0 | } |
37 | | |
38 | | } // namespace cache |
39 | | } // namespace dom |
40 | | } // namespace mozilla |