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

Issue 2741443003: Replace createCrossThreadTask with crossThreadBind in webdatabase (Closed)

Created:
3 years, 9 months ago by yuryu
Modified:
3 years, 9 months ago
Reviewers:
haraken, nhiroki, tzik
CC:
chromium-reviews, haraken, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace createCrossThreadTask with crossThreadBind in webdatabase createCrossThreadTask and ExecutionContextTask are deprecated in favor of crossThreadBind and CrossThreadClosure respectively. This patch removes the deprecated versions. This patch also changes the code to post tasks to WebTaskRunner instead of ExecutionContext, but the behavour remains the same as Document::postTask already forwards tasks to WebTaskRunner of the LocalFrame in the Document. BUG=625927 Review-Url: https://codereview.chromium.org/2741443003 Cr-Commit-Position: refs/heads/master@{#456043} Committed: https://chromium.googlesource.com/chromium/src/+/ff80830195cffa6ffb66ccbef546ff4a0f758a5f

Patch Set 1 #

Patch Set 2 : Save WebTaskRunner in main thread and use it later in another thread #

Total comments: 6

Patch Set 3 : address comments #

Patch Set 4 : comment #

Total comments: 2

Patch Set 5 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -22 lines) Patch
M third_party/WebKit/Source/modules/webdatabase/Database.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webdatabase/Database.cpp View 1 2 7 chunks +15 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/webdatabase/SQLTransactionClient.cpp View 1 2 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
yuryu
please take a look, thanks
3 years, 9 months ago (2017-03-09 01:35:51 UTC) #7
nhiroki
As offline chat, TaskRunenrHelper is not available on non-main threads. Instead, can you keep thread-safe ...
3 years, 9 months ago (2017-03-09 05:53:08 UTC) #8
yuryu
On 2017/03/09 05:53:08, nhiroki (slow) wrote: > As offline chat, TaskRunenrHelper is not available on ...
3 years, 9 months ago (2017-03-09 06:49:15 UTC) #9
yuryu
It might be better to add Database::postTask() that posts to m_webTaskRunner instead of exposing an ...
3 years, 9 months ago (2017-03-09 07:04:35 UTC) #10
nhiroki
https://codereview.chromium.org/2741443003/diff/20001/third_party/WebKit/Source/modules/webdatabase/Database.h File third_party/WebKit/Source/modules/webdatabase/Database.h (right): https://codereview.chromium.org/2741443003/diff/20001/third_party/WebKit/Source/modules/webdatabase/Database.h#newcode118 third_party/WebKit/Source/modules/webdatabase/Database.h:118: RefPtr<WebTaskRunner> getWebTaskRunner() const; getDatabaseTaskRunenr()? Can you return WebTaskRunner& or ...
3 years, 9 months ago (2017-03-09 07:59:56 UTC) #11
nhiroki
On 2017/03/09 07:04:35, yuryu wrote: > It might be better to add Database::postTask() that posts ...
3 years, 9 months ago (2017-03-09 08:03:34 UTC) #12
yuryu
> I'd prefer getDatabaseTaskRunner() because Database::postTask() doesn't explain > where a posted task runs. Agreed. ...
3 years, 9 months ago (2017-03-09 08:35:48 UTC) #13
yuryu
https://codereview.chromium.org/2741443003/diff/20001/third_party/WebKit/Source/modules/webdatabase/Database.h File third_party/WebKit/Source/modules/webdatabase/Database.h (right): https://codereview.chromium.org/2741443003/diff/20001/third_party/WebKit/Source/modules/webdatabase/Database.h#newcode118 third_party/WebKit/Source/modules/webdatabase/Database.h:118: RefPtr<WebTaskRunner> getWebTaskRunner() const; On 2017/03/09 07:59:56, nhiroki (slow) wrote: ...
3 years, 9 months ago (2017-03-09 08:38:27 UTC) #14
nhiroki
lgtm https://codereview.chromium.org/2741443003/diff/60001/third_party/WebKit/Source/modules/webdatabase/Database.h File third_party/WebKit/Source/modules/webdatabase/Database.h (right): https://codereview.chromium.org/2741443003/diff/60001/third_party/WebKit/Source/modules/webdatabase/Database.h#newcode181 third_party/WebKit/Source/modules/webdatabase/Database.h:181: // DatabaseContext for later use as the constructor ...
3 years, 9 months ago (2017-03-09 09:07:39 UTC) #15
tzik
lgtm
3 years, 9 months ago (2017-03-09 23:59:04 UTC) #18
yuryu
haraken, please take a look, thanks. https://codereview.chromium.org/2741443003/diff/60001/third_party/WebKit/Source/modules/webdatabase/Database.h File third_party/WebKit/Source/modules/webdatabase/Database.h (right): https://codereview.chromium.org/2741443003/diff/60001/third_party/WebKit/Source/modules/webdatabase/Database.h#newcode181 third_party/WebKit/Source/modules/webdatabase/Database.h:181: // DatabaseContext for ...
3 years, 9 months ago (2017-03-10 06:00:57 UTC) #22
haraken
LGTM nhiroki: I'm not sure what we should do in long term though. IMHO it ...
3 years, 9 months ago (2017-03-10 08:49:25 UTC) #23
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/2741443003/80001
3 years, 9 months ago (2017-03-10 10:34:12 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 12:03:58 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/ff80830195cffa6ffb66ccbef546...

Powered by Google App Engine
This is Rietveld 408576698