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

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

Issue 1089253003: Re-land first pass BackgroundTracingManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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.cc
diff --git a/content/browser/tracing/background_tracing_scenario.cc b/content/browser/tracing/background_tracing_scenario.cc
new file mode 100644
index 0000000000000000000000000000000000000000..327880e1d87de1d79ab7fefc6f6f9886fa6b7124
--- /dev/null
+++ b/content/browser/tracing/background_tracing_scenario.cc
@@ -0,0 +1,30 @@
+// Copyright 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.
+
+#include "content/browser/tracing/background_tracing_scenario.h"
+
+#include "content/browser/tracing/background_tracing_endpoint.h"
+#include "content/browser/tracing/background_tracing_manager.h"
+#include "content/public/browser/browser_thread.h"
+
+BackgroundTracingScenario::BackgroundTracingScenario(
+ scoped_refptr<BackgroundTracingEndpoint> endpoint) {
+ endpoint_ = endpoint;
+}
+
+BackgroundTracingScenario::~BackgroundTracingScenario() {
+}
+
+scoped_refptr<BackgroundTracingEndpoint>
+BackgroundTracingScenario::GetEndpoint() {
+ return endpoint_;
+}
+
+base::trace_event::CategoryFilter BackgroundTracingScenario::GetCategoryFilter()
+ const {
+ return base::trace_event::CategoryFilter(
+ "benchmark,"
+ "disabled-by-default-toplevel.flow,"
+ "disabled-by-default-ipc.flow");
+}

Powered by Google App Engine
This is Rietveld 408576698