| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> |
| 9 #include <string> | 10 #include <string> |
| 10 #include <utility> | 11 #include <utility> |
| 11 | 12 |
| 12 #include "base/bind.h" | 13 #include "base/bind.h" |
| 13 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
| 14 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 15 #include "base/environment.h" | 16 #include "base/environment.h" |
| 16 #include "base/i18n/time_formatting.h" | 17 #include "base/i18n/time_formatting.h" |
| 17 #include "base/macros.h" | 18 #include "base/macros.h" |
| 18 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 : WebUIController(web_ui) { | 539 : WebUIController(web_ui) { |
| 539 web_ui->AddMessageHandler(new GpuMessageHandler()); | 540 web_ui->AddMessageHandler(new GpuMessageHandler()); |
| 540 | 541 |
| 541 // Set up the chrome://gpu/ source. | 542 // Set up the chrome://gpu/ source. |
| 542 BrowserContext* browser_context = | 543 BrowserContext* browser_context = |
| 543 web_ui->GetWebContents()->GetBrowserContext(); | 544 web_ui->GetWebContents()->GetBrowserContext(); |
| 544 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); | 545 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); |
| 545 } | 546 } |
| 546 | 547 |
| 547 } // namespace content | 548 } // namespace content |
| OLD | NEW |