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 "content/browser/gpu/gpu_internals_ui.h" | 5 #include "content/browser/gpu/gpu_internals_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" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/i18n/time_formatting.h" | 12 #include "base/i18n/time_formatting.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/sys_info.h" | 15 #include "base/sys_info.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "content/browser/gpu/compositor_util.h" | 17 #include "content/browser/gpu/compositor_util.h" |
18 #include "content/browser/gpu/gpu_data_manager_impl.h" | 18 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 19 #include "content/grit/content_resources.h" |
19 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
20 #include "content/public/browser/gpu_data_manager_observer.h" | 21 #include "content/public/browser/gpu_data_manager_observer.h" |
21 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
22 #include "content/public/browser/web_ui.h" | 23 #include "content/public/browser/web_ui.h" |
23 #include "content/public/browser/web_ui_data_source.h" | 24 #include "content/public/browser/web_ui_data_source.h" |
24 #include "content/public/browser/web_ui_message_handler.h" | 25 #include "content/public/browser/web_ui_message_handler.h" |
25 #include "content/public/common/content_client.h" | 26 #include "content/public/common/content_client.h" |
26 #include "content/public/common/content_switches.h" | 27 #include "content/public/common/content_switches.h" |
27 #include "content/public/common/url_constants.h" | 28 #include "content/public/common/url_constants.h" |
28 #include "gpu/config/gpu_feature_type.h" | 29 #include "gpu/config/gpu_feature_type.h" |
29 #include "gpu/config/gpu_info.h" | 30 #include "gpu/config/gpu_info.h" |
30 #include "grit/content_resources.h" | |
31 #include "third_party/angle/src/common/version.h" | 31 #include "third_party/angle/src/common/version.h" |
32 | 32 |
33 #if defined(OS_WIN) | 33 #if defined(OS_WIN) |
34 #include "ui/base/win/shell.h" | 34 #include "ui/base/win/shell.h" |
35 #endif | 35 #endif |
36 | 36 |
37 namespace content { | 37 namespace content { |
38 namespace { | 38 namespace { |
39 | 39 |
40 WebUIDataSource* CreateGpuHTMLSource() { | 40 WebUIDataSource* CreateGpuHTMLSource() { |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 : WebUIController(web_ui) { | 382 : WebUIController(web_ui) { |
383 web_ui->AddMessageHandler(new GpuMessageHandler()); | 383 web_ui->AddMessageHandler(new GpuMessageHandler()); |
384 | 384 |
385 // Set up the chrome://gpu/ source. | 385 // Set up the chrome://gpu/ source. |
386 BrowserContext* browser_context = | 386 BrowserContext* browser_context = |
387 web_ui->GetWebContents()->GetBrowserContext(); | 387 web_ui->GetWebContents()->GetBrowserContext(); |
388 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); | 388 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); |
389 } | 389 } |
390 | 390 |
391 } // namespace content | 391 } // namespace content |
OLD | NEW |