| 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 #include "mojo/services/network/network_service_impl.h" | 5 #include "mojo/services/network/network_service_impl.h" |
| 6 | 6 |
| 7 #include "mojo/application/public/cpp/application_connection.h" |
| 7 #include "mojo/services/network/cookie_store_impl.h" | 8 #include "mojo/services/network/cookie_store_impl.h" |
| 8 #include "mojo/services/network/http_server_impl.h" | 9 #include "mojo/services/network/http_server_impl.h" |
| 9 #include "mojo/services/network/net_adapters.h" | 10 #include "mojo/services/network/net_adapters.h" |
| 10 #include "mojo/services/network/tcp_bound_socket_impl.h" | 11 #include "mojo/services/network/tcp_bound_socket_impl.h" |
| 11 #include "mojo/services/network/udp_socket_impl.h" | 12 #include "mojo/services/network/udp_socket_impl.h" |
| 12 #include "mojo/services/network/url_loader_impl.h" | 13 #include "mojo/services/network/url_loader_impl.h" |
| 13 #include "mojo/services/network/web_socket_impl.h" | 14 #include "mojo/services/network/web_socket_impl.h" |
| 14 #include "third_party/mojo/src/mojo/public/cpp/application/application_connectio
n.h" | |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 | 17 |
| 18 NetworkServiceImpl::NetworkServiceImpl(ApplicationConnection* connection, | 18 NetworkServiceImpl::NetworkServiceImpl(ApplicationConnection* connection, |
| 19 NetworkContext* context) | 19 NetworkContext* context) |
| 20 : context_(context), | 20 : context_(context), |
| 21 origin_(GURL(connection->GetRemoteApplicationURL()).GetOrigin()) { | 21 origin_(GURL(connection->GetRemoteApplicationURL()).GetOrigin()) { |
| 22 } | 22 } |
| 23 | 23 |
| 24 NetworkServiceImpl::~NetworkServiceImpl() { | 24 NetworkServiceImpl::~NetworkServiceImpl() { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 | 74 |
| 75 void NetworkServiceImpl::CreateHttpServer( | 75 void NetworkServiceImpl::CreateHttpServer( |
| 76 NetAddressPtr local_address, | 76 NetAddressPtr local_address, |
| 77 HttpServerDelegatePtr delegate, | 77 HttpServerDelegatePtr delegate, |
| 78 const CreateHttpServerCallback& callback) { | 78 const CreateHttpServerCallback& callback) { |
| 79 HttpServerImpl::Create(local_address.Pass(), delegate.Pass(), callback); | 79 HttpServerImpl::Create(local_address.Pass(), delegate.Pass(), callback); |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace mojo | 82 } // namespace mojo |
| OLD | NEW |