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

Issue 2880733002: Partially implement WorkerFetchContext and WorkerThreadableLoadingContext and add virtual tests (Closed)

Created:
3 years, 7 months ago by horo
Modified:
3 years, 7 months ago
Reviewers:
kinuko, yhirano
CC:
chromium-reviews, tyoshino+watch_chromium.org, loading-reviews_chromium.org, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, kinuko+watch, Nate Chapin
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Partially implement WorkerFetchContext and WorkerThreadableLoadingContext and add virtual tests BUG=443374 Review-Url: https://codereview.chromium.org/2880733002 Cr-Commit-Position: refs/heads/master@{#471649} Committed: https://chromium.googlesource.com/chromium/src/+/496a826dff5e0b9c4a61a3a355f273191ec90c4e

Patch Set 1 #

Total comments: 14

Patch Set 2 : incorporated kinuko's comment #

Total comments: 2

Patch Set 3 : add override #

Total comments: 6

Patch Set 4 : incorporated kinuko's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -42 lines) Patch
M third_party/WebKit/LayoutTests/VirtualTestSuites View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/off-main-thread-fetch/http/tests/fetch/workers/README.txt View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/off-main-thread-fetch/http/tests/fetch/workers/block-mixed-content-base-https-expected.txt View 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/off-main-thread-fetch/http/tests/fetch/workers/block-mixed-content-nocors-base-https-expected.txt View 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/off-main-thread-fetch/http/tests/xmlhttprequest/workers/README.txt View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/off-main-thread-fetch/http/tests/xmlhttprequest/workers/cross-origin-unsupported-url-expected.txt View 1 chunk +40 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp View 1 2 chunks +10 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ThreadableLoader.cpp View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ThreadableLoadingContext.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ThreadableLoadingContext.cpp View 1 2 3 2 chunks +71 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/WorkerFetchContext.h View 1 2 2 chunks +34 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp View 1 3 chunks +95 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLRequest.cpp View 1 2 chunks +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/CrossOriginAccessControl.cpp View 2 chunks +6 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/Resource.cpp View 7 chunks +16 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp View 4 chunks +7 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h View 1 3 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.cpp View 1 3 chunks +5 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (23 generated)
horo
kinuko@ Could you please review this?
3 years, 7 months ago (2017-05-12 08:17:07 UTC) #2
kinuko
looking good! https://codereview.chromium.org/2880733002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/2880733002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode396 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:396: // TODO(horo): Currently we don't support the ...
3 years, 7 months ago (2017-05-12 08:41:45 UTC) #3
horo
https://codereview.chromium.org/2880733002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/2880733002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode396 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:396: // TODO(horo): Currently we don't support the CORS preflie ...
3 years, 7 months ago (2017-05-12 09:06:02 UTC) #6
kinuko
https://codereview.chromium.org/2880733002/diff/1/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp File third_party/WebKit/Source/platform/loader/fetch/Resource.cpp (right): https://codereview.chromium.org/2880733002/diff/1/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp#newcode277 third_party/WebKit/Source/platform/loader/fetch/Resource.cpp:277: ->LoadingTaskRunner(), On 2017/05/12 09:06:02, horo wrote: > On 2017/05/12 ...
3 years, 7 months ago (2017-05-13 05:54:55 UTC) #15
horo
https://codereview.chromium.org/2880733002/diff/20001/third_party/WebKit/Source/core/loader/WorkerFetchContext.h File third_party/WebKit/Source/core/loader/WorkerFetchContext.h (right): https://codereview.chromium.org/2880733002/diff/20001/third_party/WebKit/Source/core/loader/WorkerFetchContext.h#newcode38 third_party/WebKit/Source/core/loader/WorkerFetchContext.h:38: ContentSettingsClient* GetContentSettingsClient() const; On 2017/05/13 05:54:55, kinuko wrote: > ...
3 years, 7 months ago (2017-05-13 08:14:41 UTC) #17
kinuko
lgtm https://codereview.chromium.org/2880733002/diff/40001/third_party/WebKit/Source/core/loader/ThreadableLoader.cpp File third_party/WebKit/Source/core/loader/ThreadableLoader.cpp (right): https://codereview.chromium.org/2880733002/diff/40001/third_party/WebKit/Source/core/loader/ThreadableLoader.cpp#newcode55 third_party/WebKit/Source/core/loader/ThreadableLoader.cpp:55: if (worker_fetch_contrext) { When this could return nullptr? ...
3 years, 7 months ago (2017-05-13 13:26:43 UTC) #21
horo
https://codereview.chromium.org/2880733002/diff/40001/third_party/WebKit/Source/core/loader/ThreadableLoader.cpp File third_party/WebKit/Source/core/loader/ThreadableLoader.cpp (right): https://codereview.chromium.org/2880733002/diff/40001/third_party/WebKit/Source/core/loader/ThreadableLoader.cpp#newcode55 third_party/WebKit/Source/core/loader/ThreadableLoader.cpp:55: if (worker_fetch_contrext) { On 2017/05/13 13:26:42, kinuko wrote: > ...
3 years, 7 months ago (2017-05-13 17:05:45 UTC) #24
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/2880733002/60001
3 years, 7 months ago (2017-05-15 00:04:09 UTC) #29
yhirano
https://codereview.chromium.org/2880733002/diff/1/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp File third_party/WebKit/Source/platform/loader/fetch/Resource.cpp (right): https://codereview.chromium.org/2880733002/diff/1/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp#newcode277 third_party/WebKit/Source/platform/loader/fetch/Resource.cpp:277: ->LoadingTaskRunner(), On 2017/05/13 05:54:55, kinuko wrote: > On 2017/05/12 ...
3 years, 7 months ago (2017-05-15 01:43:26 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/496a826dff5e0b9c4a61a3a355f273191ec90c4e
3 years, 7 months ago (2017-05-15 01:50:27 UTC) #33
kinuko
On 2017/05/15 01:43:26, yhirano wrote: > https://codereview.chromium.org/2880733002/diff/1/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp > File third_party/WebKit/Source/platform/loader/fetch/Resource.cpp (right): > > https://codereview.chromium.org/2880733002/diff/1/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp#newcode277 > ...
3 years, 7 months ago (2017-05-15 01:52:20 UTC) #34
kinuko
On 2017/05/15 01:52:20, kinuko wrote: > On 2017/05/15 01:43:26, yhirano wrote: > > > https://codereview.chromium.org/2880733002/diff/1/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp ...
3 years, 7 months ago (2017-05-15 01:52:50 UTC) #35
horo
3 years, 7 months ago (2017-05-15 03:26:55 UTC) #36
Message was sent while issue was closed.
On 2017/05/15 01:52:50, kinuko wrote:
> On 2017/05/15 01:52:20, kinuko wrote:
> > On 2017/05/15 01:43:26, yhirano wrote:
> > >
> >
>
https://codereview.chromium.org/2880733002/diff/1/third_party/WebKit/Source/p...
> > > File third_party/WebKit/Source/platform/loader/fetch/Resource.cpp (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/2880733002/diff/1/third_party/WebKit/Source/p...
> > > third_party/WebKit/Source/platform/loader/fetch/Resource.cpp:277:
> > > ->LoadingTaskRunner(),
> > > On 2017/05/13 05:54:55, kinuko wrote:
> > > > On 2017/05/12 09:06:02, horo wrote:
> > > > > On 2017/05/12 08:41:45, kinuko wrote:
> > > > > > It feels slightly weird why we don't use loading task runner for
main
> > > thread
> > > > > > cases..
> > > > > 
> > > > > I think so too...
> > > > > But I don't want to change the existing behavior in this CL.
> > > > 
> > > > Yep, ok to leave it as is in this CL.
> > > > 
> > > > +yhirano@: do you know why this is using default task runner?
> > > 
> > > No.
> > > 
> > > I also think this should be the loading task runner gotten from
> FetchContext,
> > > though it's not accessible here.
> > 
> > We can still get a default loading task runner from the renderer scheduler? 
> > (And yep, we'll need to figure out how we manage these
> > not-really-frame-associated Resource/MemoryCache activities)
> > 
> > horo-san: can we add a TODO comment here before we land this?
> 
> oops, it's landed just now.

Created https://codereview.chromium.org/2878343002.

Powered by Google App Engine
This is Rietveld 408576698