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

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

Issue 460018: DevTools: make possible profiling of scripts doing heavy calculations. (Closed)
Patch Set: Comments addressed 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
« 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"
9 #include "chrome/renderer/render_view.h" 10 #include "chrome/renderer/render_view.h"
10 #include "third_party/WebKit/WebKit/chromium/public/WebDevToolsAgent.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebDevToolsAgent.h"
11 #include "third_party/WebKit/WebKit/chromium/public/WebPoint.h" 12 #include "third_party/WebKit/WebKit/chromium/public/WebPoint.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" 13 #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
13 #include "webkit/glue/glue_util.h" 14 #include "webkit/glue/glue_util.h"
14 15
15 using WebKit::WebDevToolsAgent; 16 using WebKit::WebDevToolsAgent;
16 using WebKit::WebPoint; 17 using WebKit::WebPoint;
17 using WebKit::WebString; 18 using WebKit::WebString;
18 using WebKit::WebView; 19 using WebKit::WebView;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 enabled); 145 enabled);
145 } 146 }
146 } 147 }
147 148
148 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { 149 WebDevToolsAgent* DevToolsAgent::GetWebAgent() {
149 WebView* web_view = render_view_->webview(); 150 WebView* web_view = render_view_->webview();
150 if (!web_view) 151 if (!web_view)
151 return NULL; 152 return NULL;
152 return web_view->devToolsAgent(); 153 return web_view->devToolsAgent();
153 } 154 }
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