| 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/devtools_ui.h" | 5 #include "chrome/browser/ui/webui/devtools_ui.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | |
| 8 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 9 #include "chrome/browser/net/chrome_url_request_context.h" | 8 #include "chrome/browser/net/chrome_url_request_context.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h" | 10 #include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h" |
| 12 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
| 13 #include "content/browser/browser_thread.h" | 12 #include "content/browser/browser_thread.h" |
| 14 #include "content/browser/renderer_host/render_view_host.h" | 13 #include "content/browser/renderer_host/render_view_host.h" |
| 15 #include "content/browser/tab_contents/tab_contents.h" | 14 #include "content/browser/tab_contents/tab_contents.h" |
| 16 #include "content/common/devtools_messages.h" | 15 #include "content/common/devtools_messages.h" |
| 17 #include "grit/devtools_resources_map.h" | 16 #include "grit/devtools_resources_map.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 98 |
| 100 DevToolsUI::DevToolsUI(TabContents* contents) : ChromeWebUI(contents) { | 99 DevToolsUI::DevToolsUI(TabContents* contents) : ChromeWebUI(contents) { |
| 101 DevToolsDataSource* data_source = new DevToolsDataSource(); | 100 DevToolsDataSource* data_source = new DevToolsDataSource(); |
| 102 contents->profile()->GetChromeURLDataManager()->AddDataSource(data_source); | 101 contents->profile()->GetChromeURLDataManager()->AddDataSource(data_source); |
| 103 } | 102 } |
| 104 | 103 |
| 105 void DevToolsUI::RenderViewCreated(RenderViewHost* render_view_host) { | 104 void DevToolsUI::RenderViewCreated(RenderViewHost* render_view_host) { |
| 106 render_view_host->Send(new DevToolsMsg_SetupDevToolsClient( | 105 render_view_host->Send(new DevToolsMsg_SetupDevToolsClient( |
| 107 render_view_host->routing_id())); | 106 render_view_host->routing_id())); |
| 108 } | 107 } |
| OLD | NEW |