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

Issue 1410573004: headless: Add a headless shell (Closed)

Created:
5 years, 2 months ago by Sami
Modified:
5 years ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mkwst+moarreviews-shell_chromium.org, jam, jochen+watch_chromium.org, darin-cc_chromium.org, alex clarke (OOO till 29th), altimin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

headless: Add a headless shell Introduce a headless shell executable that can be used to test the headless configuration of Chrome and exercise various headless APIs. BUG=546953

Patch Set 1 #

Patch Set 2 : Cleanup. #

Patch Set 3 : Remove ozone platform override. #

Patch Set 4 : Move to a top level directory. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -9 lines) Patch
M BUILD.gn View 1 2 3 1 chunk +4 lines, -0 lines 1 comment Download
A + headless/BUILD.gn View 1 2 3 1 chunk +8 lines, -5 lines 0 comments Download
A + headless/OWNERS View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
A headless/README.md View 1 2 3 1 chunk +21 lines, -0 lines 1 comment Download
A headless/app/BUILD.gn View 1 2 3 1 chunk +15 lines, -0 lines 1 comment Download
A + headless/app/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A + headless/app/headless_shell_main.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A headless/headless_export.h View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A headless/lib/BUILD.gn View 1 2 3 1 chunk +49 lines, -0 lines 1 comment Download
A + headless/lib/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A headless/lib/headless_main_delegate.h View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
A headless/lib/headless_main_delegate.cc View 1 2 3 1 chunk +118 lines, -0 lines 2 comments Download

Messages

Total messages: 7 (3 generated)
Sami
Still needs some cleanup. Sample command line: out_linux/Debug/headless_test_shell --ozone-platform=test --disable-gpu --single-process --ozone-dump-file=/tmp/headless http://www.google.com
5 years, 2 months ago (2015-10-23 16:39:15 UTC) #2
Sami
Peter, wanna have a look? Feel free to suggest a better way of adding a ...
5 years, 1 month ago (2015-10-26 15:58:11 UTC) #4
Sami
Moved to a top level directory like we discussed. WDYT of the layout now? Also, ...
5 years, 1 month ago (2015-10-26 19:51:21 UTC) #6
Peter Beverloo
5 years, 1 month ago (2015-10-27 14:35:51 UTC) #7
A few nits - thank you for moving it, this seems more appropriate to me than a
sub-target in //content/shell/.

Perhaps ask jam@ to do the addition review, given that he's a member of the
mailing list and will have context?

https://codereview.chromium.org/1410573004/diff/60001/BUILD.gn
File BUILD.gn (right):

https://codereview.chromium.org/1410573004/diff/60001/BUILD.gn#newcode649
BUILD.gn:649: if (is_headless) {
Does this need to be defined somewhere?

Documenting it in //tools/gn/docs/cookbook.md also seems appropriate.

https://codereview.chromium.org/1410573004/diff/60001/headless/README.md
File headless/README.md (right):

https://codereview.chromium.org/1410573004/diff/60001/headless/README.md#newc...
headless/README.md:13: 2. A sample application which demonstrates the use of
headless APIs.
Perhaps //headless/app/ would be more appropriately named as //headless/shell/?
(Also per your comment under testing.)

https://codereview.chromium.org/1410573004/diff/60001/headless/app/BUILD.gn
File headless/app/BUILD.gn (right):

https://codereview.chromium.org/1410573004/diff/60001/headless/app/BUILD.gn#n...
headless/app/BUILD.gn:1: import("//build/config/features.gni")
nit: copyright header

https://codereview.chromium.org/1410573004/diff/60001/headless/lib/BUILD.gn
File headless/lib/BUILD.gn (right):

https://codereview.chromium.org/1410573004/diff/60001/headless/lib/BUILD.gn#n...
headless/lib/BUILD.gn:1: import("//build/config/features.gni")
nit: copyright header

https://codereview.chromium.org/1410573004/diff/60001/headless/lib/headless_m...
File headless/lib/headless_main_delegate.cc (right):

https://codereview.chromium.org/1410573004/diff/60001/headless/lib/headless_m...
headless/lib/headless_main_delegate.cc:94: bool r =
PathService::Get(base::DIR_MODULE, &pak_file);
nit: const bool success?

https://codereview.chromium.org/1410573004/diff/60001/headless/lib/headless_m...
headless/lib/headless_main_delegate.cc:96: pak_file =
pak_file.Append(FILE_PATH_LITERAL("content_shell.pak"));
headless.pak

Powered by Google App Engine
This is Rietveld 408576698