OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/webui/tracing_ui.h" | 5 #include "chrome/browser/ui/webui/tracing_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
26 #include "content/public/browser/gpu_data_manager.h" | 26 #include "content/public/browser/gpu_data_manager.h" |
27 #include "content/public/browser/gpu_data_manager_observer.h" | 27 #include "content/public/browser/gpu_data_manager_observer.h" |
28 #include "content/public/browser/render_view_host.h" | 28 #include "content/public/browser/render_view_host.h" |
29 #include "content/public/browser/trace_controller.h" | 29 #include "content/public/browser/trace_controller.h" |
30 #include "content/public/browser/trace_subscriber.h" | 30 #include "content/public/browser/trace_subscriber.h" |
31 #include "content/public/browser/web_contents.h" | 31 #include "content/public/browser/web_contents.h" |
32 #include "content/public/browser/web_contents_view.h" | 32 #include "content/public/browser/web_contents_view.h" |
33 #include "content/public/browser/web_ui.h" | 33 #include "content/public/browser/web_ui.h" |
34 #include "content/public/browser/web_ui_message_handler.h" | 34 #include "content/public/browser/web_ui_message_handler.h" |
35 #include "grit/browser_resources.h" | 35 #include "grit/tracing_resources.h" |
36 #include "grit/generated_resources.h" | 36 #include "grit/generated_resources.h" |
37 #include "ui/base/l10n/l10n_util.h" | 37 #include "ui/base/l10n/l10n_util.h" |
38 | 38 |
39 #if defined(OS_CHROMEOS) | 39 #if defined(OS_CHROMEOS) |
40 #include "chromeos/dbus/dbus_thread_manager.h" | 40 #include "chromeos/dbus/dbus_thread_manager.h" |
41 #include "chromeos/dbus/debug_daemon_client.h" | 41 #include "chromeos/dbus/debug_daemon_client.h" |
42 #endif | 42 #endif |
43 | 43 |
44 using content::BrowserThread; | 44 using content::BrowserThread; |
45 using content::GpuDataManager; | 45 using content::GpuDataManager; |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 // | 489 // |
490 //////////////////////////////////////////////////////////////////////////////// | 490 //////////////////////////////////////////////////////////////////////////////// |
491 | 491 |
492 TracingUI::TracingUI(content::WebUI* web_ui) : WebUIController(web_ui) { | 492 TracingUI::TracingUI(content::WebUI* web_ui) : WebUIController(web_ui) { |
493 web_ui->AddMessageHandler(new TracingMessageHandler()); | 493 web_ui->AddMessageHandler(new TracingMessageHandler()); |
494 | 494 |
495 // Set up the chrome://tracing/ source. | 495 // Set up the chrome://tracing/ source. |
496 Profile* profile = Profile::FromWebUI(web_ui); | 496 Profile* profile = Profile::FromWebUI(web_ui); |
497 ChromeURLDataManager::AddDataSource(profile, CreateTracingHTMLSource()); | 497 ChromeURLDataManager::AddDataSource(profile, CreateTracingHTMLSource()); |
498 } | 498 } |
OLD | NEW |