Chromium Code Reviews

Unified Diff: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.h

Issue 2015643002: Add (optional) options to Run[Main]Application(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.h
diff --git a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.h b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.h
index 62a3d8168b2c5c29789378124992e8bc25651864..e9626807a494665cabcbb8def499650d5cc74772 100644
--- a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.h
+++ b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.h
@@ -16,18 +16,19 @@
namespace mojo {
-class ApplicationImpl;
-
class AuthenticatingURLLoaderInterceptor;
+class Shell;
class AuthenticatingURLLoaderInterceptorFactory
: public URLLoaderInterceptorFactory {
public:
+ // TODO(vtl): Maybe this should take an |ApplicationConnectorPtr| instead of a
+ // |Shell*|.
AuthenticatingURLLoaderInterceptorFactory(
mojo::InterfaceRequest<URLLoaderInterceptorFactory> request,
mojo::InterfaceHandle<authentication::AuthenticationService>
authentication_service,
- mojo::ApplicationImpl* app,
+ mojo::Shell* shell,
std::map<GURL, std::string>* cached_tokens);
~AuthenticatingURLLoaderInterceptorFactory() override;
@@ -61,7 +62,6 @@ class AuthenticatingURLLoaderInterceptorFactory
StrongBinding<URLLoaderInterceptorFactory> binding_;
authentication::AuthenticationServicePtr authentication_service_;
- ApplicationImpl* app_;
std::map<GURL, std::string>* cached_tokens_;
std::map<GURL, std::string> cached_accounts_;
NetworkServicePtr network_service_;

Powered by Google App Engine