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

Issue 373373002: Mojo: Refactor URLLoader interface. (Closed)

Created:
6 years, 5 months ago by darin (slow to review)
Modified:
6 years, 3 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, ben+mojo_chromium.org
Project:
chromium
Visibility:
Public.

Description

Mojo: Refactor URLLoader interface. This change simplifies the URLLoader interface, eliminating the URLLoaderClient interface. The URLResponse now includes the DataPipeConsumerHandle for the response body stream as well as information about a possible redirect response. One nice thing about this change is that you can now pass around the URLResponsePtr without also having to pass around the DataPipeConsumerHandle for the response body stream. This didn't enable me to eliminate ResponseDetails as I think that structure should include not only the URLResponse but also the URLLoader used to generate the response. (That enables the LaunchInstance to get destroyed immediately after delegating the response to the handler app as it no longer needs to stick around to keep the URLLoader alive.) The recipient of the URLLoader might be interested in calling the new QueryStatus method to find out more information about the URL load (e.g., Blink wants to know the encoded size of a response body, which may not be available at the time when response headers are received). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282535

Patch Set 1 #

Patch Set 2 : snapshot #

Patch Set 3 : snapshot #

Total comments: 5

Patch Set 4 : fixes per review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -241 lines) Patch
M mojo/examples/html_viewer/html_document_view.h View 1 chunk +1 line, -2 lines 0 comments Download
M mojo/examples/html_viewer/html_document_view.cc View 1 chunk +1 line, -3 lines 0 comments Download
M mojo/examples/html_viewer/html_viewer.cc View 4 chunks +3 lines, -7 lines 0 comments Download
M mojo/examples/html_viewer/weburlloader_impl.h View 1 2 chunks +5 lines, -11 lines 0 comments Download
M mojo/examples/html_viewer/weburlloader_impl.cc View 1 3 chunks +41 lines, -32 lines 0 comments Download
M mojo/examples/png_viewer/png_viewer.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/examples/wget/wget.cc View 1 2 3 3 chunks +50 lines, -60 lines 0 comments Download
M mojo/services/launcher/launcher.cc View 1 2 3 4 chunks +24 lines, -30 lines 0 comments Download
M mojo/services/network/url_loader_impl.h View 1 3 chunks +11 lines, -3 lines 0 comments Download
M mojo/services/network/url_loader_impl.cc View 1 2 3 7 chunks +75 lines, -31 lines 0 comments Download
M mojo/services/public/interfaces/navigation/navigation.mojom View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M mojo/services/public/interfaces/network/url_loader.mojom View 1 2 3 chunks +44 lines, -38 lines 0 comments Download
M mojo/shell/dynamic_service_loader.cc View 3 chunks +21 lines, -21 lines 0 comments Download
M mojo/shell/in_process_dynamic_service_runner.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Aaron Boodman
are you ready for me to review this?
6 years, 5 months ago (2014-07-10 18:48:08 UTC) #1
darin (slow to review)
Yes. Thanks! On Thu, Jul 10, 2014 at 11:48 AM, <aa@chromium.org> wrote: > are you ...
6 years, 5 months ago (2014-07-10 19:16:47 UTC) #2
Aaron Boodman
lgtm https://codereview.chromium.org/373373002/diff/40001/mojo/examples/wget/wget.cc File mojo/examples/wget/wget.cc (right): https://codereview.chromium.org/373373002/diff/40001/mojo/examples/wget/wget.cc#newcode18 mojo/examples/wget/wget.cc:18: public: Out of curiosity, why have a separate ...
6 years, 5 months ago (2014-07-10 20:05:00 UTC) #3
darin (slow to review)
On 2014/07/10 20:05:00, Aaron Boodman wrote: > lgtm > > https://codereview.chromium.org/373373002/diff/40001/mojo/examples/wget/wget.cc > File mojo/examples/wget/wget.cc (right): ...
6 years, 5 months ago (2014-07-10 20:34:40 UTC) #4
darin (slow to review)
The CQ bit was checked by darin@chromium.org
6 years, 5 months ago (2014-07-10 22:14:37 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/darin@chromium.org/373373002/60001
6 years, 5 months ago (2014-07-10 22:15:51 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-11 03:02:33 UTC) #7
commit-bot: I haz the power
6 years, 5 months ago (2014-07-11 04:14:58 UTC) #8
Message was sent while issue was closed.
Change committed as 282535

Powered by Google App Engine
This is Rietveld 408576698