| 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" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 virtual ~NetworkServiceImpl(); | 21 virtual ~NetworkServiceImpl(); |
| 22 | 22 |
| 23 // NetworkService methods: | 23 // NetworkService methods: |
| 24 virtual void CreateURLLoader(InterfaceRequest<URLLoader> loader) override; | 24 virtual void CreateURLLoader(InterfaceRequest<URLLoader> loader) override; |
| 25 virtual void GetCookieStore(InterfaceRequest<CookieStore> store) override; | 25 virtual void GetCookieStore(InterfaceRequest<CookieStore> store) override; |
| 26 virtual void CreateWebSocket(InterfaceRequest<WebSocket> socket) override; | 26 virtual void CreateWebSocket(InterfaceRequest<WebSocket> socket) override; |
| 27 virtual void CreateTCPBoundSocket( | 27 virtual void CreateTCPBoundSocket( |
| 28 NetAddressPtr local_address, | 28 NetAddressPtr local_address, |
| 29 InterfaceRequest<TCPBoundSocket> bound_socket, | 29 InterfaceRequest<TCPBoundSocket> bound_socket, |
| 30 const Callback<void(NetworkErrorPtr, NetAddressPtr)>& callback) override; | 30 const Callback<void(NetworkErrorPtr, NetAddressPtr)>& callback) override; |
| 31 virtual void CreateTCPClientSocket( | 31 virtual void CreateTCPConnectedSocket( |
| 32 NetAddressPtr remote_address, | 32 NetAddressPtr remote_address, |
| 33 ScopedDataPipeConsumerHandle send_stream, | 33 ScopedDataPipeConsumerHandle send_stream, |
| 34 ScopedDataPipeProducerHandle receive_stream, | 34 ScopedDataPipeProducerHandle receive_stream, |
| 35 InterfaceRequest<TCPClientSocket> client_socket, | 35 InterfaceRequest<TCPConnectedSocket> client_socket, |
| 36 const Callback<void(NetworkErrorPtr, NetAddressPtr)>& callback) override; | 36 const Callback<void(NetworkErrorPtr, NetAddressPtr)>& callback) override; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 NetworkContext* context_; | 39 NetworkContext* context_; |
| 40 GURL origin_; | 40 GURL origin_; |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 } // namespace mojo | 43 } // namespace mojo |
| 44 | 44 |
| 45 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ | 45 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ |
| OLD | NEW |