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

Issue 508973003: DevTools: Protocol handler generator for content (Closed)

Created:
6 years, 3 months ago by vkuzkokov
Modified:
6 years, 2 months ago
CC:
aandrey+blink_chromium.org, chromium-reviews, darin-cc_chromium.org, devtools-reviews_chromium.org, jam, paulirish+reviews_chromium.org, vsevik, yurys
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

DevTools: Protocol handler generator for content BUG=405566 Committed: https://crrev.com/c985d95d1be81585c2e3a085838ce459a5b3ce2f Cr-Commit-Position: refs/heads/master@{#297628}

Patch Set 1 #

Patch Set 2 : Completed. Applied for "Power" domain #

Patch Set 3 : Added event sending #

Patch Set 4 : #

Patch Set 5 : Rebased #

Patch Set 6 : Rebased. Fixed #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : Added Response types #

Patch Set 11 : Rebased #

Patch Set 12 : #

Total comments: 12

Patch Set 13 : #

Total comments: 12

Patch Set 14 : #

Total comments: 12

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Total comments: 14

Patch Set 18 : #

Total comments: 1

Patch Set 19 : #

Patch Set 20 : Rebased #

Patch Set 21 : #

Patch Set 22 : Style fix #

Total comments: 10

Patch Set 23 : Fit generated code in 80 chars per line #

Total comments: 9

Patch Set 24 : Fixed gn build #

Total comments: 8

Patch Set 25 : Added devtools.gyp #

Total comments: 2

Patch Set 26 : Moved handler creation to RVDTAH #

Patch Set 27 : #

Patch Set 28 : #

Total comments: 6

Patch Set 29 : #

