| 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/application/public/cpp/app_lifetime_helper.h" | 9 #include "mojo/application/public/cpp/app_lifetime_helper.h" |
| 10 #include "mojo/services/network/public/interfaces/network_service.mojom.h" | 10 #include "mojo/services/network/public/interfaces/network_service.mojom.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 void CreateTCPConnectedSocket( | 33 void CreateTCPConnectedSocket( |
| 34 NetAddressPtr remote_address, | 34 NetAddressPtr remote_address, |
| 35 ScopedDataPipeConsumerHandle send_stream, | 35 ScopedDataPipeConsumerHandle send_stream, |
| 36 ScopedDataPipeProducerHandle receive_stream, | 36 ScopedDataPipeProducerHandle receive_stream, |
| 37 InterfaceRequest<TCPConnectedSocket> client_socket, | 37 InterfaceRequest<TCPConnectedSocket> client_socket, |
| 38 const CreateTCPConnectedSocketCallback& callback) override; | 38 const CreateTCPConnectedSocketCallback& callback) override; |
| 39 void CreateUDPSocket(InterfaceRequest<UDPSocket> socket) override; | 39 void CreateUDPSocket(InterfaceRequest<UDPSocket> socket) override; |
| 40 void CreateHttpServer(NetAddressPtr local_address, | 40 void CreateHttpServer(NetAddressPtr local_address, |
| 41 HttpServerDelegatePtr delegate, | 41 HttpServerDelegatePtr delegate, |
| 42 const CreateHttpServerCallback& callback) override; | 42 const CreateHttpServerCallback& callback) override; |
| 43 void GetMimeTypeFromFile( |
| 44 const mojo::String& file_path, |
| 45 const GetMimeTypeFromFileCallback& callback) override; |
| 43 | 46 |
| 44 private: | 47 private: |
| 45 NetworkContext* context_; | 48 NetworkContext* context_; |
| 46 scoped_ptr<mojo::AppRefCount> app_refcount_; | 49 scoped_ptr<mojo::AppRefCount> app_refcount_; |
| 47 GURL origin_; | 50 GURL origin_; |
| 48 StrongBinding<NetworkService> binding_; | 51 StrongBinding<NetworkService> binding_; |
| 49 }; | 52 }; |
| 50 | 53 |
| 51 } // namespace mojo | 54 } // namespace mojo |
| 52 | 55 |
| 53 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ | 56 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ |
| OLD | NEW |