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

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

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/weburlloader_impl.h ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/services/platform/weburlloader_impl.cc
diff --git a/sky/services/platform/weburlloader_impl.cc b/sky/services/platform/weburlloader_impl.cc
index 596bc599bb4fcfb4f01a5e6bc9c318bed02fe3f3..c5208c88f76488a2c241aedadfc24cb4631f9166 100644
--- a/sky/services/platform/weburlloader_impl.cc
+++ b/sky/services/platform/weburlloader_impl.cc
@@ -9,6 +9,7 @@
#include "base/strings/string_util.h"
#include "base/thread_task_runner_handle.h"
#include "mojo/common/common_type_converters.h"
+#include "mojo/services/authenticating_url_loader/public/interfaces/authenticating_url_loader_factory.mojom.h"
#include "mojo/services/network/public/interfaces/network_service.mojom.h"
#include "sky/engine/public/platform/WebURLError.h"
#include "sky/engine/public/platform/WebURLLoadTiming.h"
@@ -69,10 +70,12 @@ blink::WebURLResponse ToWebURLResponse(const mojo::URLResponsePtr& url_response)
} // namespace
-WebURLLoaderImpl::WebURLLoaderImpl(mojo::NetworkService* network_service)
- : client_(NULL),
- weak_factory_(this) {
- network_service->CreateURLLoader(GetProxy(&url_loader_));
+WebURLLoaderImpl::WebURLLoaderImpl(
+ mojo::NetworkService* network_service,
+ mojo::AuthenticatingURLLoaderFactory* authenticating_url_loader_factory)
+ : client_(NULL), weak_factory_(this) {
+ authenticating_url_loader_factory->CreateAuthenticatingURLLoader(
+ GetProxy(&url_loader_));
}
WebURLLoaderImpl::~WebURLLoaderImpl() {
« no previous file with comments | « sky/services/platform/weburlloader_impl.h ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698