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

Issue 226273005: Remove webkit's ResourceLoaderBridge interface. (Closed)

Created:
6 years, 8 months ago by tfarina
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, darin-cc_chromium.org, extensions-reviews_chromium.org, Avi (use Gerrit), jochen (gone - plz use gerrit), darin (slow to review), pilgrim_google, jamesr
Visibility:
Public.

Description

Remove webkit's ResourceLoaderBridge interface. ResourceLoaderBridge was originally created to bridge code in //webkit that talked to WebURLLoaderImpl (which talked to Blink) with code in ResourceDispatcher in content which used IPC. Now that WebURLLoaderImpl is in content/child, we don't need this interface anymore. As requested by John in - https://codereview.chromium.org/186193005/diff/1/content/public/child/resource_loader_bridge.h#newcode42 BUG=265753, 338338, 237249 TEST=content_unittests R=jam@chromium.org TBR=darin Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267947

Patch Set 1 #

Total comments: 3

Patch Set 2 : REBASED #

Total comments: 4

Patch Set 3 : REBASED #

Patch Set 4 : compile fix #

Patch Set 5 : #

Patch Set 6 : SetDefersLoading #

Patch Set 7 : Cancel + SetRequestBody #

Patch Set 8 : Start #

Patch Set 9 : DidChangePriority #

Patch Set 10 : SyncLoad #

Patch Set 11 : dtor #

Patch Set 12 : CreateBridge #

Patch Set 13 : web_url_loader_impl #

Patch Set 14 : rm CreateBridge from ChildThread #

Patch Set 15 : plugin_url_fetcher #

Patch Set 16 : content_unittests fixed #

Patch Set 17 : return void + rm resource_loader_bridge.h includes #

Patch Set 18 : remove IPCResourceLoaderBridge #

Patch Set 19 : rm resource_loader_bridge from chrome/renderer #

Patch Set 20 : fix renderer target #

Patch Set 21 : rm resource_loader_bridge.* #

Total comments: 1

Patch Set 22 : progress #

Patch Set 23 : rm CreateBridge and SetRequestBody, SyncLoad -> StartSync #

Patch Set 24 : CreateRequest #

Patch Set 25 : add Cancel() back #

Patch Set 26 : remove some member variables from ResourceDispatcher #

Patch Set 27 : StartSync -> StartAsync -> Cancel - change StartAsync to request request_id #

Total comments: 16

Patch Set 28 : changes #

Patch Set 29 : web_url_loader change #

Total comments: 6

Patch Set 30 : rm frame_origin_ #

Patch Set 31 : #

Total comments: 3

Patch Set 32 : hack - ResourceDispatcherTests passing now #

Total comments: 3

Patch Set 33 : put back AddRef() #

Total comments: 8

Patch Set 34 : more changes for John #

Total comments: 8

Patch Set 35 : changes made, crash fixed #

