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

Unified Diff: content/browser/tracing/background_memory_tracing_observer.h

Issue 2782933002: Reland of Add EnabledStateObserver to BackgroundTracingManager (Closed)
Patch Set: Fix Created 3 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/browser/BUILD.gn ('k') | content/browser/tracing/background_memory_tracing_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tracing/background_memory_tracing_observer.h
diff --git a/content/browser/tracing/background_memory_tracing_observer.h b/content/browser/tracing/background_memory_tracing_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..6533de6c062556509bc4b58cb8743b97a431d6c1
--- /dev/null
+++ b/content/browser/tracing/background_memory_tracing_observer.h
@@ -0,0 +1,30 @@
+// Copyright 2017 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.
+
+#ifndef CONTENT_BROWSER_TRACING_BACKGROUND_MEMORY_TRACING_OBSERVER_H_
+#define CONTENT_BROWSER_TRACING_BACKGROUND_MEMORY_TRACING_OBSERVER_H_
+
+#include "content/browser/tracing/background_tracing_manager_impl.h"
+
+namespace content {
+
+class BackgroundMemoryTracingObserver
+ : public BackgroundTracingManagerImpl::EnabledStateObserver {
+ public:
+ static BackgroundMemoryTracingObserver* GetInstance();
+
+ void OnScenarioActivated(const BackgroundTracingConfigImpl* config) override;
+ void OnTracingEnabled(
+ BackgroundTracingConfigImpl::CategoryPreset preset) override;
+
+ private:
+ BackgroundMemoryTracingObserver();
+ ~BackgroundMemoryTracingObserver() override;
+
+ DISALLOW_COPY_AND_ASSIGN(BackgroundMemoryTracingObserver);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_TRACING_BACKGROUND_MEMORY_TRACING_OBSERVER_H_
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/tracing/background_memory_tracing_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698