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

Unified Diff: third_party/WebKit/public/platform/WebViewScheduler.h

Issue 1447563002: Implement frame attribution (FrameBlamer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make sure blame context is initialized early enough Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/platform/WebViewScheduler.h
diff --git a/third_party/WebKit/public/platform/WebViewScheduler.h b/third_party/WebKit/public/platform/WebViewScheduler.h
index bee6dce80a8e2a3466e21bf534280b8727aafeed..a3693f6af743d1bc447ae936d5a107bce1411e80 100644
--- a/third_party/WebKit/public/platform/WebViewScheduler.h
+++ b/third_party/WebKit/public/platform/WebViewScheduler.h
@@ -6,6 +6,7 @@
#define WebViewScheduler_h
#include "WebCommon.h"
+#include "public/platform/BlameContext.h"
#include "public/platform/WebPassOwnPtr.h"
namespace blink {
@@ -19,8 +20,10 @@ public:
// The scheduler may throttle tasks associated with background pages.
virtual void setPageVisible(bool) = 0;
- // Creaters a new WebFrameScheduler, the caller is responsible for deleting it.
- virtual WebPassOwnPtr<WebFrameScheduler> createFrameScheduler() = 0;
+ // Creates a new WebFrameScheduler. The caller is responsible for deleting
+ // it. All tasks executed by the frame scheduler will be attributed to
+ // |BlameContext|.
+ virtual WebPassOwnPtr<WebFrameScheduler> createFrameScheduler(BlameContext*) = 0;
// Instructs this WebViewScheduler to use virtual time. When virtual time is enabled
// the system doesn't actually sleep for the delays between tasks before executing
« no previous file with comments | « third_party/WebKit/public/platform/WebFrameScheduler.h ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698