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

Unified Diff: sky/services/platform/weburlloader_impl.h

Issue 1154223003: NOT FOR COMMIT: POC of using AuthenticatingURLLoader in Sky (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: updated comment Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/services/platform/platform_impl.cc ('k') | sky/services/platform/weburlloader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/services/platform/weburlloader_impl.h
diff --git a/sky/services/platform/weburlloader_impl.h b/sky/services/platform/weburlloader_impl.h
index 3372f437467a610ab248768b58191533df5d9da5..3b19c2a9a7615ea421a0280e10e21bca9d017fe7 100644
--- a/sky/services/platform/weburlloader_impl.h
+++ b/sky/services/platform/weburlloader_impl.h
@@ -7,11 +7,12 @@
#include "base/memory/weak_ptr.h"
#include "mojo/common/handle_watcher.h"
-#include "mojo/services/network/public/interfaces/url_loader.mojom.h"
+#include "mojo/services/authenticating_url_loader/public/interfaces/authenticating_url_loader.mojom.h"
#include "sky/engine/public/platform/WebURLLoader.h"
#include "sky/engine/public/platform/WebURLRequest.h"
namespace mojo {
+class AuthenticatingURLLoaderFactory;
class NetworkService;
}
@@ -19,7 +20,9 @@ namespace sky {
class WebURLLoaderImpl : public blink::WebURLLoader {
public:
- explicit WebURLLoaderImpl(mojo::NetworkService* network_service);
+ explicit WebURLLoaderImpl(
+ mojo::NetworkService* network_service,
+ mojo::AuthenticatingURLLoaderFactory* authenticating_url_loader_factory);
private:
virtual ~WebURLLoaderImpl();
@@ -38,7 +41,7 @@ class WebURLLoaderImpl : public blink::WebURLLoader {
blink::WebURLLoaderClient* client_;
GURL url_;
- mojo::URLLoaderPtr url_loader_;
+ mojo::AuthenticatingURLLoaderPtr url_loader_;
mojo::ScopedDataPipeConsumerHandle response_body_stream_;
mojo::common::HandleWatcher handle_watcher_;
« no previous file with comments | « sky/services/platform/platform_impl.cc ('k') | sky/services/platform/weburlloader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698