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

Unified Diff: content/renderer/render_thread_blame_context.cc

Issue 1447563002: Implement frame attribution (FrameBlamer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 10 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: content/renderer/render_thread_blame_context.cc
diff --git a/content/renderer/render_thread_blame_context.cc b/content/renderer/render_thread_blame_context.cc
new file mode 100644
index 0000000000000000000000000000000000000000..215a8cd02b4fd4b8992b448e0474d2b019d974f3
--- /dev/null
+++ b/content/renderer/render_thread_blame_context.cc
@@ -0,0 +1,22 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/renderer/render_thread_blame_context.h"
+
+#include "base/threading/platform_thread.h"
+#include "content/renderer/render_frame_blame_context.h"
+
+namespace content {
+
+const char kRenderThreadBlameCategory[] = "blink";
+const char kRenderThreadBlameName[] = "FrameBlameContext";
+const char kRenderThreadBlameScope[] = "PlatformThread";
+
+RenderThreadBlameContext::RenderThreadBlameContext()
+ : base::debug::BlameContext<kRenderThreadBlameCategory,
+ kRenderThreadBlameName,
+ kRenderThreadBlameScope>(
+ base::PlatformThread::CurrentId()) {}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698