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

Side by Side Diff: content/browser/tracing/tracing_ui.h

Issue 136403007: Implement system tracing for cros (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698