OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_UI_WEBUI_CHROMEOS_SLOW_TRACE_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_SLOW_TRACE_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_SLOW_TRACE_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_SLOW_TRACE_UI_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "content/public/browser/url_data_source.h" | 12 #include "content/public/browser/url_data_source.h" |
13 #include "content/public/browser/web_ui_controller.h" | 13 #include "content/public/browser/web_ui_controller.h" |
14 #include "ui/base/layout.h" | 14 #include "ui/base/layout.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class RefCountedMemory; | |
18 class RefCountedString; | 17 class RefCountedString; |
19 } | 18 } |
20 | 19 |
21 namespace chromeos { | 20 namespace chromeos { |
22 | 21 |
23 // This class provides the source for chrome://slow_trace/. It needs to be a | 22 // This class provides the source for chrome://slow_trace/. It needs to be a |
24 // separate handler that chrome://slow, because URLDataSource and | 23 // separate handler that chrome://slow, because URLDataSource and |
25 // WebUIDataSource are not descended from each other, and WebUIDataSource | 24 // WebUIDataSource are not descended from each other, and WebUIDataSource |
26 // doesn't allow the MimeType to be dynamically specified. | 25 // doesn't allow the MimeType to be dynamically specified. |
27 class SlowTraceSource : public content::URLDataSource { | 26 class SlowTraceSource : public content::URLDataSource { |
(...skipping 21 matching lines...) Expand all Loading... |
49 public: | 48 public: |
50 explicit SlowTraceController(content::WebUI* web_ui); | 49 explicit SlowTraceController(content::WebUI* web_ui); |
51 | 50 |
52 private: | 51 private: |
53 DISALLOW_COPY_AND_ASSIGN(SlowTraceController); | 52 DISALLOW_COPY_AND_ASSIGN(SlowTraceController); |
54 }; | 53 }; |
55 | 54 |
56 } // namespace chromeos | 55 } // namespace chromeos |
57 | 56 |
58 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_SLOW_TRACE_UI_H_ | 57 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_SLOW_TRACE_UI_H_ |
OLD | NEW |