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

Unified Diff: content/renderer/devtools/v8_sampling_profiler.h

Issue 1975363002: Add ThreadChecker for V8SamplingProfiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | content/renderer/devtools/v8_sampling_profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/devtools/v8_sampling_profiler.h
diff --git a/content/renderer/devtools/v8_sampling_profiler.h b/content/renderer/devtools/v8_sampling_profiler.h
index 6de3a72ac7ca12843c970f2ceaeb43ce94e70c49..6d0c7d5844ca730b9cc8acb932617d30874182e3 100644
--- a/content/renderer/devtools/v8_sampling_profiler.h
+++ b/content/renderer/devtools/v8_sampling_profiler.h
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "base/synchronization/waitable_event.h"
+#include "base/threading/thread_checker.h"
#include "base/trace_event/trace_log.h"
#include "content/common/content_export.h"
@@ -39,6 +40,7 @@ class CONTENT_EXPORT V8SamplingProfiler final
std::unique_ptr<base::WaitableEvent> waitable_event_for_testing_;
std::unique_ptr<V8SamplingThread> sampling_thread_;
std::unique_ptr<Sampler> render_thread_sampler_;
+ base::ThreadChecker thread_checker_;
base::WeakPtrFactory<V8SamplingProfiler> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(V8SamplingProfiler);
« no previous file with comments | « no previous file | content/renderer/devtools/v8_sampling_profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698