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

Issue 2555713002: Don't use FetchRequest in FrameFetchContext (Closed)

Created:
4 years ago by tyoshino (SeeGerritForStatus)
Modified:
3 years, 11 months ago
Reviewers:
yhirano
CC:
chromium-reviews, tyoshino+watch_chromium.org, Yoav Weiss, loading-reviews_chromium.org, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, Nate Chapin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't use FetchRequest in FrameFetchContext FetchRequest is a parameter object for calling ResourceFetcher::requestResource(). Its usage should be limited to requestResource(), it's callers and ResourceFetcher's methods directly called by requestResource() (this is already enforced by annotating FetchRequest with STACK_ALLOCATED). Logic in FrameFetchContext should be limited to what we cannot put in ResourceFetcher for dependency reason. It's better passing what's only needed. BUG=671533 R=yhirano@chromium.org Review-Url: https://codereview.chromium.org/2555713002 Cr-Commit-Position: refs/heads/master@{#442845} Committed: https://chromium.googlesource.com/chromium/src/+/d4c201b64739f0285add84243b618966f978ef37

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 4

Patch Set 3 : Rebase #

Patch Set 4 : a #

Patch Set 5 : a #

Total comments: 1

Patch Set 6 : a #

Patch Set 7 : a #

Total comments: 1

Patch Set 8 : a #

Total comments: 1

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -93 lines) Patch
M third_party/WebKit/Source/core/fetch/FetchContext.h View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/FetchContext.cpp View 1 2 1 chunk +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 6 chunks +17 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.h View 1 2 3 4 5 6 7 8 4 chunks +16 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 2 3 4 5 6 7 8 chunks +41 lines, -49 lines 0 comments Download
M third_party/WebKit/Source/core/loader/PingLoader.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 26 (19 generated)
tyoshino (SeeGerritForStatus)
4 years ago (2016-12-13 05:31:26 UTC) #8
yhirano
https://codereview.chromium.org/2555713002/diff/20001/third_party/WebKit/Source/core/fetch/FetchContext.h File third_party/WebKit/Source/core/fetch/FetchContext.h (right): https://codereview.chromium.org/2555713002/diff/20001/third_party/WebKit/Source/core/fetch/FetchContext.h#newcode162 third_party/WebKit/Source/core/fetch/FetchContext.h:162: virtual void populateResourceRequest(Resource::Type, Can you add a method comment? ...
3 years, 12 months ago (2016-12-26 08:56:45 UTC) #12
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/2555713002/diff/20001/third_party/WebKit/Source/core/fetch/FetchContext.h File third_party/WebKit/Source/core/fetch/FetchContext.h (right): https://codereview.chromium.org/2555713002/diff/20001/third_party/WebKit/Source/core/fetch/FetchContext.h#newcode162 third_party/WebKit/Source/core/fetch/FetchContext.h:162: virtual void populateResourceRequest(Resource::Type, On 2016/12/26 08:56:45, yhirano wrote: > ...
3 years, 11 months ago (2017-01-10 09:36:28 UTC) #13
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/2555713002/diff/80001/third_party/WebKit/Source/core/loader/FrameFetchContext.h File third_party/WebKit/Source/core/loader/FrameFetchContext.h (right): https://codereview.chromium.org/2555713002/diff/80001/third_party/WebKit/Source/core/loader/FrameFetchContext.h#newcode197 third_party/WebKit/Source/core/loader/FrameFetchContext.h:197: void addCSPHeaderIfNecessary(Resource::Type, ResourceRequest&); I've moved this to private as ...
3 years, 11 months ago (2017-01-10 09:55:56 UTC) #14
yhirano
lgtm
3 years, 11 months ago (2017-01-11 07:12:30 UTC) #19
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/2555713002/150001
3 years, 11 months ago (2017-01-11 07:28:59 UTC) #23
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 10:18:17 UTC) #26
Message was sent while issue was closed.
Committed patchset #9 (id:150001) as
https://chromium.googlesource.com/chromium/src/+/d4c201b64739f0285add84243b61...

Powered by Google App Engine
This is Rietveld 408576698