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

Unified Diff: third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h

Issue 2527143002: Suspend frame schedulers on a page suspension (Closed)
Patch Set: mod a comment Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h
diff --git a/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h b/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h
index 5a91d8119eef3260c754d13a31b65cd048f1f411..8be705644eb0e833cb7f3164f6cae08f9ae679a4 100644
--- a/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h
+++ b/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h
@@ -28,12 +28,11 @@
#define MainThreadTaskRunner_h
#include "core/CoreExport.h"
-#include "platform/Timer.h"
#include "platform/heap/Handle.h"
+#include "public/platform/WebTraceLocation.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
#include "wtf/PtrUtil.h"
-#include "wtf/Vector.h"
#include "wtf/WeakPtr.h"
#include "wtf/text/WTFString.h"
#include <memory>
@@ -65,14 +64,9 @@ class CORE_EXPORT MainThreadTaskRunner final {
bool isInspectorTask,
bool instrumenting);
- void suspend();
- void resume();
-
private:
explicit MainThreadTaskRunner(ExecutionContext*);
- void pendingTasksTimerFired(TimerBase*);
-
void postTaskInternal(const WebTraceLocation&,
std::unique_ptr<ExecutionContextTask>,
bool isInspectorTask,
@@ -81,11 +75,6 @@ class CORE_EXPORT MainThreadTaskRunner final {
// Untraced back reference to the owner Document;
// this object has identical lifetime to it.
UntracedMember<ExecutionContext> m_context;
- Timer<MainThreadTaskRunner> m_pendingTasksTimer;
- Vector<std::pair<std::unique_ptr<ExecutionContextTask>,
- bool /* instrumenting */>>
- m_pendingTasks;
- bool m_suspended;
WeakPtrFactory<MainThreadTaskRunner> m_weakFactory;
WeakPtr<MainThreadTaskRunner> m_weakPtr;
};
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExecutionContext.h ('k') | third_party/WebKit/Source/core/dom/MainThreadTaskRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698