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 30 matching lines...) Expand all Loading... |
41 void addObserver(ContextLifecycleObserver*); | 41 void addObserver(ContextLifecycleObserver*); |
42 | 42 |
43 void notifyResumingActiveDOMObjects(); | 43 void notifyResumingActiveDOMObjects(); |
44 void notifySuspendingActiveDOMObjects(); | 44 void notifySuspendingActiveDOMObjects(); |
45 void notifyStoppingActiveDOMObjects(); | 45 void notifyStoppingActiveDOMObjects(); |
46 | 46 |
47 unsigned activeDOMObjectCount() const; | 47 unsigned activeDOMObjectCount() const; |
48 bool hasPendingActivity() const; | 48 bool hasPendingActivity() const; |
49 | 49 |
50 protected: | 50 protected: |
51 explicit ContextLifecycleNotifier(ExecutionContext*); | |
52 | |
53 #if ENABLE(ASSERT) | 51 #if ENABLE(ASSERT) |
54 bool contains(ActiveDOMObject*) const; | 52 bool contains(ActiveDOMObject*) const; |
55 #endif | 53 #endif |
56 }; | 54 }; |
57 | 55 |
58 } // namespace blink | 56 } // namespace blink |
59 | 57 |
60 #endif // ContextLifecycleNotifier_h | 58 #endif // ContextLifecycleNotifier_h |
OLD | NEW |