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

Issue 2679583004: Use TaskScheduler instead of WorkerPool in url_request_simple_job.cc. (Closed)

Created:
3 years, 10 months ago by fdoray
Modified:
3 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, jam, Randy Smith (Not in Mondays), net-reviews_chromium.org, darin-cc_chromium.org, loading-reviews_chromium.org, mmenke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use TaskScheduler instead of WorkerPool in url_request_simple_job.cc. The following traits are used to post a task to TaskScheduler: Priority: Inherited (default) The priority is inherited from the calling context (i.e. TaskTraits are initialized with the priority of the current task). Shutdown behavior: CONTINUE_ON_SHUTDOWN Tasks posted with this mode which have not started executing before shutdown is initiated will never run. Tasks with this mode running at shutdown will be ignored (the worker will not be joined). Note: Tasks that were previously posted to base::WorkerPool should use this shutdown behavior because this is how base::WorkerPool handles all its tasks. Does Not Block (default): Tasks without the MayBlock() and WithBaseSyncPrimitives() traits may not block. BUG=659191 Review-Url: https://codereview.chromium.org/2679583004 Cr-Commit-Position: refs/heads/master@{#449977} Committed: https://chromium.googlesource.com/chromium/src/+/cb664bc9e179ed2ac87ce32a1d862160243be48b

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : MessageLoopForIO #

Total comments: 7

Patch Set 4 : private last #

Total comments: 2

Patch Set 5 : separate thread comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -53 lines) Patch
M components/update_client/request_sender_unittest.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M components/update_client/update_checker_unittest.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M net/url_request/url_request_simple_job.h View 2 chunks +0 lines, -5 lines 0 comments Download
M net/url_request/url_request_simple_job.cc View 1 2 3 4 3 chunks +8 lines, -9 lines 0 comments Download
M net/url_request/url_request_simple_job_unittest.cc View 1 2 3 6 chunks +13 lines, -32 lines 0 comments Download

Messages

Total messages: 35 (22 generated)
fdoray
PTAL
3 years, 10 months ago (2017-02-09 12:52:20 UTC) #14
xunjieli
net/ LGTM with nits. You need to find reviewers for other files. https://codereview.chromium.org/2679583004/diff/40001/net/url_request/url_request_simple_job.cc File net/url_request/url_request_simple_job.cc ...
3 years, 10 months ago (2017-02-09 16:43:08 UTC) #15
fdoray
https://codereview.chromium.org/2679583004/diff/40001/net/url_request/url_request_simple_job.cc File net/url_request/url_request_simple_job.cc (right): https://codereview.chromium.org/2679583004/diff/40001/net/url_request/url_request_simple_job.cc#newcode74 net/url_request/url_request_simple_job.cc:74: // Do memory copy asynchronously. See crbug.com/422489. On 2017/02/09 ...
3 years, 10 months ago (2017-02-10 16:08:50 UTC) #16
xunjieli
https://codereview.chromium.org/2679583004/diff/40001/net/url_request/url_request_simple_job.cc File net/url_request/url_request_simple_job.cc (right): https://codereview.chromium.org/2679583004/diff/40001/net/url_request/url_request_simple_job.cc#newcode74 net/url_request/url_request_simple_job.cc:74: // Do memory copy asynchronously. See crbug.com/422489. On 2017/02/10 ...
3 years, 10 months ago (2017-02-10 16:15:07 UTC) #17
fdoray
sorin@: Please review changes in components/update_client/ csharrison@: Please review changes in content/browser/loader/ Thanks! https://codereview.chromium.org/2679583004/diff/40001/net/url_request/url_request_simple_job_unittest.cc File ...
3 years, 10 months ago (2017-02-10 16:17:24 UTC) #21
xunjieli
The fact that memcpy needs to be off network thread is very important. Please put ...
3 years, 10 months ago (2017-02-10 16:30:19 UTC) #22
Sorin Jianu
lgtm update_client lgtm
3 years, 10 months ago (2017-02-10 23:06:06 UTC) #25
Sorin Jianu
On 2017/02/10 23:06:06, Sorin Jianu wrote: > lgtm > > update_client lgtm How does the ...
3 years, 10 months ago (2017-02-10 23:08:58 UTC) #26
Charlie Harrison
c/b/l lgtm
3 years, 10 months ago (2017-02-11 03:26:39 UTC) #27
fdoray
> How does the code in update_client work? I see a class member is instantiated ...
3 years, 10 months ago (2017-02-13 15:37:51 UTC) #28
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/2679583004/80001
3 years, 10 months ago (2017-02-13 15:39:16 UTC) #31
xunjieli
net/ lgtm
3 years, 10 months ago (2017-02-13 16:06:38 UTC) #32
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 16:45:46 UTC) #35
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/cb664bc9e179ed2ac87ce32a1d86...

Powered by Google App Engine
This is Rietveld 408576698