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

Issue 204983007: Make ThreadableLoader class to use references (Closed)

Created:
6 years, 9 months ago by maheshkk
Modified:
6 years, 8 months ago
CC:
blink-reviews, falken, caseq+blink_chromium.org, Nate Chapin, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, gavinp+loader_chromium.org, devtools-reviews_chromium.org, horo+watch_chromium.org, kinuko+watch, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make ThreadableLoader class to use references ExecutionContext of ThreadableLoader class can not be null. Move to use references to make caller code safer and remove extra null checks. Keeping the existing interfaces as is to create a new CL for changing remaining clients of ThreadableLoader. Makes this patch smaller and reviewable. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170906

Patch Set 1 : #

Total comments: 8

Patch Set 2 : applied review comments #

Patch Set 3 : Added asserts #

Total comments: 11

Patch Set 4 : Changes per review commets #

Total comments: 4

Patch Set 5 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -64 lines) Patch
M Source/core/fileapi/FileReaderLoader.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fileapi/FileReaderLoader.cpp View 1 2 3 4 chunks +8 lines, -6 lines 0 comments Download
M Source/core/inspector/InspectorResourceAgent.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/DocumentThreadableLoader.h View 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/loader/DocumentThreadableLoader.cpp View 7 chunks +12 lines, -13 lines 0 comments Download
M Source/core/loader/ThreadableLoader.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/loader/ThreadableLoader.cpp View 1 chunk +6 lines, -9 lines 0 comments Download
M Source/core/loader/WorkerThreadableLoader.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/loader/WorkerThreadableLoader.cpp View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
M Source/core/page/EventSource.cpp View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
M Source/core/workers/Worker.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/workers/WorkerGlobalScope.cpp View 1 2 3 4 3 chunks +7 lines, -3 lines 0 comments Download
M Source/core/workers/WorkerScriptLoader.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/workers/WorkerScriptLoader.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 2 3 4 4 chunks +7 lines, -4 lines 0 comments Download
M Source/web/AssociatedURLLoader.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M Source/web/WebSharedWorkerImpl.cpp View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
maheshkk
There are three more clients implements ThreaderLoader and I will move the code to reference ...
6 years, 9 months ago (2014-03-21 21:20:18 UTC) #1
Inactive
https://codereview.chromium.org/204983007/diff/20001/Source/core/loader/ThreadableLoader.h File Source/core/loader/ThreadableLoader.h (right): https://codereview.chromium.org/204983007/diff/20001/Source/core/loader/ThreadableLoader.h#newcode86 Source/core/loader/ThreadableLoader.h:86: static void loadResourceSynchronously(ExecutionContext* context, const ResourceRequest& request, ThreadableLoaderClient& client, ...
6 years, 9 months ago (2014-03-22 15:09:54 UTC) #2
Inactive
https://codereview.chromium.org/204983007/diff/20001/Source/web/AssociatedURLLoader.cpp File Source/web/AssociatedURLLoader.cpp (right): https://codereview.chromium.org/204983007/diff/20001/Source/web/AssociatedURLLoader.cpp#newcode350 Source/web/AssociatedURLLoader.cpp:350: // FIXME: We can not create DocumentThreadableLoader if document ...
6 years, 9 months ago (2014-03-22 15:13:05 UTC) #3
maheshkk
PTAL https://codereview.chromium.org/204983007/diff/20001/Source/core/loader/ThreadableLoader.h File Source/core/loader/ThreadableLoader.h (right): https://codereview.chromium.org/204983007/diff/20001/Source/core/loader/ThreadableLoader.h#newcode86 Source/core/loader/ThreadableLoader.h:86: static void loadResourceSynchronously(ExecutionContext* context, const ResourceRequest& request, ThreadableLoaderClient& ...
6 years, 9 months ago (2014-03-24 18:17:48 UTC) #4
Inactive
https://codereview.chromium.org/204983007/diff/60001/Source/core/fileapi/FileReaderLoader.cpp File Source/core/fileapi/FileReaderLoader.cpp (right): https://codereview.chromium.org/204983007/diff/60001/Source/core/fileapi/FileReaderLoader.cpp#newcode125 Source/core/fileapi/FileReaderLoader.cpp:125: ASSERT(executionContext); Is it a lot of work to update ...
6 years, 8 months ago (2014-03-31 17:43:25 UTC) #5
maheshkk
PTAL https://codereview.chromium.org/204983007/diff/60001/Source/core/fileapi/FileReaderLoader.cpp File Source/core/fileapi/FileReaderLoader.cpp (right): https://codereview.chromium.org/204983007/diff/60001/Source/core/fileapi/FileReaderLoader.cpp#newcode125 Source/core/fileapi/FileReaderLoader.cpp:125: ASSERT(executionContext); On 2014/03/31 17:43:26, Chris Dumez wrote: > ...
6 years, 8 months ago (2014-03-31 20:46:48 UTC) #6
Inactive
lgtm for core/ with 1 nit. Someone else needs to look at web/. https://codereview.chromium.org/204983007/diff/80001/Source/core/page/EventSource.cpp File ...
6 years, 8 months ago (2014-04-01 13:25:04 UTC) #7
maheshkk
AdamK, could you please review web/ changes?
6 years, 8 months ago (2014-04-02 16:50:39 UTC) #8
adamk
Just a few nits, lgtm once those are taken care of. https://codereview.chromium.org/204983007/diff/80001/Source/core/page/EventSource.cpp File Source/core/page/EventSource.cpp (right): ...
6 years, 8 months ago (2014-04-02 17:16:41 UTC) #9
maheshkk
Thanks Chris and Adam for review!
6 years, 8 months ago (2014-04-04 21:11:02 UTC) #10
maheshkk
The CQ bit was checked by mahesh.kk@samsung.com
6 years, 8 months ago (2014-04-04 21:11:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mahesh.kk@samsung.com/204983007/100001
6 years, 8 months ago (2014-04-04 21:11:14 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 21:20:41 UTC) #13
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 8 months ago (2014-04-04 21:20:42 UTC) #14
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 8 months ago (2014-04-04 21:37:32 UTC) #15
maheshkk
The CQ bit was checked by mahesh.kk@samsung.com
6 years, 8 months ago (2014-04-04 21:38:01 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mahesh.kk@samsung.com/204983007/100001
6 years, 8 months ago (2014-04-04 21:38:18 UTC) #17
commit-bot: I haz the power
6 years, 8 months ago (2014-04-04 22:22:47 UTC) #18
Message was sent while issue was closed.
Change committed as 170906

Powered by Google App Engine
This is Rietveld 408576698