| 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/ui/webui/gpu_internals_ui.h" | 5 #include "chrome/browser/ui/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/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
| 15 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
| 16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
| 17 #include "base/scoped_ptr.h" | 17 #include "base/scoped_ptr.h" |
| 18 #include "base/stringprintf.h" |
| 18 #include "base/string_number_conversions.h" | 19 #include "base/string_number_conversions.h" |
| 19 #include "base/string_piece.h" | 20 #include "base/string_piece.h" |
| 20 #include "base/utf_string_conversions.h" | 21 #include "base/utf_string_conversions.h" |
| 21 #include "base/values.h" | 22 #include "base/values.h" |
| 22 #include "chrome/browser/browser_process.h" | 23 #include "chrome/browser/browser_process.h" |
| 23 #include "chrome/browser/io_thread.h" | 24 #include "chrome/browser/io_thread.h" |
| 24 #include "chrome/browser/net/chrome_net_log.h" | 25 #include "chrome/browser/net/chrome_net_log.h" |
| 25 #include "chrome/browser/net/connection_tester.h" | 26 #include "chrome/browser/net/connection_tester.h" |
| 26 #include "chrome/browser/net/passive_log_collector.h" | 27 #include "chrome/browser/net/passive_log_collector.h" |
| 27 #include "chrome/browser/net/url_fixer_upper.h" | 28 #include "chrome/browser/net/url_fixer_upper.h" |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 //////////////////////////////////////////////////////////////////////////////// | 642 //////////////////////////////////////////////////////////////////////////////// |
| 642 | 643 |
| 643 GpuInternalsUI::GpuInternalsUI(TabContents* contents) : WebUI(contents) { | 644 GpuInternalsUI::GpuInternalsUI(TabContents* contents) : WebUI(contents) { |
| 644 AddMessageHandler((new GpuMessageHandler())->Attach(this)); | 645 AddMessageHandler((new GpuMessageHandler())->Attach(this)); |
| 645 | 646 |
| 646 GpuHTMLSource* html_source = new GpuHTMLSource(); | 647 GpuHTMLSource* html_source = new GpuHTMLSource(); |
| 647 | 648 |
| 648 // Set up the chrome://gpu/ source. | 649 // Set up the chrome://gpu/ source. |
| 649 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); | 650 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); |
| 650 } | 651 } |
| OLD | NEW |