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

Issue 513573002: Mojo: Fix two bugs in content handling (Closed)

Created:
6 years, 3 months ago by Aaron Boodman
Modified:
6 years, 3 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Mojo: Fix two bugs in content handling 1. URLLoaders can't be reused, so we need to construct one per-load. This became too gnarly to handle with callbacks so I put it back to having a loader object that owns the URLLoader. 2. The relevant URLLoader needs to be passed to ContentHandler::OnConnect() so that it stays alive long enough to read the entire response. BUG= Committed: https://crrev.com/54efb2353d1a90840fcfad2ca5b5b3a8c7883154 Cr-Commit-Position: refs/heads/master@{#292460}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : Darin comments, updates for Android toolchain #

Total comments: 14

Patch Set 4 : darin comments #

Total comments: 2

Patch Set 5 : rebase #

Patch Set 6 : Finally figured out what Tim was trying to say. #

Patch Set 7 : git cl format #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -147 lines) Patch
M mojo/application_manager/application_loader.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M mojo/application_manager/application_loader.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M mojo/application_manager/application_manager.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M mojo/application_manager/application_manager.cc View 1 2 3 4 5 3 chunks +7 lines, -4 lines 0 comments Download
M mojo/examples/content_handler_demo/content_handler_demo.cc View 1 2 3 4 5 2 chunks +8 lines, -6 lines 0 comments Download
M mojo/services/public/interfaces/content_handler/content_handler.mojom View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/shell/dynamic_application_loader.h View 1 2 3 2 chunks +9 lines, -15 lines 0 comments Download
M mojo/shell/dynamic_application_loader.cc View 1 2 3 4 5 6 7 5 chunks +188 lines, -116 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Aaron Boodman
Patchset #1 (id:1) has been deleted
6 years, 3 months ago (2014-08-27 00:54:40 UTC) #1
Aaron Boodman
aa@chromium.org changed reviewers: + tim@chromium.org
6 years, 3 months ago (2014-08-27 01:10:18 UTC) #2
Aaron Boodman
6 years, 3 months ago (2014-08-27 01:10:18 UTC) #3
Aaron Boodman
Tim, I figured you might be good for this since you've been working in this ...
6 years, 3 months ago (2014-08-27 01:10:55 UTC) #4
darin (slow to review)
darin@chromium.org changed reviewers: + darin@chromium.org
6 years, 3 months ago (2014-08-27 03:22:04 UTC) #5
darin (slow to review)
https://codereview.chromium.org/513573002/diff/40001/mojo/services/public/interfaces/content_handler/content_handler.mojom File mojo/services/public/interfaces/content_handler/content_handler.mojom (right): https://codereview.chromium.org/513573002/diff/40001/mojo/services/public/interfaces/content_handler/content_handler.mojom#newcode10 mojo/services/public/interfaces/content_handler/content_handler.mojom:10: struct ContentHandlerResponse { hmm..... this reminds me of the ...
6 years, 3 months ago (2014-08-27 03:22:04 UTC) #6
Aaron Boodman
https://codereview.chromium.org/513573002/diff/40001/mojo/services/public/interfaces/content_handler/content_handler.mojom File mojo/services/public/interfaces/content_handler/content_handler.mojom (right): https://codereview.chromium.org/513573002/diff/40001/mojo/services/public/interfaces/content_handler/content_handler.mojom#newcode10 mojo/services/public/interfaces/content_handler/content_handler.mojom:10: struct ContentHandlerResponse { On 2014/08/27 03:22:04, darin wrote: > ...
6 years, 3 months ago (2014-08-27 05:43:51 UTC) #7
darin (slow to review)
On 2014/08/27 05:43:51, Aaron Boodman wrote: > https://codereview.chromium.org/513573002/diff/40001/mojo/services/public/interfaces/content_handler/content_handler.mojom > File mojo/services/public/interfaces/content_handler/content_handler.mojom > (right): > > ...
6 years, 3 months ago (2014-08-27 06:17:37 UTC) #8
darin (slow to review)
LGTM https://codereview.chromium.org/513573002/diff/60001/mojo/application_manager/application_loader.h File mojo/application_manager/application_loader.h (right): https://codereview.chromium.org/513573002/diff/60001/mojo/application_manager/application_loader.h#newcode37 mojo/application_manager/application_loader.h:37: URLResponsePtr url_response, Did you considered using ContentHandlerResponsePtr here ...
6 years, 3 months ago (2014-08-27 06:34:19 UTC) #9
tim (not reviewing)
https://codereview.chromium.org/513573002/diff/60001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/513573002/diff/60001/mojo/shell/dynamic_application_loader.cc#newcode30 mojo/shell/dynamic_application_loader.cc:30: // DynamicApplicationLoader going away (and taking all the Loaders ...
6 years, 3 months ago (2014-08-27 17:32:19 UTC) #10
Aaron Boodman
https://codereview.chromium.org/513573002/diff/60001/mojo/application_manager/application_loader.h File mojo/application_manager/application_loader.h (right): https://codereview.chromium.org/513573002/diff/60001/mojo/application_manager/application_loader.h#newcode37 mojo/application_manager/application_loader.h:37: URLResponsePtr url_response, On 2014/08/27 06:34:19, darin wrote: > Did ...
6 years, 3 months ago (2014-08-27 18:26:13 UTC) #11
Aaron Boodman
https://codereview.chromium.org/513573002/diff/60001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/513573002/diff/60001/mojo/shell/dynamic_application_loader.cc#newcode35 mojo/shell/dynamic_application_loader.cc:35: internal::LoaderDelegate* delegate) On 2014/08/27 18:26:13, Aaron Boodman wrote: > ...
6 years, 3 months ago (2014-08-27 18:27:37 UTC) #12
Aaron Boodman
https://codereview.chromium.org/513573002/diff/60001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/513573002/diff/60001/mojo/shell/dynamic_application_loader.cc#newcode30 mojo/shell/dynamic_application_loader.cc:30: // DynamicApplicationLoader going away (and taking all the Loaders ...
6 years, 3 months ago (2014-08-27 18:33:43 UTC) #13
darin (slow to review)
LGTM
6 years, 3 months ago (2014-08-27 19:57:53 UTC) #14
tim (not reviewing)
https://codereview.chromium.org/513573002/diff/60001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/513573002/diff/60001/mojo/shell/dynamic_application_loader.cc#newcode30 mojo/shell/dynamic_application_loader.cc:30: // DynamicApplicationLoader going away (and taking all the Loaders ...
6 years, 3 months ago (2014-08-27 22:54:14 UTC) #15
Aaron Boodman
On Wed, Aug 27, 2014 at 3:54 PM, <tim@chromium.org> wrote: > > https://codereview.chromium.org/513573002/diff/60001/mojo/ > shell/dynamic_application_loader.cc ...
6 years, 3 months ago (2014-08-27 23:51:11 UTC) #16
tim (not reviewing)
> > This is why I wanted you to review this :). Thanks for the ...
6 years, 3 months ago (2014-08-28 01:17:49 UTC) #17
Aaron Boodman
On Wed, Aug 27, 2014 at 6:17 PM, <tim@chromium.org> wrote: > > > This is ...
6 years, 3 months ago (2014-08-28 02:49:47 UTC) #18
Aaron Boodman
OK, I hashed it out with Tim... He was pointing out that you don't need ...
6 years, 3 months ago (2014-08-28 18:58:56 UTC) #19
tim (not reviewing)
Yup, thanks for bearing with me. LGTM with nit. [For posterity, I know this means ...
6 years, 3 months ago (2014-08-28 19:11:14 UTC) #20
Aaron Boodman
https://codereview.chromium.org/513573002/diff/80001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/513573002/diff/80001/mojo/shell/dynamic_application_loader.cc#newcode67 mojo/shell/dynamic_application_loader.cc:67: base::Bind(&Loader::AppCompleted, weak_ptr_factory_.GetWeakPtr())); On 2014/08/28 19:11:14, timsteele wrote: > nit: ...
6 years, 3 months ago (2014-08-28 19:49:23 UTC) #21
Aaron Boodman
The CQ bit was checked by aa@chromium.org
6 years, 3 months ago (2014-08-28 19:49:27 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aa@chromium.org/513573002/150001
6 years, 3 months ago (2014-08-28 19:51:33 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-28 20:51:39 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:150001) as 8cf11e1b4ae186269ba8128800651134292c158e
6 years, 3 months ago (2014-08-28 21:01:52 UTC) #25
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:02:11 UTC) #26
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/54efb2353d1a90840fcfad2ca5b5b3a8c7883154
Cr-Commit-Position: refs/heads/master@{#292460}

Powered by Google App Engine
This is Rietveld 408576698