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

Side by Side Diff: mojo/services/network/network_service_impl.cc

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 10 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 | « mojo/services/network/network_service_impl.h ('k') | mojo/services/network/public/DEPS » ('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 #include "mojo/services/network/network_service_impl.h" 5 #include "mojo/services/network/network_service_impl.h"
6 6
7 #include "mojo/public/cpp/application/application_connection.h"
8 #include "mojo/services/network/cookie_store_impl.h" 7 #include "mojo/services/network/cookie_store_impl.h"
9 #include "mojo/services/network/net_adapters.h" 8 #include "mojo/services/network/net_adapters.h"
10 #include "mojo/services/network/tcp_bound_socket_impl.h" 9 #include "mojo/services/network/tcp_bound_socket_impl.h"
11 #include "mojo/services/network/udp_socket_impl.h" 10 #include "mojo/services/network/udp_socket_impl.h"
12 #include "mojo/services/network/url_loader_impl.h" 11 #include "mojo/services/network/url_loader_impl.h"
13 #include "mojo/services/network/web_socket_impl.h" 12 #include "mojo/services/network/web_socket_impl.h"
13 #include "mojo/public/cpp/application/application_connection.h"
14 14
15 namespace mojo { 15 namespace mojo {
16 16
17 NetworkServiceImpl::NetworkServiceImpl(ApplicationConnection* connection, 17 NetworkServiceImpl::NetworkServiceImpl(ApplicationConnection* connection,
18 NetworkContext* context) 18 NetworkContext* context)
19 : context_(context), 19 : context_(context),
20 origin_(GURL(connection->GetRemoteApplicationURL()).GetOrigin()) { 20 origin_(GURL(connection->GetRemoteApplicationURL()).GetOrigin()) {
21 } 21 }
22 22
23 NetworkServiceImpl::~NetworkServiceImpl() { 23 NetworkServiceImpl::~NetworkServiceImpl() {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // so we can create the right one (i.e. to pass to TCPSocket::Open) before 64 // so we can create the right one (i.e. to pass to TCPSocket::Open) before
65 // doing the connect. 65 // doing the connect.
66 callback.Run(MakeNetworkError(net::ERR_NOT_IMPLEMENTED), NetAddressPtr()); 66 callback.Run(MakeNetworkError(net::ERR_NOT_IMPLEMENTED), NetAddressPtr());
67 } 67 }
68 68
69 void NetworkServiceImpl::CreateUDPSocket(InterfaceRequest<UDPSocket> socket) { 69 void NetworkServiceImpl::CreateUDPSocket(InterfaceRequest<UDPSocket> socket) {
70 BindToRequest(new UDPSocketImpl(), &socket); 70 BindToRequest(new UDPSocketImpl(), &socket);
71 } 71 }
72 72
73 } // namespace mojo 73 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/network/network_service_impl.h ('k') | mojo/services/network/public/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698