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

Issue 301243015: Refactor ThreadableLoaderOptions for readability (Closed)

Created:
6 years, 6 months ago by tyoshino (SeeGerritForStatus)
Modified:
6 years, 6 months ago
Reviewers:
tkent, Nate Chapin
CC:
blink-reviews, tzik, eae+blinkwatch, apavlov+blink_chromium.org, kinuko+worker_chromium.org, aandrey+blink_chromium.org, falken, caseq+blink_chromium.org, blink-reviews-events_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, devtools-reviews_chromium.org, loislo+blink_chromium.org, nhiroki, eustas+blink_chromium.org, paulirish+reviews_chromium.org, lushnikov+blink_chromium.org, Nate Chapin, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, horo+watch_chromium.org, sergeyv+blink_chromium.org, kinuko+fileapi
Visibility:
Public.

Description

Refactor ThreadableLoaderOptions for readability ThreadableLoaderOptions shouldn't derive from ResourceLoaderOptions. ResourceLoaderOptions members are basically just passed through to FetchRequest while items added by ThreadableLoaderOptions definition are configuring how CORS, etc. are handled in ThreadableLoader. Inheritance looks making things less readable to me. Also, I'd like to make DocumentThreadbleLoader more readable by making constant variables held by const members. Items in ThreadableLoaderOptions that determines ThreadableLoader's behavior could be held by DocumentThreadableLoader as a const member. Items defined in ResourceLoaderOptions can be altered inside DocumentThreadableLoader, but can still be held as a const member by having members to hold overridden items. BUG=377541 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175283

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : Addressed #3 #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -78 lines) Patch
M Source/core/fileapi/FileReaderLoader.cpp View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M Source/core/inspector/InspectorResourceAgent.cpp View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/loader/DocumentThreadableLoader.h View 1 2 3 chunks +10 lines, -4 lines 0 comments Download
M Source/core/loader/DocumentThreadableLoader.cpp View 1 2 10 chunks +27 lines, -21 lines 0 comments Download
M Source/core/loader/ThreadableLoader.h View 1 2 2 chunks +9 lines, -3 lines 0 comments Download
M Source/core/loader/ThreadableLoader.cpp View 2 chunks +6 lines, -6 lines 0 comments Download
M Source/core/loader/WorkerThreadableLoader.h View 4 chunks +6 lines, -6 lines 0 comments Download
M Source/core/loader/WorkerThreadableLoader.cpp View 5 chunks +12 lines, -10 lines 0 comments Download
M Source/core/page/EventSource.cpp View 1 2 3 1 chunk +7 lines, -6 lines 0 comments Download
M Source/core/workers/WorkerScriptLoader.cpp View 2 chunks +8 lines, -4 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 2 3 3 chunks +9 lines, -8 lines 0 comments Download
M Source/platform/CrossThreadCopier.h View 2 chunks +4 lines, -0 lines 0 comments Download
M Source/web/AssociatedURLLoader.cpp View 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
tyoshino (SeeGerritForStatus)
Hi Kent-san, WDYT about this?
6 years, 6 months ago (2014-06-02 07:52:17 UTC) #1
tyoshino (SeeGerritForStatus)
After this change, I'll make loadRequest() take a ResourceLoaderOptions in addition to ResourceRequest, and pass ...
6 years, 6 months ago (2014-06-02 07:58:59 UTC) #2
tkent
lgtm https://codereview.chromium.org/301243015/diff/40001/Source/core/fileapi/FileReaderLoader.cpp File Source/core/fileapi/FileReaderLoader.cpp (right): https://codereview.chromium.org/301243015/diff/40001/Source/core/fileapi/FileReaderLoader.cpp#newcode116 Source/core/fileapi/FileReaderLoader.cpp:116: resourceLoaderOptions.sniffContent = DoNotSniffContent; This line is unnecessary. DoNotSniffContent ...
6 years, 6 months ago (2014-06-02 08:08:56 UTC) #3
tkent
+japhet FYI
6 years, 6 months ago (2014-06-02 08:10:05 UTC) #4
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/301243015/diff/40001/Source/core/fileapi/FileReaderLoader.cpp File Source/core/fileapi/FileReaderLoader.cpp (right): https://codereview.chromium.org/301243015/diff/40001/Source/core/fileapi/FileReaderLoader.cpp#newcode116 Source/core/fileapi/FileReaderLoader.cpp:116: resourceLoaderOptions.sniffContent = DoNotSniffContent; On 2014/06/02 08:08:56, tkent wrote: > ...
6 years, 6 months ago (2014-06-02 08:21:35 UTC) #5
tyoshino (SeeGerritForStatus)
The CQ bit was checked by tyoshino@chromium.org
6 years, 6 months ago (2014-06-02 08:21:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoshino@chromium.org/301243015/40015
6 years, 6 months ago (2014-06-02 08:21:50 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-02 09:32:18 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-02 09:34:27 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/10316)
6 years, 6 months ago (2014-06-02 09:34:28 UTC) #10
tyoshino (SeeGerritForStatus)
The CQ bit was checked by tyoshino@chromium.org
6 years, 6 months ago (2014-06-02 10:36:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoshino@chromium.org/301243015/60001
6 years, 6 months ago (2014-06-02 10:37:14 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-02 11:58:35 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 14:19:37 UTC) #14
Message was sent while issue was closed.
Change committed as 175283

Powered by Google App Engine
This is Rietveld 408576698