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

Issue 2390313002: Make SyncLoad result handling pluggable (Closed)

Created:
4 years, 2 months ago by tzik
Modified:
4 years, 2 months ago
Reviewers:
yhirano, mmenke
CC:
chromium-reviews, loading-reviews_chromium.org, jam, darin-cc_chromium.org, Randy Smith (Not in Mondays), kinuko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make SyncLoad result handling pluggable Use a base::Callback to dispatch a SyncLoad result instead of IPC::Message, so that we can share most of synchronous load code between Chrome IPC version and Mojo IPC version. BUG=603396 Committed: https://crrev.com/1c895912ab579d514c7e1c03c0121dff543ce507 Cr-Commit-Position: refs/heads/master@{#423840}

Patch Set 1 #

Total comments: 22

Patch Set 2 : . #

Patch Set 3 : fix #

Total comments: 2

Patch Set 4 : +#include "b/m/ref_counted.h" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -54 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 5 chunks +16 lines, -8 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 16 chunks +47 lines, -25 lines 0 comments Download
M content/browser/loader/sync_resource_handler.h View 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/loader/sync_resource_handler.cc View 1 2 3 chunks +6 lines, -18 lines 0 comments Download

Messages

Total messages: 47 (31 generated)
tzik
PTAL
4 years, 2 months ago (2016-10-05 04:03:25 UTC) #11
yhirano
https://codereview.chromium.org/2390313002/diff/1/content/browser/loader/resource_dispatcher_host_impl.h File content/browser/loader/resource_dispatcher_host_impl.h (right): https://codereview.chromium.org/2390313002/diff/1/content/browser/loader/resource_dispatcher_host_impl.h#newcode21 content/browser/loader/resource_dispatcher_host_impl.h:21: +base/callback.h https://codereview.chromium.org/2390313002/diff/1/content/browser/loader/sync_resource_handler.cc File content/browser/loader/sync_resource_handler.cc (right): https://codereview.chromium.org/2390313002/diff/1/content/browser/loader/sync_resource_handler.cc#newcode35 content/browser/loader/sync_resource_handler.cc:35: result_handler_.Run(nullptr); This ...
4 years, 2 months ago (2016-10-05 08:49:53 UTC) #12
mmenke
https://codereview.chromium.org/2390313002/diff/1/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2390313002/diff/1/content/browser/loader/resource_dispatcher_host_impl.cc#newcode418 content/browser/loader/resource_dispatcher_host_impl.cc:418: void HandleSyncLoadResult(base::WeakPtr<ResourceMessageFilter> filter, Need to document this. https://codereview.chromium.org/2390313002/diff/1/content/browser/loader/resource_dispatcher_host_impl.cc#newcode427 content/browser/loader/resource_dispatcher_host_impl.cc:427: ...
4 years, 2 months ago (2016-10-05 15:21:34 UTC) #13
kinuko
(drive-by) https://codereview.chromium.org/2390313002/diff/1/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2390313002/diff/1/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1093 content/browser/loader/resource_dispatcher_host_impl.cc:1093: base::Passed(WrapUnique(sync_result))); On 2016/10/05 15:21:33, mmenke wrote: > This ...
4 years, 2 months ago (2016-10-05 15:52:57 UTC) #14
mmenke
On 2016/10/05 15:52:57, kinuko (slow) wrote: > (drive-by) > > https://codereview.chromium.org/2390313002/diff/1/content/browser/loader/resource_dispatcher_host_impl.cc > File content/browser/loader/resource_dispatcher_host_impl.cc (right): ...
4 years, 2 months ago (2016-10-05 16:31:27 UTC) #15
kinuko
On 2016/10/05 16:31:27, mmenke wrote: > On 2016/10/05 15:52:57, kinuko (slow) wrote: > > (drive-by) ...
4 years, 2 months ago (2016-10-05 18:43:01 UTC) #16
mmenke
On 2016/10/05 18:43:01, kinuko (slow) wrote: > On 2016/10/05 16:31:27, mmenke wrote: > > On ...
4 years, 2 months ago (2016-10-05 19:46:22 UTC) #17
kinuko
On 2016/10/05 19:46:22, mmenke wrote: > On 2016/10/05 18:43:01, kinuko (slow) wrote: > > On ...
4 years, 2 months ago (2016-10-05 20:57:02 UTC) #18
kinuko
https://codereview.chromium.org/2390313002/diff/1/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2390313002/diff/1/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1093 content/browser/loader/resource_dispatcher_host_impl.cc:1093: base::Passed(WrapUnique(sync_result))); On 2016/10/05 15:52:57, kinuko (slow) wrote: > On ...
4 years, 2 months ago (2016-10-05 20:57:49 UTC) #20
tzik
https://codereview.chromium.org/2390313002/diff/1/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2390313002/diff/1/content/browser/loader/resource_dispatcher_host_impl.cc#newcode418 content/browser/loader/resource_dispatcher_host_impl.cc:418: void HandleSyncLoadResult(base::WeakPtr<ResourceMessageFilter> filter, On 2016/10/05 15:21:33, mmenke wrote: > ...
4 years, 2 months ago (2016-10-06 12:52:03 UTC) #21
mmenke
LGTM https://codereview.chromium.org/2390313002/diff/60001/content/browser/loader/resource_dispatcher_host_impl.h File content/browser/loader/resource_dispatcher_host_impl.h (right): https://codereview.chromium.org/2390313002/diff/60001/content/browser/loader/resource_dispatcher_host_impl.h#newcode153 content/browser/loader/resource_dispatcher_host_impl.h:153: const scoped_refptr<ResourceResponse>& response); include base/memory/ref_counted.h
4 years, 2 months ago (2016-10-06 15:16:48 UTC) #29
tzik
https://codereview.chromium.org/2390313002/diff/60001/content/browser/loader/resource_dispatcher_host_impl.h File content/browser/loader/resource_dispatcher_host_impl.h (right): https://codereview.chromium.org/2390313002/diff/60001/content/browser/loader/resource_dispatcher_host_impl.h#newcode153 content/browser/loader/resource_dispatcher_host_impl.h:153: const scoped_refptr<ResourceResponse>& response); On 2016/10/06 15:16:48, mmenke wrote: > ...
4 years, 2 months ago (2016-10-06 16:08:54 UTC) #35
yhirano
lgtm
4 years, 2 months ago (2016-10-07 10:56:41 UTC) #40
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/2390313002/80001
4 years, 2 months ago (2016-10-07 12:31:08 UTC) #43
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 2 months ago (2016-10-07 12:37:07 UTC) #45
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 12:39:35 UTC) #47
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1c895912ab579d514c7e1c03c0121dff543ce507
Cr-Commit-Position: refs/heads/master@{#423840}

Powered by Google App Engine
This is Rietveld 408576698