Patch Set 30 : Allow command->params()==NULL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1842 lines, -186 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/devtools/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +25 lines, -0 lines 0 comments Download
A content/browser/devtools/devtools.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +44 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/devtools_protocol_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +76 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/devtools_protocol_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +93 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/devtools_protocol_handler_generator.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +777 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/dom_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +32 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/dom_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +26 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/input_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +46 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/input_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +111 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/inspector_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +31 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/inspector_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +23 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/network_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +38 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/network_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +40 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/page_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +80 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/page_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +131 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/power_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +38 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/power_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +41 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/tracing_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +42 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/tracing_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +40 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/worker_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +35 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/worker_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +30 lines, -0 lines 0 comments Download
M content/browser/devtools/render_view_devtools_agent_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/devtools/render_view_devtools_agent_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 5 chunks +13 lines, -0 lines 0 comments Download
M content/browser/devtools/renderer_overrides_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +0 lines, -11 lines 0 comments Download
M content/browser/devtools/renderer_overrides_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 4 chunks +0 lines, -175 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 3 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (8 generated)
vkuzkokov
6 years, 3 months ago (2014-09-03 15:36:42 UTC) #2
dgozman
https://codereview.chromium.org/508973003/diff/220001/content/browser/devtools/devtools_protocol_frontend.h File content/browser/devtools/devtools_protocol_frontend.h (right): https://codereview.chromium.org/508973003/diff/220001/content/browser/devtools/devtools_protocol_frontend.h#newcode20 content/browser/devtools/devtools_protocol_frontend.h:20: RESPONSE_STATUS_SERVER_ERROR, Add internal error as well. https://codereview.chromium.org/508973003/diff/220001/content/browser/devtools/devtools_protocol_frontend.h#newcode24 content/browser/devtools/devtools_protocol_frontend.h:24: Response(ResponseStatus ...
6 years, 3 months ago (2014-09-09 14:30:59 UTC) #3
vkuzkokov
https://codereview.chromium.org/508973003/diff/220001/content/browser/devtools/devtools_protocol_frontend.h File content/browser/devtools/devtools_protocol_frontend.h (right): https://codereview.chromium.org/508973003/diff/220001/content/browser/devtools/devtools_protocol_frontend.h#newcode20 content/browser/devtools/devtools_protocol_frontend.h:20: RESPONSE_STATUS_SERVER_ERROR, On 2014/09/09 14:30:59, dgozman wrote: > Add internal ...
6 years, 3 months ago (2014-09-10 10:33:12 UTC) #4
dgozman
https://codereview.chromium.org/508973003/diff/240001/content/browser/devtools/protocol/devtools_protocol_frontend.h File content/browser/devtools/protocol/devtools_protocol_frontend.h (right): https://codereview.chromium.org/508973003/diff/240001/content/browser/devtools/protocol/devtools_protocol_frontend.h#newcode16 content/browser/devtools/protocol/devtools_protocol_frontend.h:16: enum ResponseStatus { Looks like there is no need ...
6 years, 3 months ago (2014-09-10 13:01:20 UTC) #5
vkuzkokov
https://codereview.chromium.org/508973003/diff/240001/content/browser/devtools/protocol/devtools_protocol_frontend.h File content/browser/devtools/protocol/devtools_protocol_frontend.h (right): https://codereview.chromium.org/508973003/diff/240001/content/browser/devtools/protocol/devtools_protocol_frontend.h#newcode16 content/browser/devtools/protocol/devtools_protocol_frontend.h:16: enum ResponseStatus { On 2014/09/10 13:01:20, dgozman wrote: > ...
6 years, 3 months ago (2014-09-11 12:53:03 UTC) #6
dgozman
Let's add async support and structs for events, and this is ready. https://codereview.chromium.org/508973003/diff/260001/content/browser/devtools/BUILD.gn File content/browser/devtools/BUILD.gn ...
6 years, 3 months ago (2014-09-11 13:43:22 UTC) #7
vkuzkokov
https://codereview.chromium.org/508973003/diff/260001/content/browser/devtools/BUILD.gn File content/browser/devtools/BUILD.gn (right): https://codereview.chromium.org/508973003/diff/260001/content/browser/devtools/BUILD.gn#newcode84 content/browser/devtools/BUILD.gn:84: visibility = ":resources" On 2014/09/11 13:43:22, dgozman wrote: > ...
6 years, 3 months ago (2014-09-11 17:19:20 UTC) #8
dgozman
Please mention that this patch also changes Input domain to use generated handler. https://codereview.chromium.org/508973003/diff/320001/content/browser/devtools/protocol/devtools_protocol_frontend.h File ...
6 years, 3 months ago (2014-09-12 11:48:46 UTC) #9
vkuzkokov
https://codereview.chromium.org/508973003/diff/320001/content/browser/devtools/protocol/devtools_protocol_frontend.h File content/browser/devtools/protocol/devtools_protocol_frontend.h (right): https://codereview.chromium.org/508973003/diff/320001/content/browser/devtools/protocol/devtools_protocol_frontend.h#newcode35 content/browser/devtools/protocol/devtools_protocol_frontend.h:35: ResponseStatus status_; On 2014/09/12 11:48:45, dgozman wrote: > Let's ...
6 years, 3 months ago (2014-09-12 14:22:52 UTC) #10
dgozman
Adding Pavel, as this is getting close to handling all we need. https://codereview.chromium.org/508973003/diff/340001/content/browser/devtools/protocol/page_handler.h File content/browser/devtools/protocol/page_handler.h ...
6 years, 3 months ago (2014-09-14 14:25:49 UTC) #12
dgozman
https://codereview.chromium.org/508973003/diff/420001/content/browser/devtools/protocol/devtools_protocol_handler_generator.py File content/browser/devtools/protocol/devtools_protocol_handler_generator.py (right): https://codereview.chromium.org/508973003/diff/420001/content/browser/devtools/protocol/devtools_protocol_handler_generator.py#newcode145 content/browser/devtools/protocol/devtools_protocol_handler_generator.py:145: void ${Command}(const ${Command}Params& params); Let's format this to fit ...
6 years, 3 months ago (2014-09-16 13:21:25 UTC) #13
vkuzkokov
https://codereview.chromium.org/508973003/diff/420001/content/browser/devtools/protocol/devtools_protocol_handler_generator.py File content/browser/devtools/protocol/devtools_protocol_handler_generator.py (right): https://codereview.chromium.org/508973003/diff/420001/content/browser/devtools/protocol/devtools_protocol_handler_generator.py#newcode145 content/browser/devtools/protocol/devtools_protocol_handler_generator.py:145: void ${Command}(const ${Command}Params& params); On 2014/09/16 13:21:23, dgozman wrote: ...
6 years, 3 months ago (2014-09-16 14:59:38 UTC) #14
dgozman
+vsevik@, yurys@ lgtm https://codereview.chromium.org/508973003/diff/440001/content/browser/devtools/BUILD.gn File content/browser/devtools/BUILD.gn (right): https://codereview.chromium.org/508973003/diff/440001/content/browser/devtools/BUILD.gn#newcode63 content/browser/devtools/BUILD.gn:63: script = "//content/browser/devtools/protocol/devtools_protocol_handler_generator.py" Fit in 80 ...
6 years, 3 months ago (2014-09-16 15:38:05 UTC) #16
vkuzkokov
https://codereview.chromium.org/508973003/diff/440001/content/browser/devtools/BUILD.gn File content/browser/devtools/BUILD.gn (right): https://codereview.chromium.org/508973003/diff/440001/content/browser/devtools/BUILD.gn#newcode63 content/browser/devtools/BUILD.gn:63: script = "//content/browser/devtools/protocol/devtools_protocol_handler_generator.py" On 2014/09/16 15:38:05, dgozman wrote: > ...
6 years, 3 months ago (2014-09-16 16:37:55 UTC) #17
vkuzkokov
Pavel, ptal.
6 years, 3 months ago (2014-09-17 16:20:53 UTC) #18
pfeldman
Lets rename "Frontend" to "Client". https://codereview.chromium.org/508973003/diff/460001/content/browser/devtools/devtools_resources.gyp File content/browser/devtools/devtools_resources.gyp (right): https://codereview.chromium.org/508973003/diff/460001/content/browser/devtools/devtools_resources.gyp#newcode75 content/browser/devtools/devtools_resources.gyp:75: 'action_name': 'devtools_protocol_handler', Why is ...
6 years, 3 months ago (2014-09-18 10:11:47 UTC) #19
vkuzkokov
https://codereview.chromium.org/508973003/diff/460001/content/browser/devtools/devtools_resources.gyp File content/browser/devtools/devtools_resources.gyp (right): https://codereview.chromium.org/508973003/diff/460001/content/browser/devtools/devtools_resources.gyp#newcode75 content/browser/devtools/devtools_resources.gyp:75: 'action_name': 'devtools_protocol_handler', On 2014/09/18 10:11:47, pfeldman wrote: > Why ...
6 years, 3 months ago (2014-09-19 17:02:45 UTC) #20
dgozman
https://codereview.chromium.org/508973003/diff/460001/content/browser/devtools/protocol/inspector_handler.h File content/browser/devtools/protocol/inspector_handler.h (right): https://codereview.chromium.org/508973003/diff/460001/content/browser/devtools/protocol/inspector_handler.h#newcode14 content/browser/devtools/protocol/inspector_handler.h:14: class InspectorHandler { On 2014/09/19 17:02:45, vkuzkokov wrote: > ...
6 years, 3 months ago (2014-09-20 14:53:50 UTC) #21
vkuzkokov
https://codereview.chromium.org/508973003/diff/460001/content/browser/devtools/protocol/inspector_handler.h File content/browser/devtools/protocol/inspector_handler.h (right): https://codereview.chromium.org/508973003/diff/460001/content/browser/devtools/protocol/inspector_handler.h#newcode14 content/browser/devtools/protocol/inspector_handler.h:14: class InspectorHandler { On 2014/09/20 14:53:50, dgozman wrote: > ...
6 years, 3 months ago (2014-09-22 12:32:12 UTC) #22
dgozman
https://codereview.chromium.org/508973003/diff/540001/content/browser/devtools/protocol/page_handler.cc File content/browser/devtools/protocol/page_handler.cc (right): https://codereview.chromium.org/508973003/diff/540001/content/browser/devtools/protocol/page_handler.cc#newcode115 content/browser/devtools/protocol/page_handler.cc:115: "Unable to capture screenshot"); nit: indentation https://codereview.chromium.org/508973003/diff/540001/content/browser/devtools/render_view_devtools_agent_host.h File content/browser/devtools/render_view_devtools_agent_host.h ...
6 years, 3 months ago (2014-09-22 12:46:06 UTC) #23
vkuzkokov
https://codereview.chromium.org/508973003/diff/540001/content/browser/devtools/protocol/page_handler.cc File content/browser/devtools/protocol/page_handler.cc (right): https://codereview.chromium.org/508973003/diff/540001/content/browser/devtools/protocol/page_handler.cc#newcode115 content/browser/devtools/protocol/page_handler.cc:115: "Unable to capture screenshot"); On 2014/09/22 12:46:06, dgozman wrote: ...
6 years, 3 months ago (2014-09-22 12:57:29 UTC) #24
pfeldman
lgtm
6 years, 2 months ago (2014-09-23 14:26:53 UTC) #25
vkuzkokov
jochen, PTAL at: content/browser/BUILD.gn
6 years, 2 months ago (2014-09-23 14:32:28 UTC) #27
jochen (gone - plz use gerrit)
lgtm
6 years, 2 months ago (2014-09-24 20:05:42 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/508973003/560001
6 years, 2 months ago (2014-09-25 10:54:16 UTC) #31
commit-bot: I haz the power
Committed patchset #29 (id:560001) as cfbc3766dada239abe134710564f59a4a3275191
6 years, 2 months ago (2014-09-25 11:49:20 UTC) #32
commit-bot: I haz the power
Patchset 29 (id:??) landed as https://crrev.com/fa9990e750100c92ac9f53494b65a3174890487d Cr-Commit-Position: refs/heads/master@{#296694}
6 years, 2 months ago (2014-09-25 11:50:01 UTC) #33
Mads Ager (chromium)
A revert of this CL (patchset #29 id:560001) has been created in https://codereview.chromium.org/607503002/ by ager@chromium.org. ...
6 years, 2 months ago (2014-09-25 13:15:47 UTC) #34
vkuzkokov
Generated code was sending error response if params were missing from command. Turns out it's ...
6 years, 2 months ago (2014-09-25 14:41:37 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/508973003/580001
6 years, 2 months ago (2014-09-25 14:51:13 UTC) #37
commit-bot: I haz the power
Committed patchset #30 (id:580001) as 37bbb8287d5011ee8185b207e272345801685231
6 years, 2 months ago (2014-09-25 16:44:33 UTC) #38
commit-bot: I haz the power
Patchset 30 (id:??) landed as https://crrev.com/4b0b62979ddd96b65064364eb669ec9dda7e5e5e Cr-Commit-Position: refs/heads/master@{#296723}
6 years, 2 months ago (2014-09-25 16:45:24 UTC) #39
Zhenyao Mo
A revert of this CL (patchset #30 id:580001) has been created in https://codereview.chromium.org/607913004/ by zmo@chromium.org. ...
6 years, 2 months ago (2014-09-26 21:14:34 UTC) #40
Zhenyao Mo
A revert of this CL (patchset #30 id:580001) has been created in https://codereview.chromium.org/612523004/ by zmo@chromium.org. ...
6 years, 2 months ago (2014-09-26 21:14:42 UTC) #41
vkuzkokov
The only layout test affected by this patch is inspector-protocol/input/emulateTouchFromMouseEvent.html which works like a charm ...
6 years, 2 months ago (2014-10-01 12:22:31 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/508973003/580001
6 years, 2 months ago (2014-10-01 12:23:16 UTC) #44
commit-bot: I haz the power
Committed patchset #30 (id:580001) as 2f932477b738e36292d5c68490fff56fe4630a1f
6 years, 2 months ago (2014-10-01 12:24:22 UTC) #45
commit-bot: I haz the power
6 years, 2 months ago (2014-10-01 12:24:56 UTC) #46
Message was sent while issue was closed.
Patchset 30 (id:??) landed as
https://crrev.com/c985d95d1be81585c2e3a085838ce459a5b3ce2f
Cr-Commit-Position: refs/heads/master@{#297628}

Powered by Google App Engine
This is Rietveld 408576698