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

Issue 2352663003: Adds a --deterministic-fetch flag to headless_shell (Closed)

Created:
4 years, 3 months ago by alex clarke (OOO till 29th)
Modified:
4 years, 3 months ago
Reviewers:
Sami
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds a --deterministic-fetch flag to headless_shell Adds a -deterministic-fetch flag to headless_shell which causes network reuests to complete in the same order they're created in. This removes a significant source of network related non-determinism at the cost of slower page loads. BUG=546953 Committed: https://crrev.com/ad54054fcdee1ede7d009413d3577cea0f0e08f6 Cr-Commit-Position: refs/heads/master@{#420657}

Patch Set 1 #

Patch Set 2 : Added a few comments #

Total comments: 12

Patch Set 3 : Refactored a bit #

Patch Set 4 : Changed a few comments #

Total comments: 16

Patch Set 5 : Changes for Sami #

Unified diffs Side-by-side diffs Delta from patch set Stats (+429 lines, -15 lines) Patch
M headless/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M headless/app/headless_shell.cc View 1 2 3 chunks +22 lines, -1 line 0 comments Download
M headless/app/headless_shell_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M headless/app/headless_shell_switches.cc View 1 chunk +5 lines, -0 lines 0 comments Download
A headless/public/util/deterministic_http_protocol_handler.h View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
A headless/public/util/deterministic_http_protocol_handler.cc View 1 2 3 4 1 chunk +80 lines, -0 lines 0 comments Download
M headless/public/util/generic_url_request_job.h View 1 2 4 chunks +6 lines, -2 lines 0 comments Download
M headless/public/util/generic_url_request_job.cc View 1 2 4 chunks +13 lines, -9 lines 0 comments Download
M headless/public/util/generic_url_request_job_test.cc View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
A headless/public/util/http_url_fetcher.h View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A headless/public/util/http_url_fetcher.cc View 1 2 3 4 1 chunk +187 lines, -0 lines 0 comments Download
M headless/public/util/testing/generic_url_request_mocks.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M headless/public/util/testing/generic_url_request_mocks.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M headless/public/util/url_fetcher.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
alex clarke (OOO till 29th)
4 years, 3 months ago (2016-09-19 14:53:48 UTC) #2
Sami
This will be really useful to have! https://codereview.chromium.org/2352663003/diff/20001/headless/public/util/deterministic_http_protocol_handler.cc File headless/public/util/deterministic_http_protocol_handler.cc (right): https://codereview.chromium.org/2352663003/diff/20001/headless/public/util/deterministic_http_protocol_handler.cc#newcode39 headless/public/util/deterministic_http_protocol_handler.cc:39: }; DISALLOW_COPY_AND_ASSIGN ...
4 years, 3 months ago (2016-09-22 12:09:40 UTC) #9
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/2352663003/diff/20001/headless/public/util/deterministic_http_protocol_handler.cc File headless/public/util/deterministic_http_protocol_handler.cc (right): https://codereview.chromium.org/2352663003/diff/20001/headless/public/util/deterministic_http_protocol_handler.cc#newcode39 headless/public/util/deterministic_http_protocol_handler.cc:39: }; On 2016/09/22 12:09:40, Sami wrote: > DISALLOW_COPY_AND_ASSIGN ...
4 years, 3 months ago (2016-09-23 13:29:22 UTC) #11
Sami
https://codereview.chromium.org/2352663003/diff/60001/headless/public/headless_browser_context.h File headless/public/headless_browser_context.h (right): https://codereview.chromium.org/2352663003/diff/60001/headless/public/headless_browser_context.h#newcode67 headless/public/headless_browser_context.h:67: virtual net::URLRequestContext* GetRequestContext() const = 0; Not needed anymore? ...
4 years, 3 months ago (2016-09-23 14:27:29 UTC) #17
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/2352663003/diff/60001/headless/public/headless_browser_context.h File headless/public/headless_browser_context.h (right): https://codereview.chromium.org/2352663003/diff/60001/headless/public/headless_browser_context.h#newcode67 headless/public/headless_browser_context.h:67: virtual net::URLRequestContext* GetRequestContext() const = 0; On 2016/09/23 ...
4 years, 3 months ago (2016-09-23 16:40:27 UTC) #19
Sami
lgtm
4 years, 3 months ago (2016-09-23 16:49:06 UTC) #21
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/2352663003/80001
4 years, 3 months ago (2016-09-23 16:50:59 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-23 18:04:06 UTC) #25
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 18:05:29 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ad54054fcdee1ede7d009413d3577cea0f0e08f6
Cr-Commit-Position: refs/heads/master@{#420657}

Powered by Google App Engine
This is Rietveld 408576698