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

Unified Diff: sky/services/platform/platform_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/BUILD.gn ('k') | sky/services/platform/platform_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/services/platform/platform_impl.h
diff --git a/sky/services/platform/platform_impl.h b/sky/services/platform/platform_impl.h
index 2f6a3d588e7ab4866caed05d43b57590f3eca56a..1768b8d689b7fbabfac6f382b96573b674e260db 100644
--- a/sky/services/platform/platform_impl.h
+++ b/sky/services/platform/platform_impl.h
@@ -6,6 +6,7 @@
#define SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_
#include "base/message_loop/message_loop.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/Platform.h"
@@ -17,18 +18,23 @@ namespace sky {
class PlatformImpl : public blink::Platform {
public:
- explicit PlatformImpl(mojo::NetworkServicePtr network_service);
+ explicit PlatformImpl(mojo::NetworkServicePtr network_service,
+ mojo::AuthenticatingURLLoaderFactoryPtr
+ authenticating_url_loader_factory);
~PlatformImpl() override;
// blink::Platform methods:
blink::WebString defaultLocale() override;
base::SingleThreadTaskRunner* mainThreadTaskRunner() override;
mojo::NetworkService* networkService() override;
+ mojo::AuthenticatingURLLoaderFactory* authenticatingURLLoaderFactory()
+ override;
blink::WebURLLoader* createURLLoader() override;
blink::WebURLError cancelledError(const blink::WebURL& url) const override;
private:
mojo::NetworkServicePtr network_service_;
+ mojo::AuthenticatingURLLoaderFactoryPtr authenticating_url_loader_factory_;
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
DISALLOW_COPY_AND_ASSIGN(PlatformImpl);
« no previous file with comments | « sky/services/platform/BUILD.gn ('k') | sky/services/platform/platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698