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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

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
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | content/renderer/top_level_blame_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index 5e76b78b0c8f838aaddfac05f0bfc530cc666343..7e02789a55dcb8960beed6b89e0e0662a84fe4aa 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -84,6 +84,7 @@
#include "media/filters/stream_parser_factory.h"
#include "storage/common/database/database_identifier.h"
#include "storage/common/quota/quota_types.h"
+#include "third_party/WebKit/public/platform/BlameContext.h"
#include "third_party/WebKit/public/platform/FilePathConversion.h"
#include "third_party/WebKit/public/platform/URLConversion.h"
#include "third_party/WebKit/public/platform/WebBlobRegistry.h"
@@ -268,10 +269,14 @@ RendererBlinkPlatformImpl::RendererBlinkPlatformImpl(
web_database_observer_impl_.reset(
new WebDatabaseObserverImpl(sync_message_filter_.get()));
}
+
+ top_level_blame_context_.Initialize();
+ renderer_scheduler_->SetTopLevelBlameContext(&top_level_blame_context_);
}
RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() {
WebFileSystemImpl::DeleteThreadSpecificInstance();
+ renderer_scheduler_->SetTopLevelBlameContext(nullptr);
}
void RendererBlinkPlatformImpl::Shutdown() {
@@ -300,6 +305,10 @@ blink::WebThread* RendererBlinkPlatformImpl::currentThread() {
return BlinkPlatformImpl::currentThread();
}
+blink::BlameContext* RendererBlinkPlatformImpl::topLevelBlameContext() {
+ return &top_level_blame_context_;
+}
+
blink::WebClipboard* RendererBlinkPlatformImpl::clipboard() {
blink::WebClipboard* clipboard =
GetContentClient()->renderer()->OverrideWebClipboard();
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | content/renderer/top_level_blame_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698