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

Issue 1155283003: Change AuthenticatingURLLoader to be a URLLoaderInterceptor (Closed)

Created:
5 years, 6 months ago by blundell
Modified:
5 years, 6 months ago
Reviewers:
qsr
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Change AuthenticatingURLLoader to be a URLLoaderInterceptor This CL changes AuthenticatingURLLoader to be a URLLoaderInterceptor rather than a one-off interface whose implementation wrapped URLLoaders. Renaming of various classes/files to more appropriate names will happen in a follow-up CL to minimize churn. It also removes the background loader used to load the authenticating_url_loader app; it is no longer needed as the NetworkService's URLLoaders are now being used directly again and can fetch the authenticating_url_loader app. R=qsr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/8ca4d652c72233d89dd5c27fdf12810d96ebb7a2

Patch Set 1 #

Patch Set 2 : Nits #

Patch Set 3 : Revisions #

Patch Set 4 : Restore some error handling logic #

Patch Set 5 : Fix ownership model #

Total comments: 6

Patch Set 6 : Response to review #

Total comments: 8

Patch Set 7 : Address review + rebase #

Total comments: 2

Patch Set 8 : Address review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -669 lines) Patch
M mojo/services/authenticating_url_loader/public/interfaces/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
D mojo/services/authenticating_url_loader/public/interfaces/authenticating_url_loader.mojom View 1 1 chunk +0 lines, -22 lines 0 comments Download
M mojo/services/authenticating_url_loader/public/interfaces/authenticating_url_loader_factory.mojom View 1 2 3 4 5 1 chunk +6 lines, -10 lines 0 comments Download
M services/authenticating_url_loader/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +7 lines, -4 lines 0 comments Download
M services/authenticating_url_loader/authenticating_url_loader_app.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M services/authenticating_url_loader/authenticating_url_loader_factory_impl.h View 1 2 3 4 5 6 2 chunks +3 lines, -39 lines 0 comments Download
M services/authenticating_url_loader/authenticating_url_loader_factory_impl.cc View 1 2 3 4 5 6 2 chunks +6 lines, -114 lines 0 comments Download
D services/authenticating_url_loader/authenticating_url_loader_impl.h View 1 chunk +0 lines, -63 lines 0 comments Download
D services/authenticating_url_loader/authenticating_url_loader_impl.cc View 1 chunk +0 lines, -163 lines 0 comments Download
A + services/authenticating_url_loader/authenticating_url_loader_interceptor.h View 1 2 3 4 5 2 chunks +25 lines, -25 lines 0 comments Download
A + services/authenticating_url_loader/authenticating_url_loader_interceptor.cc View 1 2 3 4 5 6 chunks +95 lines, -71 lines 0 comments Download
A + services/authenticating_url_loader/authenticating_url_loader_interceptor_factory.h View 1 2 3 4 5 6 5 chunks +18 lines, -19 lines 0 comments Download
A + services/authenticating_url_loader/authenticating_url_loader_interceptor_factory.cc View 1 2 3 4 5 6 5 chunks +44 lines, -40 lines 0 comments Download
M shell/BUILD.gn View 1 2 3 4 5 6 2 chunks +0 lines, -3 lines 0 comments Download
M shell/application_manager/application_manager.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M shell/application_manager/application_manager.cc View 1 2 3 4 5 6 3 chunks +20 lines, -16 lines 0 comments Download
M shell/application_manager/network_fetcher.h View 4 chunks +5 lines, -6 lines 0 comments Download
M shell/application_manager/network_fetcher.cc View 4 chunks +4 lines, -4 lines 0 comments Download
D shell/authenticating_url_loader_loader.h View 1 2 3 4 5 6 1 chunk +0 lines, -35 lines 0 comments Download
D shell/authenticating_url_loader_loader.cc View 1 2 3 4 5 6 1 chunk +0 lines, -24 lines 0 comments Download
M shell/context.cc View 1 2 3 4 5 6 2 chunks +0 lines, -7 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
blundell
5 years, 6 months ago (2015-06-04 10:51:29 UTC) #2
qsr
lgtm https://codereview.chromium.org/1155283003/diff/80001/mojo/services/authenticating_url_loader/public/interfaces/authenticating_url_loader_factory.mojom File mojo/services/authenticating_url_loader/public/interfaces/authenticating_url_loader_factory.mojom (right): https://codereview.chromium.org/1155283003/diff/80001/mojo/services/authenticating_url_loader/public/interfaces/authenticating_url_loader_factory.mojom#newcode21 mojo/services/authenticating_url_loader/public/interfaces/authenticating_url_loader_factory.mojom:21: CreateURLLoaderInterceptorFactory( I don't expect to need to create ...
5 years, 6 months ago (2015-06-04 12:25:31 UTC) #3
qsr
Sorry, the l.g.t.m. was a mistake
5 years, 6 months ago (2015-06-04 12:26:06 UTC) #4
blundell
In addition to addressing comments, also moved the intelligence from the AuthicatingURLLoaderFactoryImpl to the AuthenticatingURLLoaderInterceptorFactory ...
5 years, 6 months ago (2015-06-04 15:36:36 UTC) #6
qsr
https://codereview.chromium.org/1155283003/diff/120001/services/authenticating_url_loader/authenticating_url_loader_factory_impl.h File services/authenticating_url_loader/authenticating_url_loader_factory_impl.h (right): https://codereview.chromium.org/1155283003/diff/120001/services/authenticating_url_loader/authenticating_url_loader_factory_impl.h#newcode22 services/authenticating_url_loader/authenticating_url_loader_factory_impl.h:22: : public AuthenticatingURLLoaderFactory { This class doesn't seem to ...
5 years, 6 months ago (2015-06-05 10:54:55 UTC) #7
blundell
https://codereview.chromium.org/1155283003/diff/120001/services/authenticating_url_loader/authenticating_url_loader_factory_impl.h File services/authenticating_url_loader/authenticating_url_loader_factory_impl.h (right): https://codereview.chromium.org/1155283003/diff/120001/services/authenticating_url_loader/authenticating_url_loader_factory_impl.h#newcode22 services/authenticating_url_loader/authenticating_url_loader_factory_impl.h:22: : public AuthenticatingURLLoaderFactory { On 2015/06/05 10:54:55, qsr wrote: ...
5 years, 6 months ago (2015-06-05 13:24:17 UTC) #9
qsr
LGTM wiht nit https://codereview.chromium.org/1155283003/diff/160001/services/authenticating_url_loader/BUILD.gn File services/authenticating_url_loader/BUILD.gn (right): https://codereview.chromium.org/1155283003/diff/160001/services/authenticating_url_loader/BUILD.gn#newcode26 services/authenticating_url_loader/BUILD.gn:26: "//mojo/public/cpp/application:standalone", Please keep using chromium env. ...
5 years, 6 months ago (2015-06-05 14:17:42 UTC) #10
blundell
https://codereview.chromium.org/1155283003/diff/160001/services/authenticating_url_loader/BUILD.gn File services/authenticating_url_loader/BUILD.gn (right): https://codereview.chromium.org/1155283003/diff/160001/services/authenticating_url_loader/BUILD.gn#newcode26 services/authenticating_url_loader/BUILD.gn:26: "//mojo/public/cpp/application:standalone", On 2015/06/05 14:17:42, qsr wrote: > Please keep ...
5 years, 6 months ago (2015-06-05 14:24:47 UTC) #11
blundell
5 years, 6 months ago (2015-06-05 14:41:38 UTC) #12
Message was sent while issue was closed.
Committed patchset #8 (id:180001) manually as
8ca4d652c72233d89dd5c27fdf12810d96ebb7a2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698