OLD | NEW |
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 MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ | 5 #ifndef MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ |
6 #define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ | 6 #define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "mojo/public/cpp/bindings/interface_impl.h" | 9 #include "mojo/public/cpp/bindings/interface_impl.h" |
10 #include "mojo/services/public/interfaces/network/network_service.mojom.h" | 10 #include "mojo/services/public/interfaces/network/network_service.mojom.h" |
| 11 #include "url/gurl.h" |
11 | 12 |
12 namespace mojo { | 13 namespace mojo { |
13 class ApplicationConnection; | 14 class ApplicationConnection; |
14 class NetworkContext; | 15 class NetworkContext; |
15 | 16 |
16 class NetworkServiceImpl : public InterfaceImpl<NetworkService> { | 17 class NetworkServiceImpl : public InterfaceImpl<NetworkService> { |
17 public: | 18 public: |
18 NetworkServiceImpl(ApplicationConnection* connection, | 19 NetworkServiceImpl(ApplicationConnection* connection, |
19 NetworkContext* context); | 20 NetworkContext* context); |
20 virtual ~NetworkServiceImpl(); | 21 virtual ~NetworkServiceImpl(); |
21 | 22 |
22 // NetworkService methods: | 23 // NetworkService methods: |
23 virtual void CreateURLLoader(InterfaceRequest<URLLoader> loader) OVERRIDE; | 24 virtual void CreateURLLoader(InterfaceRequest<URLLoader> loader) OVERRIDE; |
| 25 virtual void GetCookieStore(InterfaceRequest<CookieStore> store) OVERRIDE; |
24 | 26 |
25 private: | 27 private: |
26 NetworkContext* context_; | 28 NetworkContext* context_; |
| 29 GURL origin_; |
27 }; | 30 }; |
28 | 31 |
29 } // namespace mojo | 32 } // namespace mojo |
30 | 33 |
31 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ | 34 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ |
OLD | NEW |