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

Issue 395143002: Make FileReader's throttle controller a supplement. (Closed)

Created:
6 years, 5 months ago by sof
Modified:
6 years, 5 months ago
Reviewers:
haraken, kinuko, michaeln
CC:
blink-reviews, kinuko+fileapi, nhiroki, tzik, oilpan-reviews, horo
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Make FileReader's throttle controller a supplement. Avoid using thread-local state to hold the per-ExecutionContext instance of this controller object. By doing so, we can also move the controller object to the heap with Oilpan, enabling the tracing of the collections that the controller keeps. R=haraken@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178274

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -12 lines) Patch
M Source/core/fileapi/FileReader.h View 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/fileapi/FileReader.cpp View 1 6 chunks +58 lines, -10 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
sof
Please take a look.
6 years, 5 months ago (2014-07-16 10:43:21 UTC) #1
haraken
LGTM https://codereview.chromium.org/395143002/diff/1/Source/core/fileapi/FileReader.cpp File Source/core/fileapi/FileReader.cpp (right): https://codereview.chromium.org/395143002/diff/1/Source/core/fileapi/FileReader.cpp#newcode96 Source/core/fileapi/FileReader.cpp:96: ASSERT(context->isWorkerGlobalScope()); Also add ASSERT(!isMainThread()). https://codereview.chromium.org/395143002/diff/1/Source/core/fileapi/FileReader.cpp#newcode174 Source/core/fileapi/FileReader.cpp:174: static const ...
6 years, 5 months ago (2014-07-16 11:37:26 UTC) #2
sof
Thanks for the review; a fun change. https://codereview.chromium.org/395143002/diff/1/Source/core/fileapi/FileReader.cpp File Source/core/fileapi/FileReader.cpp (right): https://codereview.chromium.org/395143002/diff/1/Source/core/fileapi/FileReader.cpp#newcode96 Source/core/fileapi/FileReader.cpp:96: ASSERT(context->isWorkerGlobalScope()); On ...
6 years, 5 months ago (2014-07-16 11:46:20 UTC) #3
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 5 months ago (2014-07-16 11:46:27 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/395143002/20001
6 years, 5 months ago (2014-07-16 11:46:53 UTC) #5
commit-bot: I haz the power
Change committed as 178274
6 years, 5 months ago (2014-07-16 13:18:50 UTC) #6
kinuko
6 years, 5 months ago (2014-07-16 16:03:00 UTC) #7
Message was sent while issue was closed.
lgtm, thx (cc-ing horo@)

Powered by Google App Engine
This is Rietveld 408576698