OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 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/renderer/devtools_client.h" | 5 #include "chrome/renderer/devtools_client.h" |
6 | 6 |
7 #include "app/app_switches.h" | 7 #include "app/app_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "chrome/common/devtools_messages.h" | 9 #include "chrome/common/devtools_messages.h" |
10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
11 #include "chrome/renderer/render_thread.h" | 11 #include "chrome/renderer/render_thread.h" |
12 #include "chrome/renderer/render_view.h" | 12 #include "chrome/renderer/render_view.h" |
13 #include "webkit/api/public/WebDevToolsFrontend.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebDevToolsFrontend.h" |
14 #include "webkit/api/public/WebString.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
15 | 15 |
16 using WebKit::WebDevToolsFrontend; | 16 using WebKit::WebDevToolsFrontend; |
17 using WebKit::WebString; | 17 using WebKit::WebString; |
18 | 18 |
19 DevToolsClient::DevToolsClient(RenderView* view) | 19 DevToolsClient::DevToolsClient(RenderView* view) |
20 : render_view_(view) { | 20 : render_view_(view) { |
21 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 21 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
22 web_tools_frontend_.reset( | 22 web_tools_frontend_.reset( |
23 WebDevToolsFrontend::create( | 23 WebDevToolsFrontend::create( |
24 view->webview(), | 24 view->webview(), |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 const std::string& param1, | 89 const std::string& param1, |
90 const std::string& param2, | 90 const std::string& param2, |
91 const std::string& param3) { | 91 const std::string& param3) { |
92 web_tools_frontend_->dispatchMessageFromAgent( | 92 web_tools_frontend_->dispatchMessageFromAgent( |
93 WebString::fromUTF8(class_name), | 93 WebString::fromUTF8(class_name), |
94 WebString::fromUTF8(method_name), | 94 WebString::fromUTF8(method_name), |
95 WebString::fromUTF8(param1), | 95 WebString::fromUTF8(param1), |
96 WebString::fromUTF8(param2), | 96 WebString::fromUTF8(param2), |
97 WebString::fromUTF8(param3)); | 97 WebString::fromUTF8(param3)); |
98 } | 98 } |
OLD | NEW |