Patch Set 36 : REBASED #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -525 lines) Patch
M chrome/renderer/extensions/extension_localization_peer_unittest.cc View 1 2 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/security_filter_peer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +11 lines, -23 lines 0 comments Download
M chrome/renderer/security_filter_peer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +12 lines, -23 lines 0 comments Download
M content/child/blink_platform_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +0 lines, -1 line 0 comments Download
M content/child/child_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 chunk +0 lines, -5 lines 0 comments Download
M content/child/child_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 2 chunks +0 lines, -6 lines 0 comments Download
M content/child/npapi/plugin_url_fetcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +1 line, -3 lines 0 comments Download
M content/child/npapi/plugin_url_fetcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 5 chunks +22 lines, -14 lines 0 comments Download
M content/child/resource_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 8 chunks +49 lines, -46 lines 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 20 chunks +127 lines, -236 lines 0 comments Download
M content/child/resource_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 5 chunks +24 lines, -28 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 14 chunks +34 lines, -38 lines 0 comments Download
D webkit/child/resource_loader_bridge.h View 1 2 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -86 lines 0 comments Download
D webkit/child/resource_loader_bridge.cc View 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -13 lines 0 comments Download
M webkit/child/webkit_child.gyp View 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
tfarina
https://codereview.chromium.org/226273005/diff/1/content/child/resource_dispatcher.h File content/child/resource_dispatcher.h (right): https://codereview.chromium.org/226273005/diff/1/content/child/resource_dispatcher.h#newcode98 content/child/resource_dispatcher.h:98: class IPCResourceLoaderBridge; John, I burned my head, and this ...
6 years, 8 months ago (2014-04-05 02:03:45 UTC) #1
jam
https://codereview.chromium.org/226273005/diff/1/content/child/resource_dispatcher.h File content/child/resource_dispatcher.h (right): https://codereview.chromium.org/226273005/diff/1/content/child/resource_dispatcher.h#newcode98 content/child/resource_dispatcher.h:98: class IPCResourceLoaderBridge; On 2014/04/05 02:03:46, tfarina wrote: > John, ...
6 years, 8 months ago (2014-04-07 16:43:22 UTC) #2
tfarina
John, sorry for the delay. college tests this week and previous one. This should be ...
6 years, 8 months ago (2014-04-11 01:43:55 UTC) #3
tfarina
https://codereview.chromium.org/226273005/diff/330001/content/child/resource_dispatcher.h File content/child/resource_dispatcher.h (right): https://codereview.chromium.org/226273005/diff/330001/content/child/resource_dispatcher.h#newcode53 content/child/resource_dispatcher.h:53: void CreateBridge(const RequestInfo& request_info); I forgot to ask. John, ...
6 years, 8 months ago (2014-04-11 03:00:52 UTC) #4
jam
ResourceDispatcher is one-per-process. You're now storing per-request data as a member variable, which won't work ...
6 years, 8 months ago (2014-04-11 18:20:14 UTC) #5
tfarina
John, let me see if I understand your proposal (without you taking this patch from ...
6 years, 8 months ago (2014-04-11 19:14:38 UTC) #6
tfarina
John, ping??
6 years, 8 months ago (2014-04-15 02:28:56 UTC) #7
jam
On 2014/04/15 02:28:56, tfarina wrote: > John, ping?? ResourceDispatcher already has a pending_requests_ map, so ...
6 years, 8 months ago (2014-04-15 15:13:39 UTC) #8
tfarina
On 2014/04/15 15:13:39, jam wrote: > On 2014/04/15 02:28:56, tfarina wrote: > > John, ping?? ...
6 years, 8 months ago (2014-04-16 06:58:15 UTC) #9
jam
it would be helpful in changes like this to wait for trybots to be green, ...
6 years, 8 months ago (2014-04-16 16:24:04 UTC) #10
tfarina
RoundTrip is crashing: [ RUN ] ResourceDispatcherTest.RoundTrip Received signal 11 SEGV_MAPERR ffffffff01cffcf8 #0 0x7ff7f718675e base::debug::StackTrace::StackTrace() ...
6 years, 8 months ago (2014-04-16 22:33:12 UTC) #11
tfarina
John, are you waiting on me to fix the crash to do another pass?
6 years, 8 months ago (2014-04-18 00:14:45 UTC) #12
tfarina
I will get back to you when I have the following comments sorted out. https://codereview.chromium.org/226273005/diff/490001/content/child/resource_dispatcher.h ...
6 years, 8 months ago (2014-04-18 02:31:45 UTC) #13
tfarina
John, could you please, review this again? Thanks in advance. https://codereview.chromium.org/226273005/diff/490001/content/child/resource_dispatcher.h File content/child/resource_dispatcher.h (right): https://codereview.chromium.org/226273005/diff/490001/content/child/resource_dispatcher.h#newcode219 ...
6 years, 8 months ago (2014-04-18 15:24:32 UTC) #14
jam
https://codereview.chromium.org/226273005/diff/530001/content/child/resource_dispatcher.cc File content/child/resource_dispatcher.cc (right): https://codereview.chromium.org/226273005/diff/530001/content/child/resource_dispatcher.cc#newcode701 content/child/resource_dispatcher.cc:701: *frame_origin = extra_data->frame_origin(); On 2014/04/18 15:24:33, tfarina wrote: > ...
6 years, 8 months ago (2014-04-22 16:47:50 UTC) #15
tfarina
https://codereview.chromium.org/226273005/diff/530001/content/child/resource_dispatcher.cc File content/child/resource_dispatcher.cc (right): https://codereview.chromium.org/226273005/diff/530001/content/child/resource_dispatcher.cc#newcode701 content/child/resource_dispatcher.cc:701: *frame_origin = extra_data->frame_origin(); On 2014/04/22 16:47:51, jam wrote: > ...
6 years, 8 months ago (2014-04-22 23:46:49 UTC) #16
tfarina
I think my changes in ResourceDispatcher are triggering this: [11281:11281:0422/210413:432962474428:FATAL:ref_counted.h(60)] Check failed: !in_dtor_. #0 0x7f643f404a3e ...
6 years, 8 months ago (2014-04-23 00:05:49 UTC) #17
jam
On 2014/04/23 00:05:49, tfarina wrote: > I think my changes in ResourceDispatcher are triggering this: ...
6 years, 8 months ago (2014-04-23 22:24:58 UTC) #18
tfarina
That was it John. Thanks a lot! Putting it back, made the renderer work again. ...
6 years, 8 months ago (2014-04-24 00:17:37 UTC) #19
jam
https://codereview.chromium.org/226273005/diff/550001/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/226273005/diff/550001/content/child/web_url_loader_impl.cc#newcode304 content/child/web_url_loader_impl.cc:304: 0 /*routing_id*/, On 2014/04/24 00:17:38, tfarina wrote: > John, ...
6 years, 8 months ago (2014-04-24 16:14:08 UTC) #20
tfarina
https://codereview.chromium.org/226273005/diff/550001/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/226273005/diff/550001/content/child/web_url_loader_impl.cc#newcode304 content/child/web_url_loader_impl.cc:304: 0 /*routing_id*/, On 2014/04/24 16:14:08, jam wrote: > On ...
6 years, 8 months ago (2014-04-26 04:23:49 UTC) #21
jam
Thanks, lgtm with this one comment https://codereview.chromium.org/226273005/diff/590001/content/child/resource_dispatcher.h File content/child/resource_dispatcher.h (right): https://codereview.chromium.org/226273005/diff/590001/content/child/resource_dispatcher.h#newcode98 content/child/resource_dispatcher.h:98: IPC::Sender* message_sender() const ...
6 years, 7 months ago (2014-04-28 15:26:12 UTC) #22
tfarina
https://codereview.chromium.org/226273005/diff/590001/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/226273005/diff/590001/content/child/web_url_loader_impl.cc#newcode283 content/child/web_url_loader_impl.cc:283: ChildThread::current()->resource_dispatcher()->Cancel(request_id_); John, this is crashing: [ RUN ] RenderViewImplTest.OnHandleKeyboardEvent ...
6 years, 7 months ago (2014-04-30 01:33:10 UTC) #23
tfarina
Ping?
6 years, 7 months ago (2014-05-01 03:59:46 UTC) #24
jam
https://codereview.chromium.org/226273005/diff/590001/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/226273005/diff/590001/content/child/web_url_loader_impl.cc#newcode283 content/child/web_url_loader_impl.cc:283: ChildThread::current()->resource_dispatcher()->Cancel(request_id_); On 2014/04/30 01:33:11, tfarina wrote: > John, this ...
6 years, 7 months ago (2014-05-01 16:28:15 UTC) #25
tfarina
ptal https://codereview.chromium.org/226273005/diff/590001/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/226273005/diff/590001/content/child/web_url_loader_impl.cc#newcode283 content/child/web_url_loader_impl.cc:283: ChildThread::current()->resource_dispatcher()->Cancel(request_id_); On 2014/05/01 16:28:16, jam wrote: > On ...
6 years, 7 months ago (2014-05-01 19:57:15 UTC) #26
tfarina
John, I'm pushing this to CQ with your previous approval. The bots are green now. ...
6 years, 7 months ago (2014-05-02 21:12:06 UTC) #27
tfarina
TBRing Darin for the webkit/ changes.
6 years, 7 months ago (2014-05-02 21:12:47 UTC) #28
tfarina
The CQ bit was checked by tfarina@chromium.org
6 years, 7 months ago (2014-05-02 21:12:59 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/226273005/630001
6 years, 7 months ago (2014-05-02 21:13:20 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 21:35:30 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-05-02 21:35:30 UTC) #32
tfarina
The CQ bit was checked by tfarina@chromium.org
6 years, 7 months ago (2014-05-02 21:52:03 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/226273005/630001
6 years, 7 months ago (2014-05-02 21:52:53 UTC) #34
commit-bot: I haz the power
Change committed as 267947
6 years, 7 months ago (2014-05-02 22:40:53 UTC) #35
DaleCurtis
6 years, 7 months ago (2014-05-03 01:50:00 UTC) #36
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/267973002/ by dalecurtis@chromium.org.

The reason for reverting is: Looks like it broke LSan bots:

http://build.chromium.org/p/chromium.memory/builders/Linux%20ASan%20LSan%20Te...
.

Powered by Google App Engine
This is Rietveld 408576698