OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/dom_ui/dev_tools_ui.h" |
| 6 |
| 7 #include "chrome/browser/renderer_host/render_view_host.h" |
| 8 #include "chrome/common/render_messages.h" |
| 9 |
| 10 // DevToolsUI is accessible from chrome-ui://devtools. |
| 11 static const char kDevToolsHost[] = "devtools"; |
| 12 |
| 13 // static |
| 14 GURL DevToolsUI::GetBaseURL() { |
| 15 return GURL(DOMUIContents::GetScheme() + "://" + kDevToolsHost); |
| 16 } |
| 17 |
| 18 void DevToolsUI::RenderViewCreated(RenderViewHost* render_view_host) { |
| 19 render_view_host->Send(new ViewMsg_SetupDevToolsClient( |
| 20 render_view_host->routing_id())); |
| 21 } |
| 22 |
| 23 |
OLD | NEW |