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

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

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "content/public/browser/web_ui_controller.h" 12 #include "content/public/browser/web_ui_controller.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 // The C++ back-end for the chrome://tracing webui page. 16 // The C++ back-end for the chrome://tracing webui page.
17 class CONTENT_EXPORT TracingUI : public WebUIController { 17 class CONTENT_EXPORT TracingUI : public WebUIController {
18 public: 18 public:
19 explicit TracingUI(WebUI* web_ui); 19 explicit TracingUI(WebUI* web_ui);
20 virtual ~TracingUI(); 20 ~TracingUI() override;
21 void OnMonitoringStateChanged(bool is_monitoring); 21 void OnMonitoringStateChanged(bool is_monitoring);
22 void DoUpload(const base::ListValue* args); 22 void DoUpload(const base::ListValue* args);
23 void OnTraceUploadProgress(int64 current, int64 total); 23 void OnTraceUploadProgress(int64 current, int64 total);
24 void OnTraceUploadComplete(bool success, 24 void OnTraceUploadComplete(bool success,
25 const std::string& report_id, 25 const std::string& report_id,
26 const std::string& error_message); 26 const std::string& error_message);
27 27
28 private: 28 private:
29 base::WeakPtrFactory<TracingUI> weak_factory_; 29 base::WeakPtrFactory<TracingUI> weak_factory_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(TracingUI); 31 DISALLOW_COPY_AND_ASSIGN(TracingUI);
32 }; 32 };
33 33
34 } // namespace content 34 } // namespace content
35 35
36 #endif // CONTENT_BROWSER_TRACING_UI_H_ 36 #endif // CONTENT_BROWSER_TRACING_UI_H_
OLDNEW
« no previous file with comments | « content/browser/tracing/tracing_controller_impl.cc ('k') | content/browser/transition_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698