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

Issue 2473073003: [headless] Refactor headless devtools client API. (Closed)

Created:
4 years, 1 month ago by altimin
Modified:
4 years, 1 month ago
Reviewers:
Dirk Pranke, Sami
CC:
chromium-reviews, pfeldman, devtools-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[headless] Refactor headless devtools client API. This patch splits types.{h,cc} and type_conversions.h into multiple files on per-domain basis. This makes them more readable and reduces compilation times. Aliases are avalaible at the old locations for the transition period. BUG=546953 Committed: https://crrev.com/eaffa8e0c53f3c61a9239b27295b390884bd5fd5 Cr-Commit-Position: refs/heads/master@{#430774}

Patch Set 1 #

Patch Set 2 : Deleted random files #

Total comments: 18

Patch Set 3 : Address comments from skyostil@. #

Total comments: 2

Patch Set 4 : Address nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+566 lines, -2044 lines) Patch
M headless/BUILD.gn View 1 2 2 chunks +57 lines, -69 lines 0 comments Download
M headless/app/headless_shell.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
D headless/lib/browser/client_api_generator.py View 1 chunk +0 lines, -437 lines 0 comments Download
D headless/lib/browser/client_api_generator_unittest.py View 1 chunk +0 lines, -502 lines 0 comments Download
A + headless/lib/browser/devtools_api/client_api_generator.py View 1 2 11 chunks +223 lines, -125 lines 0 comments Download
A + headless/lib/browser/devtools_api/client_api_generator_unittest.py View 1 2 3 chunks +64 lines, -6 lines 0 comments Download
A + headless/lib/browser/devtools_api/deprecated_domain_h.template View 1 2 1 chunk +3 lines, -6 lines 0 comments Download
A headless/lib/browser/devtools_api/deprecated_type_conversions_h.template View 1 chunk +14 lines, -0 lines 0 comments Download
A headless/lib/browser/devtools_api/deprecated_types_h.template View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A + headless/lib/browser/devtools_api/domain_cc.template View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + headless/lib/browser/devtools_api/domain_h.template View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
A + headless/lib/browser/devtools_api/domain_type_conversions_h.template View 3 chunks +15 lines, -22 lines 0 comments Download
A + headless/lib/browser/devtools_api/domain_types_cc.template View 1 2 4 chunks +27 lines, -64 lines 0 comments Download
A headless/lib/browser/devtools_api/domain_types_forward_declaration_h.template View 1 chunk +44 lines, -0 lines 0 comments Download
A + headless/lib/browser/devtools_api/domain_types_h.template View 4 chunks +37 lines, -71 lines 0 comments Download
D headless/lib/browser/domain_cc.template View 1 2 1 chunk +0 lines, -150 lines 0 comments Download
D headless/lib/browser/domain_h.template View 1 2 1 chunk +0 lines, -164 lines 0 comments Download
M headless/lib/browser/headless_devtools_client_impl.h View 1 2 1 chunk +30 lines, -30 lines 0 comments Download
M headless/lib/browser/headless_devtools_manager_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
D headless/lib/browser/type_conversions_h.template View 1 chunk +0 lines, -77 lines 0 comments Download
D headless/lib/browser/types_cc.template View 1 chunk +0 lines, -130 lines 0 comments Download
D headless/lib/browser/types_h.template View 1 chunk +0 lines, -158 lines 0 comments Download
M headless/lib/embedder_mojo_browsertest.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M headless/lib/headless_browser_browsertest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M headless/lib/headless_devtools_client_browsertest.cc View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M headless/lib/headless_web_contents_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M headless/public/domains/README.md View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M headless/public/domains/types_unittest.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M headless/public/internal/value_conversions.h View 1 chunk +1 line, -1 line 0 comments Download
M headless/public/util/dom_tree_extractor.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M headless/public/util/dom_tree_extractor_browsertest.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M headless/test/headless_browser_test.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M headless/test/headless_browser_test.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M testing/scripts/headless_python_unittests.py View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 23 (12 generated)
altimin
PTAL
4 years, 1 month ago (2016-11-03 18:46:46 UTC) #2
Sami
Looks like a great cleanup! Would you also mind updating all the code under headless/ ...
4 years, 1 month ago (2016-11-04 17:42:10 UTC) #3
altimin
PTAL https://codereview.chromium.org/2473073003/diff/20001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/2473073003/diff/20001/headless/BUILD.gn#newcode106 headless/BUILD.gn:106: "$target_gen_dir/public/devtools/internal/type_conversions" + domain + ".h", On 2016/11/04 17:42:10, ...
4 years, 1 month ago (2016-11-08 17:14:19 UTC) #4
Sami
Thanks, lgtm with one nit. https://codereview.chromium.org/2473073003/diff/40001/headless/public/domains/types_unittest.cc File headless/public/domains/types_unittest.cc (right): https://codereview.chromium.org/2473073003/diff/40001/headless/public/domains/types_unittest.cc#newcode6 headless/public/domains/types_unittest.cc:6: #include "headless/public/domains/types.h" // TODO(altimin): ...
4 years, 1 month ago (2016-11-08 18:58:44 UTC) #5
Sami
Btw the headless tryjob I submitted was unhappy with this patch. Might want to check ...
4 years, 1 month ago (2016-11-08 18:59:06 UTC) #6
altimin
https://codereview.chromium.org/2473073003/diff/40001/headless/public/domains/types_unittest.cc File headless/public/domains/types_unittest.cc (right): https://codereview.chromium.org/2473073003/diff/40001/headless/public/domains/types_unittest.cc#newcode6 headless/public/domains/types_unittest.cc:6: #include "headless/public/domains/types.h" // TODO(altimin): Remove it. On 2016/11/08 18:58:44, ...
4 years, 1 month ago (2016-11-08 19:16:58 UTC) #12
altimin
+ dpranke@: Please approve changes in testing script.
4 years, 1 month ago (2016-11-08 19:18:52 UTC) #14
Dirk Pranke
lgtm
4 years, 1 month ago (2016-11-08 21:12:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2473073003/60001
4 years, 1 month ago (2016-11-08 23:49:46 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-08 23:57:00 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 00:04:59 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/eaffa8e0c53f3c61a9239b27295b390884bd5fd5
Cr-Commit-Position: refs/heads/master@{#430774}

Powered by Google App Engine
This is Rietveld 408576698