OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_TRACING_TRACING_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_TRACING_DELEGATE_H_ |
6 #define CONTENT_BROWSER_TRACING_TRACING_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_TRACING_DELEGATE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 class URLRequestContextGetter; | 11 class URLRequestContextGetter; |
12 } | 12 } |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 class TraceUploader; | 15 class TraceUploader; |
16 | 16 |
17 // This can be implemented by the embedder to provide functionality for the | 17 // This can be implemented by the embedder to provide functionality for the |
18 // about://tracing WebUI. | 18 // about://tracing WebUI. |
19 class TracingDelegate { | 19 class TracingDelegate { |
20 public: | 20 public: |
21 virtual ~TracingDelegate() {} | 21 virtual ~TracingDelegate() {} |
22 | 22 |
23 // Provide trace uploading functionality; see trace_uploader.h. | 23 // Provide trace uploading functionality; see trace_uploader.h. |
24 virtual scoped_ptr<TraceUploader> GetTraceUploader( | 24 virtual scoped_ptr<TraceUploader> GetTraceUploader( |
25 net::URLRequestContextGetter* request_context) = 0; | 25 net::URLRequestContextGetter* request_context) = 0; |
26 }; | 26 }; |
27 | 27 |
28 } // namespace content | 28 } // namespace content |
29 | 29 |
30 #endif // CONTENT_BROWSER_TRACING_TRACING_DELEGATE_H_ | 30 #endif // CONTENT_PUBLIC_BROWSER_TRACING_DELEGATE_H_ |
OLD | NEW |