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

Issue 113836: DevTools: introduce bound object on the agent side. (Closed)

Created:
11 years, 7 months ago by pfeldman
Modified:
9 years, 7 months ago
Reviewers:
yurys
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

DevTools: Migrate to InspectorController for network and console events. - introduced bound object on the agent side; - established remote dispatch of WebInspector calls - using fake InspectorFrontend for serializing events and sending them over the ipc - removed net agents from both sides - moved GetResource stuff to tools agent Assumes following is landed: https://bugs.webkit.org/show_bug.cgi?id=26010 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=16980

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 2

Patch Set 9 : '' #

Total comments: 18

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -885 lines) Patch
M webkit/glue/chrome_client_impl.cc View 5 6 7 8 9 2 chunks +1 line, -6 lines 0 comments Download
A webkit/glue/devtools/bound_object.h View 1 2 3 4 5 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download
A webkit/glue/devtools/bound_object.cc View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download
M webkit/glue/devtools/js/devtools.html View 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M webkit/glue/devtools/js/devtools.js View 3 4 5 6 7 8 9 10 chunks +57 lines, -23 lines 0 comments Download
M webkit/glue/devtools/js/devtools_host_stub.js View 5 6 7 8 9 2 chunks +0 lines, -8 lines 0 comments Download
M webkit/glue/devtools/js/dom_agent.js View 3 4 5 6 7 8 9 10 chunks +22 lines, -13 lines 0 comments Download
M webkit/glue/devtools/js/inject_dispatch.js View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -0 lines 0 comments Download
M webkit/glue/devtools/js/net_agent.js View 3 4 5 6 7 8 9 1 chunk +0 lines, -126 lines 0 comments Download
D webkit/glue/devtools/net_agent.h View 5 6 7 8 9 1 chunk +0 lines, -39 lines 0 comments Download
D webkit/glue/devtools/net_agent_impl.h View 5 6 7 8 9 1 chunk +0 lines, -143 lines 0 comments Download
D webkit/glue/devtools/net_agent_impl.cc View 5 6 7 8 9 1 chunk +0 lines, -325 lines 0 comments Download
M webkit/glue/devtools/tools_agent.h View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -3 lines 0 comments Download
M webkit/glue/inspector_client_impl.cc View 9 4 chunks +12 lines, -0 lines 0 comments Download
M webkit/glue/webdevtoolsagent_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -29 lines 0 comments Download
M webkit/glue/webdevtoolsagent_impl.cc View 1 2 3 4 5 6 7 8 9 9 chunks +55 lines, -54 lines 0 comments Download
M webkit/glue/webdevtoolsclient_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -6 lines 0 comments Download
M webkit/glue/webdevtoolsclient_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +15 lines, -46 lines 0 comments Download
M webkit/glue/webframeloaderclient_impl.h View 5 6 7 8 9 2 chunks +0 lines, -4 lines 0 comments Download
M webkit/glue/webframeloaderclient_impl.cc View 5 6 7 8 9 8 chunks +0 lines, -54 lines 0 comments Download
M webkit/glue/webview_impl.cc View 9 2 chunks +3 lines, -1 line 0 comments Download
M webkit/webkit.gyp View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
pfeldman
11 years, 7 months ago (2009-05-26 10:04:26 UTC) #1
yurys
http://codereview.chromium.org/113836/diff/27/1025 File webkit/glue/devtools/bound_object.cc (right): http://codereview.chromium.org/113836/diff/27/1025#newcode53 Line 53: v8::Context::Scope frame_scope(context_); rename frame_scope to something more relevant ...
11 years, 7 months ago (2009-05-26 11:43:21 UTC) #2
pfeldman
http://codereview.chromium.org/113836/diff/27/1025 File webkit/glue/devtools/bound_object.cc (right): http://codereview.chromium.org/113836/diff/27/1025#newcode53 Line 53: v8::Context::Scope frame_scope(context_); On 2009/05/26 11:43:21, Yury Semikhatsky wrote: ...
11 years, 7 months ago (2009-05-26 12:43:05 UTC) #3
yurys
LGTM http://codereview.chromium.org/113836/diff/94/1140 File webkit/glue/devtools/bound_object.h (right): http://codereview.chromium.org/113836/diff/94/1140#newcode10 Line 10: // BoundObject lets you map Javascript method ...
11 years, 7 months ago (2009-05-27 07:02:35 UTC) #4
pfeldman
11 years, 7 months ago (2009-05-27 09:04:13 UTC) #5
http://codereview.chromium.org/113836/diff/94/1140
File webkit/glue/devtools/bound_object.h (right):

http://codereview.chromium.org/113836/diff/94/1140#newcode10
Line 10: // BoundObject lets you map Javascript method calls and property
accesses
On 2009/05/27 07:02:35, Yury Semikhatsky wrote:
> Javascript->JavaScript

Done.

http://codereview.chromium.org/113836/diff/1159/113
File webkit/glue/devtools/js/devtools.js (right):

http://codereview.chromium.org/113836/diff/1159/113#newcode166
Line 166: var mycallback = function(content) {
On 2009/05/27 07:02:36, Yury Semikhatsky wrote:
> you don't need this additional wrapper, just pass opt_callback directly
> devtools.Callback.wrap will take care of undefined value

Done.

http://codereview.chromium.org/113836/diff/1159/106
File webkit/glue/devtools/js/inject_dispatch.js (right):

http://codereview.chromium.org/113836/diff/1159/106#newcode42
Line 42: if (method == 'inspectedWindowCleared') {
On 2009/05/27 07:02:36, Yury Semikhatsky wrote:
> what is that?

Done.

http://codereview.chromium.org/113836/diff/1159/123
File webkit/glue/inspector_client_impl.cc (right):

http://codereview.chromium.org/113836/diff/1159/123#newcode42
Line 42: 
On 2009/05/27 07:02:36, Yury Semikhatsky wrote:
> remove the line

Done.

http://codereview.chromium.org/113836/diff/1159/123#newcode53
Line 53: if (inspected_web_view_->GetWebDevToolsAgentImpl())
On 2009/05/27 07:02:36, Yury Semikhatsky wrote:
> use {} ?

I am being consistent.

http://codereview.chromium.org/113836/diff/1159/123#newcode105
Line 105: if (inspected_web_view_->GetWebDevToolsAgentImpl())
On 2009/05/27 07:02:36, Yury Semikhatsky wrote:
> ditto

ditto

http://codereview.chromium.org/113836/diff/1159/123#newcode118
Line 118: if (inspected_web_view_->GetWebDevToolsAgentImpl())
On 2009/05/27 07:02:36, Yury Semikhatsky wrote:
> ditto

ditto

http://codereview.chromium.org/113836/diff/1159/123#newcode130
Line 130: if (inspected_web_view_->GetWebDevToolsAgentImpl())
On 2009/05/27 07:02:36, Yury Semikhatsky wrote:
> ditto

ditto

http://codereview.chromium.org/113836/diff/1159/104
File webkit/glue/webdevtoolsagent_impl.cc (right):

http://codereview.chromium.org/113836/diff/1159/104#newcode106
Line 106: ic->setWindowVisible(false, false);
On 2009/05/27 07:02:36, Yury Semikhatsky wrote:
> add comment why this is needed

Done.

http://codereview.chromium.org/113836/diff/1159/104#newcode218
Line 218: int identifier) {
On 2009/05/27 07:02:36, Yury Semikhatsky wrote:
> it should be unsigned long, isn't it?

It used to be int in the net_agent. Rpc does not handle long longs...

Powered by Google App Engine
This is Rietveld 408576698