| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2013 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2013 Google Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 * | 25 * |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef ContextLifecycleNotifier_h | 28 #ifndef ContextLifecycleNotifier_h |
| 29 #define ContextLifecycleNotifier_h | 29 #define ContextLifecycleNotifier_h |
| 30 | 30 |
| 31 #include "core/CoreExport.h" | 31 #include "core/CoreExport.h" |
| 32 #include "platform/LifecycleNotifier.h" | 32 #include "platform/LifecycleNotifier.h" |
| 33 #include "wtf/Noncopyable.h" | 33 #include "platform/wtf/Noncopyable.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class SuspendableObject; | 37 class SuspendableObject; |
| 38 class ContextLifecycleObserver; | 38 class ContextLifecycleObserver; |
| 39 class ExecutionContext; | 39 class ExecutionContext; |
| 40 | 40 |
| 41 class CORE_EXPORT ContextLifecycleNotifier | 41 class CORE_EXPORT ContextLifecycleNotifier |
| 42 : public LifecycleNotifier<ExecutionContext, ContextLifecycleObserver> { | 42 : public LifecycleNotifier<ExecutionContext, ContextLifecycleObserver> { |
| 43 WTF_MAKE_NONCOPYABLE(ContextLifecycleNotifier); | 43 WTF_MAKE_NONCOPYABLE(ContextLifecycleNotifier); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 57 ContextLifecycleNotifier() {} | 57 ContextLifecycleNotifier() {} |
| 58 | 58 |
| 59 #if DCHECK_IS_ON() | 59 #if DCHECK_IS_ON() |
| 60 bool Contains(SuspendableObject*) const; | 60 bool Contains(SuspendableObject*) const; |
| 61 #endif | 61 #endif |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace blink | 64 } // namespace blink |
| 65 | 65 |
| 66 #endif // ContextLifecycleNotifier_h | 66 #endif // ContextLifecycleNotifier_h |
| OLD | NEW |