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

Issue 360233005: Replace 'ResourceRequest::TargetType' with 'ResourceRequest::RequestContext'. (Closed)

Created:
6 years, 5 months ago by Mike West
Modified:
6 years, 5 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews, dglazkov+blink, falken, gavinp+loader_chromium.org, horo+watch_chromium.org, jamesr, Nate Chapin, kinuko+worker_chromium.org
Project:
blink
Visibility:
Public.

Description

Replace 'ResourceRequest::TargetType' with 'ResourceRequest::RequestContext'. Fetch defines a variety of "request contexts", which Blink more or less already models as either 'ResourceRequest::TargetType' or 'Resource::Type'. These two enums more or less cover the same ground, but inconsistently (even amongst themselves). This patch is the first step towards a higher fidelity implementation of Fetch's semantics. It replaces the 'TargetType' enum with a 'RequestContext' enum, and sets up a temporary mapping in WebURLRequest which will be removed once Chromium is updated with the new semantics. A future patch will come up with some reasonable way of aligning 'Resource::Type' with the list of contexts. BUG=390497 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177371

Patch Set 1 #

Total comments: 4

Patch Set 2 : Feedback. #

Patch Set 3 : Missed two. #

Patch Set 4 : Uninitialized === crash. :( #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -73 lines) Patch
M Source/core/fetch/ResourceFetcher.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 chunks +24 lines, -20 lines 0 comments Download
M Source/core/loader/BeaconLoader.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/loader/DocumentThreadableLoader.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/loader/PingLoader.cpp View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download
M Source/core/workers/WorkerGlobalScope.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/workers/WorkerScriptLoader.h View 1 3 chunks +3 lines, -2 lines 0 comments Download
M Source/core/workers/WorkerScriptLoader.cpp View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M Source/platform/exported/WebURLRequest.cpp View 1 2 3 3 chunks +119 lines, -9 lines 0 comments Download
M Source/platform/network/ResourceRequest.h View 1 5 chunks +5 lines, -27 lines 0 comments Download
M Source/platform/network/ResourceRequest.cpp View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download
M Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download
M Source/web/WebSharedWorkerImpl.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download
M public/platform/WebURLRequest.h View 1 2 3 3 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Mike West
Hey Adam, what do you think about this patch? Is it more or less the ...
6 years, 5 months ago (2014-07-01 13:37:19 UTC) #1
abarth-chromium
Yeah, this direction looks great. Thanks!! https://codereview.chromium.org/360233005/diff/1/Source/platform/network/ResourceRequest.h File Source/platform/network/ResourceRequest.h (right): https://codereview.chromium.org/360233005/diff/1/Source/platform/network/ResourceRequest.h#newcode55 Source/platform/network/ResourceRequest.h:55: enum RequestContext { ...
6 years, 5 months ago (2014-07-01 14:50:54 UTC) #2
Mike West
I'll take care of these, thanks. https://codereview.chromium.org/360233005/diff/1/Source/platform/network/ResourceRequest.h File Source/platform/network/ResourceRequest.h (right): https://codereview.chromium.org/360233005/diff/1/Source/platform/network/ResourceRequest.h#newcode55 Source/platform/network/ResourceRequest.h:55: enum RequestContext { ...
6 years, 5 months ago (2014-07-01 15:00:20 UTC) #3
abarth-chromium
On 2014/07/01 at 15:00:20, mkwst wrote: > One enum sounds great. That said, it looks ...
6 years, 5 months ago (2014-07-01 15:42:28 UTC) #4
Mike West
So, other than the fact that I missed a rename and nothing compiles, WDYT of ...
6 years, 5 months ago (2014-07-01 16:14:40 UTC) #5
abarth-chromium
lgtm
6 years, 5 months ago (2014-07-01 17:15:30 UTC) #6
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 5 months ago (2014-07-02 07:17:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/360233005/40001
6 years, 5 months ago (2014-07-02 07:18:23 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-02 08:06:50 UTC) #9
Mike West
The CQ bit was unchecked by mkwst@chromium.org
6 years, 5 months ago (2014-07-02 08:44:33 UTC) #10
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 5 months ago (2014-07-02 11:30:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/360233005/60001
6 years, 5 months ago (2014-07-02 11:31:19 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-02 13:03:43 UTC) #13
Message was sent while issue was closed.
Change committed as 177371

Powered by Google App Engine
This is Rietveld 408576698