OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_H_ | 5 #ifndef CONTENT_BROWSER_TRACING_UI_H_ |
6 #define CONTENT_BROWSER_TRACING_UI_H_ | 6 #define CONTENT_BROWSER_TRACING_UI_H_ |
7 | 7 |
| 8 #include "base/memory/ref_counted_memory.h" |
8 #include "content/public/browser/web_ui_controller.h" | 9 #include "content/public/browser/web_ui_controller.h" |
9 | 10 |
10 namespace content { | 11 namespace content { |
11 | 12 |
12 // The C++ back-end for the chrome://tracing webui page. | 13 // The C++ back-end for the chrome://tracing webui page. |
13 class CONTENT_EXPORT TracingUI : public WebUIController { | 14 class CONTENT_EXPORT TracingUI : public WebUIController { |
14 public: | 15 public: |
15 explicit TracingUI(WebUI* web_ui); | 16 explicit TracingUI(WebUI* web_ui); |
16 virtual ~TracingUI(); | 17 virtual ~TracingUI(); |
17 void OnMonitoringStateChanged(bool is_monitoring); | 18 void OnMonitoringStateChanged(bool is_monitoring); |
| 19 void OnSystemTraceDataCollected( |
| 20 const scoped_refptr<base::RefCountedString>& events_str_ptr); |
18 | 21 |
19 private: | 22 private: |
20 DISALLOW_COPY_AND_ASSIGN(TracingUI); | 23 DISALLOW_COPY_AND_ASSIGN(TracingUI); |
21 }; | 24 }; |
22 | 25 |
23 } // namespace content | 26 } // namespace content |
24 | 27 |
25 #endif // CONTENT_BROWSER_TRACING_UI_H_ | 28 #endif // CONTENT_BROWSER_TRACING_UI_H_ |
OLD | NEW |