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_ |