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

Unified Diff: sky/engine/platform/fetcher/MojoFetcher.cpp

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/engine/platform/fetcher/MojoFetcher.h ('k') | sky/engine/public/platform/Platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/fetcher/MojoFetcher.cpp
diff --git a/sky/engine/platform/fetcher/MojoFetcher.cpp b/sky/engine/platform/fetcher/MojoFetcher.cpp
index 9fd05b74ddcd195f6f7fc63a7caa53949187bc45..34f9aa6b0adac4c2e22c88a3b918f5fbd28e395d 100644
--- a/sky/engine/platform/fetcher/MojoFetcher.cpp
+++ b/sky/engine/platform/fetcher/MojoFetcher.cpp
@@ -6,7 +6,7 @@
#include "sky/engine/platform/fetcher/MojoFetcher.h"
#include "base/bind.h"
-#include "mojo/services/network/public/interfaces/network_service.mojom.h"
+#include "mojo/services/authenticating_url_loader/public/interfaces/authenticating_url_loader_factory.mojom.h"
#include "sky/engine/platform/weborigin/KURL.h"
#include "sky/engine/public/platform/Platform.h"
@@ -17,8 +17,9 @@ MojoFetcher::MojoFetcher(Client* client, const KURL& url)
weak_factory_(this) {
DCHECK(client_);
- mojo::NetworkService* net = Platform::current()->networkService();
- net->CreateURLLoader(GetProxy(&url_loader_));
+ mojo::AuthenticatingURLLoaderFactory* url_loader_factory =
+ Platform::current()->authenticatingURLLoaderFactory();
+ url_loader_factory->CreateAuthenticatingURLLoader(GetProxy(&url_loader_));
mojo::URLRequestPtr url_request = mojo::URLRequest::New();
url_request->url = url.string().toUTF8();
« no previous file with comments | « sky/engine/platform/fetcher/MojoFetcher.h ('k') | sky/engine/public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698