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

Unified Diff: content/public/browser/tracing_delegate.h

Issue 911153002: Moved the TraceUploader to chrome/ and abstracted it for alternative new upload destinations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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/public/browser/trace_uploader.h ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/tracing_delegate.h
diff --git a/content/public/browser/tracing_delegate.h b/content/public/browser/tracing_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..454c596c01677d8f2ca1963b455dd009a89472b5
--- /dev/null
+++ b/content/public/browser/tracing_delegate.h
@@ -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.
+
+#ifndef CONTENT_BROWSER_TRACING_TRACING_DELEGATE_H_
+#define CONTENT_BROWSER_TRACING_TRACING_DELEGATE_H_
+
+#include "base/memory/scoped_ptr.h"
+
+namespace net {
+class URLRequestContextGetter;
+}
+
+namespace content {
+class TraceUploader;
+
+// This can be implemented by the embedder to provide functionality for the
+// about://tracing WebUI.
+class TracingDelegate {
+ public:
+ virtual ~TracingDelegate() {}
+
+ // Provide trace uploading functionality; see trace_uploader.h.
+ virtual scoped_ptr<TraceUploader> GetTraceUploader(
+ net::URLRequestContextGetter* request_context) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_TRACING_TRACING_DELEGATE_H_
« no previous file with comments | « content/public/browser/trace_uploader.h ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698