OLD | NEW |
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 #include "chrome/browser/dom_ui/gpu_internals_ui.h" | 5 #include "chrome/browser/webui/gpu_internals_ui.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 | 363 |
364 GpuInternalsUI::GpuInternalsUI(TabContents* contents) : WebUI(contents) { | 364 GpuInternalsUI::GpuInternalsUI(TabContents* contents) : WebUI(contents) { |
365 AddMessageHandler((new GpuMessageHandler())->Attach(this)); | 365 AddMessageHandler((new GpuMessageHandler())->Attach(this)); |
366 | 366 |
367 GpuHTMLSource* html_source = new GpuHTMLSource(); | 367 GpuHTMLSource* html_source = new GpuHTMLSource(); |
368 | 368 |
369 // Set up the chrome://gpu/ source. | 369 // Set up the chrome://gpu/ source. |
370 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); | 370 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); |
371 } | 371 } |
372 | 372 |
OLD | NEW |