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

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

Issue 1089253003: Re-land first pass BackgroundTracingManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More tests. Created 5 years, 8 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/browser/tracing/background_tracing_scenario.h
diff --git a/content/browser/tracing/background_tracing_scenario.h b/content/browser/tracing/background_tracing_scenario.h
new file mode 100644
index 0000000000000000000000000000000000000000..d2086d219878f128a6c0a4613a0ccbb27b975139
--- /dev/null
+++ b/content/browser/tracing/background_tracing_scenario.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2015 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_TRACING_SCENARIO_H_
+#define CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_SCENARIO_H_
+
+#include "base/memory/ref_counted_memory.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
+#include "base/trace_event/trace_event_impl.h"
+#include "content/common/content_export.h"
+
+class BackgroundTracingEndpoint;
+
+class CONTENT_EXPORT BackgroundTracingScenario
+ : public base::RefCounted<BackgroundTracingScenario> {
+ public:
+ BackgroundTracingScenario(scoped_refptr<BackgroundTracingEndpoint>);
+
+ scoped_refptr<BackgroundTracingEndpoint> GetEndpoint();
+
+ virtual base::trace_event::CategoryFilter GetCategoryFilter() const;
+
+ protected:
+ virtual ~BackgroundTracingScenario();
+
+ scoped_refptr<BackgroundTracingEndpoint> endpoint_;
+
+ friend class base::RefCounted<BackgroundTracingScenario>;
+};
+
+#endif // CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_SCENARIO_H_

Powered by Google App Engine
This is Rietveld 408576698