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

Issue 2886693002: initial version of the headless download manager delegate

Created:
3 years, 7 months ago by Oleg Sushkov
Modified:
3 years, 6 months ago
Reviewers:
Eric Seckler, pfeldman, Sami
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, Eric Seckler, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, pfeldman, jzfeng, irisu, dvallet
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

initial version of the headless download manager delegate BUG=696481

Patch Set 1 #

Patch Set 2 : initial version of the headless download manager delegate #

Total comments: 9

Patch Set 3 : initial version of the headless download manager delegate #

Patch Set 4 : initial version of the headless download manager delegate #

Total comments: 1

Patch Set 5 : initial version of the headless download manager delegate #

Total comments: 24

Patch Set 6 : initial version of the headless download manager delegate #

Unified diffs Side-by-side diffs Delta from patch set Stats (+787 lines, -3 lines) Patch
M headless/BUILD.gn View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_browser_context_impl.h View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M headless/lib/browser/headless_browser_context_impl.cc View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M headless/lib/browser/headless_browser_impl.h View 1 2 3 4 3 chunks +16 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_browser_impl.cc View 1 2 3 4 5 2 chunks +41 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_devtools_manager_delegate.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_devtools_manager_delegate.cc View 1 2 3 4 4 chunks +46 lines, -0 lines 0 comments Download
A headless/lib/browser/headless_download_manager_delegate.h View 1 2 3 4 1 chunk +86 lines, -0 lines 0 comments Download
A headless/lib/browser/headless_download_manager_delegate.cc View 1 2 3 4 5 1 chunk +147 lines, -0 lines 0 comments Download
M headless/lib/headless_browser_browsertest.cc View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
A headless/lib/headless_download_browsertest.cc View 1 2 3 4 5 1 chunk +399 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
Oleg Sushkov
I've implemented a basic headless download manager and corresponding dev-tools commands that allow a devtools ...
3 years, 7 months ago (2017-05-17 05:11:19 UTC) #2
Eric Seckler
https://codereview.chromium.org/2886693002/diff/20001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2886693002/diff/20001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode4683 third_party/WebKit/Source/core/inspector/browser_protocol.json:4683: { "name": "behavior", "type": "string", "enum": ["deny", "allow"], "description": ...
3 years, 7 months ago (2017-05-17 09:44:45 UTC) #4
Sami
Thanks! This looks like a good starting point for downloads. https://codereview.chromium.org/2886693002/diff/20001/headless/lib/browser/headless_devtools_manager_delegate.cc File headless/lib/browser/headless_devtools_manager_delegate.cc (right): https://codereview.chromium.org/2886693002/diff/20001/headless/lib/browser/headless_devtools_manager_delegate.cc#newcode406 ...
3 years, 7 months ago (2017-05-17 13:20:41 UTC) #5
Oleg Sushkov
On 2017/05/17 at 09:44:45, eseckler wrote: > https://codereview.chromium.org/2886693002/diff/20001/third_party/WebKit/Source/core/inspector/browser_protocol.json > File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): > > https://codereview.chromium.org/2886693002/diff/20001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode4683 ...
3 years, 7 months ago (2017-05-19 04:38:23 UTC) #6
Oleg Sushkov
On 2017/05/17 at 13:20:41, skyostil wrote: > Thanks! This looks like a good starting point ...
3 years, 7 months ago (2017-05-19 06:34:22 UTC) #7
Sami
On 2017/05/19 06:34:22, Oleg Sushkov wrote: > This is a left over from a copy-paste, ...
3 years, 7 months ago (2017-05-19 13:57:19 UTC) #8
Sami
https://codereview.chromium.org/2886693002/diff/20001/headless/lib/browser/headless_devtools_manager_delegate.cc File headless/lib/browser/headless_devtools_manager_delegate.cc (right): https://codereview.chromium.org/2886693002/diff/20001/headless/lib/browser/headless_devtools_manager_delegate.cc#newcode406 headless/lib/browser/headless_devtools_manager_delegate.cc:406: download_delegate->SetDownloadBehavior(behavior); On 2017/05/17 13:20:40, Sami wrote: > Do we ...
3 years, 7 months ago (2017-05-19 13:57:26 UTC) #9
Oleg Sushkov
On 2017/05/19 at 13:57:26, skyostil wrote: > https://codereview.chromium.org/2886693002/diff/20001/headless/lib/browser/headless_devtools_manager_delegate.cc > File headless/lib/browser/headless_devtools_manager_delegate.cc (right): > > https://codereview.chromium.org/2886693002/diff/20001/headless/lib/browser/headless_devtools_manager_delegate.cc#newcode406 ...
3 years, 6 months ago (2017-06-05 06:06:11 UTC) #10
pfeldman
https://codereview.chromium.org/2886693002/diff/80001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2886693002/diff/80001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode4742 third_party/WebKit/Source/core/inspector/browser_protocol.json:4742: "name": "setDownloadBehavior", You could make directory an optional parameter ...
3 years, 6 months ago (2017-06-05 16:07:31 UTC) #11
Sami
Thanks, this looks great! A few small nitpicks. https://codereview.chromium.org/2886693002/diff/80001/headless/lib/browser/headless_browser_impl.cc File headless/lib/browser/headless_browser_impl.cc (right): https://codereview.chromium.org/2886693002/diff/80001/headless/lib/browser/headless_browser_impl.cc#newcode229 headless/lib/browser/headless_browser_impl.cc:229: download_delegate->SetDownloadDirectory(base::FilePath(path)); ...
3 years, 6 months ago (2017-06-05 16:50:32 UTC) #12
Oleg Sushkov
Thanks for the suggestions/corrections. I've addressed most of them below and made the necessary changes. ...
3 years, 6 months ago (2017-06-06 03:36:55 UTC) #13
Sami
3 years, 6 months ago (2017-06-06 16:52:04 UTC) #14
Great, thanks! Awaiting the next revision from the new owner :)  (Not sure if
you can reassign code reviews so they might need to start a new one.)

Powered by Google App Engine
This is Rietveld 408576698