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

Issue 1461693003: [headless] Initial skeleton of headless/public/ (Closed)

Created:
5 years, 1 month ago by altimin
Modified:
4 years, 11 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[headless] Initial skeleton of headless/public/ Create outline of future Headless API. BUG=546953 Committed: https://crrev.com/168fe2a9a59963bfd6a8d5b4762e316b3fbaf076 Cr-Commit-Position: refs/heads/master@{#362712}

Patch Set 1 #

Patch Set 2 : Moved DEPS to correct directory #

Total comments: 37

Patch Set 3 : Changes according to Sami's notes #

Patch Set 4 : Remove unneeded semicolons #

Total comments: 4

Patch Set 5 : Removed OnStart() and changed Run() #

Total comments: 1

Patch Set 6 : Pure virtual indeed #

Total comments: 13

Patch Set 7 : Changes according to alexclarke@'s comments #

Patch Set 8 : Remove direct dom interaction #

Total comments: 55

Patch Set 9 : Changes according to skyostil@'s comments #

Total comments: 11

Patch Set 10 : Minor fixes #

Patch Set 11 : Minor fixes #

Total comments: 6

Patch Set 12 : Even more minor fixes #

Patch Set 13 : More minor fixes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -0 lines) Patch
A headless/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download
A headless/public/headless_browser.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +110 lines, -0 lines 0 comments Download
A headless/public/headless_browser.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +41 lines, -0 lines 0 comments Download
A headless/public/headless_export.h View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A headless/public/network.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +36 lines, -0 lines 0 comments Download
A headless/public/web_contents.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +69 lines, -0 lines 1 comment Download
A headless/public/web_frame.h View 1 2 3 4 5 6 7 8 1 chunk +53 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (12 generated)
altimin
5 years, 1 month ago (2015-11-18 18:05:49 UTC) #1
Sami
Thanks, looks like a good starting point. https://codereview.chromium.org/1461693003/diff/20001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/1461693003/diff/20001/headless/BUILD.gn#newcode13 headless/BUILD.gn:13: testonly = ...
5 years, 1 month ago (2015-11-19 14:08:35 UTC) #3
altimin
PTAL https://codereview.chromium.org/1461693003/diff/20001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/1461693003/diff/20001/headless/BUILD.gn#newcode13 headless/BUILD.gn:13: testonly = true On 2015/11/19 14:08:34, Sami wrote: ...
5 years, 1 month ago (2015-11-19 14:52:54 UTC) #4
Sami
Thanks, couple more nits and a suggestion for OnStart(). https://codereview.chromium.org/1461693003/diff/20001/headless/public/headless_browser.h File headless/public/headless_browser.h (right): https://codereview.chromium.org/1461693003/diff/20001/headless/public/headless_browser.h#newcode35 headless/public/headless_browser.h:35: ...
5 years, 1 month ago (2015-11-19 15:42:44 UTC) #7
altimin
PTAL https://codereview.chromium.org/1461693003/diff/20001/headless/public/headless_browser.h File headless/public/headless_browser.h (right): https://codereview.chromium.org/1461693003/diff/20001/headless/public/headless_browser.h#newcode35 headless/public/headless_browser.h:35: virtual void OnStart(const base::Closure& on_start_callback) = 0; On ...
5 years, 1 month ago (2015-11-19 16:13:13 UTC) #8
Sami
lgtm with a nit. Dimitri, could you check the DEPS change here please? https://codereview.chromium.org/1461693003/diff/80001/headless/public/headless_browser.h File ...
5 years, 1 month ago (2015-11-19 16:24:39 UTC) #9
Sami
On 2015/11/19 16:24:39, Sami wrote: > Dimitri, could you check the DEPS change here please? ...
5 years, 1 month ago (2015-11-19 16:25:04 UTC) #10
Sami
+dglazkov@ for real this time.
5 years, 1 month ago (2015-11-19 16:25:57 UTC) #12
alex clarke (OOO till 29th)
https://codereview.chromium.org/1461693003/diff/100001/headless/public/headless_browser.h File headless/public/headless_browser.h (right): https://codereview.chromium.org/1461693003/diff/100001/headless/public/headless_browser.h#newcode29 headless/public/headless_browser.h:29: virtual scoped_ptr<WebContents> CreateWebContents(const gfx::Size& size) = 0; Is the ...
5 years, 1 month ago (2015-11-19 18:17:54 UTC) #13
altimin
PTAL https://codereview.chromium.org/1461693003/diff/100001/headless/public/headless_browser.h File headless/public/headless_browser.h (right): https://codereview.chromium.org/1461693003/diff/100001/headless/public/headless_browser.h#newcode29 headless/public/headless_browser.h:29: virtual scoped_ptr<WebContents> CreateWebContents(const gfx::Size& size) = 0; On ...
5 years, 1 month ago (2015-11-19 18:36:24 UTC) #14
altimin
PTAL
5 years ago (2015-12-01 11:57:40 UTC) #16
Sami
Thanks for leaving out the DOM parts for now. Generally looks good -- some bikesheddy ...
5 years ago (2015-12-01 14:03:58 UTC) #17
altimin
PTAL https://codereview.chromium.org/1461693003/diff/140001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/1461693003/diff/140001/headless/BUILD.gn#newcode1 headless/BUILD.gn:1: # Use of this source code is governed ...
5 years ago (2015-12-01 15:17:29 UTC) #18
Sami
https://codereview.chromium.org/1461693003/diff/140001/headless/public/headless_browser.cc File headless/public/headless_browser.cc (right): https://codereview.chromium.org/1461693003/diff/140001/headless/public/headless_browser.cc#newcode45 headless/public/headless_browser.cc:45: return std::move(options_); On 2015/12/01 15:17:28, altimin wrote: > On ...
5 years ago (2015-12-01 17:47:34 UTC) #19
Sami
https://codereview.chromium.org/1461693003/diff/160001/headless/public/headless_browser.cc File headless/public/headless_browser.cc (right): https://codereview.chromium.org/1461693003/diff/160001/headless/public/headless_browser.cc#newcode1 headless/public/headless_browser.cc:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years ago (2015-12-01 17:48:27 UTC) #20
altimin
PTAL https://codereview.chromium.org/1461693003/diff/140001/headless/public/web_frame.h File headless/public/web_frame.h (right): https://codereview.chromium.org/1461693003/diff/140001/headless/public/web_frame.h#newcode40 headless/public/web_frame.h:40: virtual void ExecuteScriptAndReturnValue( On 2015/12/01 17:47:33, Sami wrote: ...
5 years ago (2015-12-01 18:42:46 UTC) #21
Sami
https://codereview.chromium.org/1461693003/diff/140001/headless/public/web_frame.h File headless/public/web_frame.h (right): https://codereview.chromium.org/1461693003/diff/140001/headless/public/web_frame.h#newcode40 headless/public/web_frame.h:40: virtual void ExecuteScriptAndReturnValue( On 2015/12/01 18:42:46, altimin wrote: > ...
5 years ago (2015-12-01 18:53:53 UTC) #22
alex clarke (OOO till 29th)
https://codereview.chromium.org/1461693003/diff/100001/headless/public/web_contents.h File headless/public/web_contents.h (right): https://codereview.chromium.org/1461693003/diff/100001/headless/public/web_contents.h#newcode27 headless/public/web_contents.h:27: Observer(WebContents* web_contents); On 2015/11/19 18:36:24, altimin wrote: > On ...
5 years ago (2015-12-01 20:07:30 UTC) #23
altimin
PTAL https://codereview.chromium.org/1461693003/diff/200001/headless/public/headless_browser.h File headless/public/headless_browser.h (right): https://codereview.chromium.org/1461693003/diff/200001/headless/public/headless_browser.h#newcode68 headless/public/headless_browser.h:68: Options(Options&&); On 2015/12/01 20:07:30, alexclarke1 wrote: > Do ...
5 years ago (2015-12-02 12:44:07 UTC) #27
Sami
https://codereview.chromium.org/1461693003/diff/200001/headless/public/headless_browser.h File headless/public/headless_browser.h (right): https://codereview.chromium.org/1461693003/diff/200001/headless/public/headless_browser.h#newcode109 headless/public/headless_browser.h:109: DISALLOW_COPY_AND_ASSIGN(Builder); Is there a reason we couldn't keep this?
5 years ago (2015-12-02 13:37:14 UTC) #28
altimin
https://codereview.chromium.org/1461693003/diff/200001/headless/public/headless_browser.h File headless/public/headless_browser.h (right): https://codereview.chromium.org/1461693003/diff/200001/headless/public/headless_browser.h#newcode109 headless/public/headless_browser.h:109: DISALLOW_COPY_AND_ASSIGN(Builder); On 2015/12/02 13:37:14, Sami wrote: > Is there ...
5 years ago (2015-12-02 13:43:41 UTC) #29
alex clarke (OOO till 29th)
lgtm
5 years ago (2015-12-02 14:11:03 UTC) #30
alex clarke (OOO till 29th)
lgtm
5 years ago (2015-12-02 14:11:04 UTC) #31
Sami
lgtm, thanks for the improvements. Details will change but this seems like a good starting ...
5 years ago (2015-12-02 14:11:35 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1461693003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1461693003/240001
5 years ago (2015-12-02 15:01:08 UTC) #34
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years ago (2015-12-02 15:35:28 UTC) #36
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/168fe2a9a59963bfd6a8d5b4762e316b3fbaf076 Cr-Commit-Position: refs/heads/master@{#362712}
5 years ago (2015-12-02 15:37:02 UTC) #38
ncarter (slow)
https://codereview.chromium.org/1461693003/diff/240001/headless/public/web_contents.h File headless/public/web_contents.h (right): https://codereview.chromium.org/1461693003/diff/240001/headless/public/web_contents.h#newcode25 headless/public/web_contents.h:25: class HEADLESS_EXPORT WebContents { I worry that having two ...
4 years, 11 months ago (2016-01-20 22:23:20 UTC) #40
Sami
4 years, 11 months ago (2016-01-21 11:40:05 UTC) #41
Message was sent while issue was closed.
On 2016/01/20 22:23:20, ncarter wrote:
>
https://codereview.chromium.org/1461693003/diff/240001/headless/public/web_co...
> File headless/public/web_contents.h (right):
> 
>
https://codereview.chromium.org/1461693003/diff/240001/headless/public/web_co...
> headless/public/web_contents.h:25: class HEADLESS_EXPORT WebContents {
> I worry that having two "web_contents.h" headers in the codebase will confuse
> people encountering snippets of the code (I've opened the wrong one by mistake
a
> couple of times now, though that's mostly a side effect of how I use my
editor).
> 
> Any reason not to call this HeadlessContents?

Yeah, it's too bad namespaces don't really solve this problem. I think we could
rename this to HeadlessWebContents or something like that.

Powered by Google App Engine
This is Rietveld 408576698