LCOV - code coverage report
Current view: top level - dom/cache - Action.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 11 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 5 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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           0 : Action::CancelOnInitiatingThread()
      15             : {
      16           0 :   NS_ASSERT_OWNINGTHREAD(Action);
      17             :   // It is possible for cancellation to be duplicated.  For example, an
      18             :   // individual Cache could have its Actions canceled and then shutdown
      19             :   // could trigger a second action.
      20           0 :   mCanceled = true;
      21           0 : }
      22             : 
      23           0 : Action::Action()
      24           0 :   : mCanceled(false)
      25             : {
      26           0 : }
      27             : 
      28           0 : Action::~Action()
      29             : {
      30           0 : }
      31             : 
      32             : bool
      33           0 : Action::IsCanceled() const
      34             : {
      35           0 :   return mCanceled;
      36             : }
      37             : 
      38             : } // namespace cache
      39             : } // namespace dom
      40             : } // namespace mozilla

Generated by: LCOV version 1.13