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

Side by Side 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, 6 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ 5 #ifndef SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_
6 #define SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ 6 #define SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_
7 7
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "mojo/services/authenticating_url_loader/public/interfaces/authenticati ng_url_loader_factory.mojom.h"
9 #include "mojo/services/network/public/interfaces/network_service.mojom.h" 10 #include "mojo/services/network/public/interfaces/network_service.mojom.h"
10 #include "sky/engine/public/platform/Platform.h" 11 #include "sky/engine/public/platform/Platform.h"
11 12
12 namespace mojo { 13 namespace mojo {
13 class ApplicationImpl; 14 class ApplicationImpl;
14 } 15 }
15 16
16 namespace sky { 17 namespace sky {
17 18
18 class PlatformImpl : public blink::Platform { 19 class PlatformImpl : public blink::Platform {
19 public: 20 public:
20 explicit PlatformImpl(mojo::NetworkServicePtr network_service); 21 explicit PlatformImpl(mojo::NetworkServicePtr network_service,
22 mojo::AuthenticatingURLLoaderFactoryPtr
23 authenticating_url_loader_factory);
21 ~PlatformImpl() override; 24 ~PlatformImpl() override;
22 25
23 // blink::Platform methods: 26 // blink::Platform methods:
24 blink::WebString defaultLocale() override; 27 blink::WebString defaultLocale() override;
25 base::SingleThreadTaskRunner* mainThreadTaskRunner() override; 28 base::SingleThreadTaskRunner* mainThreadTaskRunner() override;
26 mojo::NetworkService* networkService() override; 29 mojo::NetworkService* networkService() override;
30 mojo::AuthenticatingURLLoaderFactory* authenticatingURLLoaderFactory()
31 override;
27 blink::WebURLLoader* createURLLoader() override; 32 blink::WebURLLoader* createURLLoader() override;
28 blink::WebURLError cancelledError(const blink::WebURL& url) const override; 33 blink::WebURLError cancelledError(const blink::WebURL& url) const override;
29 34
30 private: 35 private:
31 mojo::NetworkServicePtr network_service_; 36 mojo::NetworkServicePtr network_service_;
37 mojo::AuthenticatingURLLoaderFactoryPtr authenticating_url_loader_factory_;
32 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 38 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
33 39
34 DISALLOW_COPY_AND_ASSIGN(PlatformImpl); 40 DISALLOW_COPY_AND_ASSIGN(PlatformImpl);
35 }; 41 };
36 42
37 } // namespace sky 43 } // namespace sky
38 44
39 #endif // SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ 45 #endif // SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_
OLDNEW
« 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