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/devtools_ui.h" | 5 #include "chrome/browser/ui/webui/devtools_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/memory/ref_counted_memory.h" | 9 #include "base/memory/ref_counted_memory.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "chrome/browser/net/chrome_url_request_context.h" | 12 #include "chrome/browser/net/chrome_url_request_context.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
14 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
15 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/devtools_client_host.h" | 17 #include "content/public/browser/devtools_client_host.h" |
17 #include "content/public/browser/devtools_http_handler.h" | 18 #include "content/public/browser/devtools_http_handler.h" |
18 #include "content/public/browser/render_view_host.h" | 19 #include "content/public/browser/render_view_host.h" |
19 #include "content/public/browser/url_data_source.h" | 20 #include "content/public/browser/url_data_source.h" |
20 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
21 #include "content/public/browser/web_ui.h" | 22 #include "content/public/browser/web_ui.h" |
22 #include "ui/base/resource/resource_bundle.h" | 23 #include "ui/base/resource/resource_bundle.h" |
23 | 24 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 DevToolsUI::DevToolsUI(content::WebUI* web_ui) : WebUIController(web_ui) { | 112 DevToolsUI::DevToolsUI(content::WebUI* web_ui) : WebUIController(web_ui) { |
112 web_ui->SetBindings(0); | 113 web_ui->SetBindings(0); |
113 ChromeURLDataManager::AddDataSource( | 114 ChromeURLDataManager::AddDataSource( |
114 Profile::FromWebUI(web_ui), new DevToolsDataSource); | 115 Profile::FromWebUI(web_ui), new DevToolsDataSource); |
115 } | 116 } |
116 | 117 |
117 void DevToolsUI::RenderViewCreated( | 118 void DevToolsUI::RenderViewCreated( |
118 content::RenderViewHost* render_view_host) { | 119 content::RenderViewHost* render_view_host) { |
119 content::DevToolsClientHost::SetupDevToolsFrontendClient(render_view_host); | 120 content::DevToolsClientHost::SetupDevToolsFrontendClient(render_view_host); |
120 } | 121 } |
OLD | NEW |