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

Unified Diff: content/browser/tracing/background_tracing_endpoint.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_endpoint.h
diff --git a/content/browser/tracing/background_tracing_endpoint.h b/content/browser/tracing/background_tracing_endpoint.h
new file mode 100644
index 0000000000000000000000000000000000000000..038cc6b4a4d1b157e56528e894bc510622c0e9b1
--- /dev/null
+++ b/content/browser/tracing/background_tracing_endpoint.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
oystein (OOO til 10th of July) 2015/04/21 17:31:44 nit: remove the (c)
+// 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_ENDPOINT_H_
+#define CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_ENDPOINT_H_
+
+#include "base/callback.h"
+#include "base/callback.h"
oystein (OOO til 10th of July) 2015/04/21 17:31:44 nit: duplicate line
+#include "content/common/content_export.h"
+#include "content/public/browser/tracing_controller.h"
+
+class CONTENT_EXPORT BackgroundTracingEndpoint
+ : public content::TracingController::TraceDataEndpoint {
+ public:
+ BackgroundTracingEndpoint();
+
+ typedef base::Callback<void()> DoneCallback;
+
+ void SetDoneCallback(DoneCallback callback);
+
+ protected:
+ ~BackgroundTracingEndpoint() override;
+
+ DoneCallback done_callback_;
+
+ friend class base::RefCountedThreadSafe<BackgroundTracingEndpoint>;
+};
+
+#endif // CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_ENDPOINT_H_

Powered by Google App Engine
This is Rietveld 408576698