Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: chrome/renderer/devtools_agent.cc

Issue 467043: Revert 34040 - DevTools: make possible profiling of scripts doing heavy calcu... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/devtools_agent_filter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_agent.h" 5 #include "chrome/renderer/devtools_agent.h"
6 6
7 #include "chrome/common/devtools_messages.h" 7 #include "chrome/common/devtools_messages.h"
8 #include "chrome/common/render_messages.h" 8 #include "chrome/common/render_messages.h"
9 #include "chrome/renderer/devtools_agent_filter.h"
10 #include "chrome/renderer/render_view.h" 9 #include "chrome/renderer/render_view.h"
11 #include "third_party/WebKit/WebKit/chromium/public/WebDevToolsAgent.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebDevToolsAgent.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebPoint.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebPoint.h"
13 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" 12 #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
14 #include "webkit/glue/glue_util.h" 13 #include "webkit/glue/glue_util.h"
15 14
16 using WebKit::WebDevToolsAgent; 15 using WebKit::WebDevToolsAgent;
17 using WebKit::WebPoint; 16 using WebKit::WebPoint;
18 using WebKit::WebString; 17 using WebKit::WebString;
19 using WebKit::WebView; 18 using WebKit::WebView;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 enabled); 144 enabled);
146 } 145 }
147 } 146 }
148 147
149 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { 148 WebDevToolsAgent* DevToolsAgent::GetWebAgent() {
150 WebView* web_view = render_view_->webview(); 149 WebView* web_view = render_view_->webview();
151 if (!web_view) 150 if (!web_view)
152 return NULL; 151 return NULL;
153 return web_view->devToolsAgent(); 152 return web_view->devToolsAgent();
154 } 153 }
155
156 // static
157 void WebKit::WebDevToolsAgentClient::sendMessageToFrontendOnIOThread(
158 const WebString& class_name,
159 const WebString& method_name,
160 const WebString& param1,
161 const WebString& param2,
162 const WebString& param3) {
163 DevToolsAgentFilter::SendRpcMessage(
164 class_name.utf8(),
165 method_name.utf8(),
166 param1.utf8(),
167 param2.utf8(),
168 param3.utf8());
169 }
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/devtools_agent_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698