Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.h

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ScriptedIdleTaskController_h 5 #ifndef ScriptedIdleTaskController_h
6 #define ScriptedIdleTaskController_h 6 #define ScriptedIdleTaskController_h
7 7
8 #include "core/dom/IdleDeadline.h" 8 #include "core/dom/IdleDeadline.h"
9 #include "core/dom/SuspendableObject.h" 9 #include "core/dom/SuspendableObject.h"
10 #include "platform/Timer.h" 10 #include "platform/Timer.h"
(...skipping 18 matching lines...) Expand all
29 ~ScriptedIdleTaskController(); 29 ~ScriptedIdleTaskController();
30 30
31 DECLARE_TRACE(); 31 DECLARE_TRACE();
32 32
33 using CallbackId = int; 33 using CallbackId = int;
34 34
35 int registerCallback(IdleRequestCallback*, const IdleRequestOptions&); 35 int registerCallback(IdleRequestCallback*, const IdleRequestOptions&);
36 void cancelCallback(CallbackId); 36 void cancelCallback(CallbackId);
37 37
38 // SuspendableObject interface. 38 // SuspendableObject interface.
39 void contextDestroyed() override; 39 void contextDestroyed(ExecutionContext*) override;
40 void suspend() override; 40 void suspend() override;
41 void resume() override; 41 void resume() override;
42 42
43 void callbackFired(CallbackId, 43 void callbackFired(CallbackId,
44 double deadlineSeconds, 44 double deadlineSeconds,
45 IdleDeadline::CallbackType); 45 IdleDeadline::CallbackType);
46 46
47 private: 47 private:
48 explicit ScriptedIdleTaskController(ExecutionContext*); 48 explicit ScriptedIdleTaskController(ExecutionContext*);
49 49
(...skipping 12 matching lines...) Expand all
62 WebScheduler* m_scheduler; // Not owned. 62 WebScheduler* m_scheduler; // Not owned.
63 HeapHashMap<CallbackId, Member<IdleRequestCallback>> m_callbacks; 63 HeapHashMap<CallbackId, Member<IdleRequestCallback>> m_callbacks;
64 Vector<CallbackId> m_pendingTimeouts; 64 Vector<CallbackId> m_pendingTimeouts;
65 CallbackId m_nextCallbackId; 65 CallbackId m_nextCallbackId;
66 bool m_suspended; 66 bool m_suspended;
67 }; 67 };
68 68
69 } // namespace blink 69 } // namespace blink
70 70
71 #endif // ScriptedIdleTaskController_h 71 #endif // ScriptedIdleTaskController_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/MessagePort.h ('k') | third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698