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

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

Issue 1229903003: Mandoline: Implement basic "process per site" support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
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 #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"
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" 11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace mojo { 14 namespace mojo {
15 class ApplicationConnection; 15 class ApplicationConnection;
16 class NetworkContext; 16 class NetworkContext;
17 17
18 class NetworkServiceImpl : public NetworkService { 18 class NetworkServiceImpl : public NetworkService {
19 public: 19 public:
20 NetworkServiceImpl(ApplicationConnection* connection, 20 NetworkServiceImpl(ApplicationConnection* connection,
21 NetworkContext* context, 21 NetworkContext* context,
22 scoped_ptr<mojo::AppRefCount> app_refcount, 22 scoped_ptr<mojo::AppRefCount> app_refcount,
23 InterfaceRequest<NetworkService> request); 23 InterfaceRequest<NetworkService> request);
24 ~NetworkServiceImpl() override; 24 ~NetworkServiceImpl() override;
25 25
26 // NetworkService methods: 26 // NetworkService methods:
27 void GetCookieStore(InterfaceRequest<CookieStore> store) override; 27 void GetCookieStore(InterfaceRequest<CookieStore> store) override;
28 void GetSiteForURL(const String& url,
29 const GetSiteForURLCallback& callback) override;
28 void CreateWebSocket(InterfaceRequest<WebSocket> socket) override; 30 void CreateWebSocket(InterfaceRequest<WebSocket> socket) override;
29 void CreateTCPBoundSocket( 31 void CreateTCPBoundSocket(
30 NetAddressPtr local_address, 32 NetAddressPtr local_address,
31 InterfaceRequest<TCPBoundSocket> bound_socket, 33 InterfaceRequest<TCPBoundSocket> bound_socket,
32 const CreateTCPBoundSocketCallback& callback) override; 34 const CreateTCPBoundSocketCallback& callback) override;
33 void CreateTCPConnectedSocket( 35 void CreateTCPConnectedSocket(
34 NetAddressPtr remote_address, 36 NetAddressPtr remote_address,
35 ScopedDataPipeConsumerHandle send_stream, 37 ScopedDataPipeConsumerHandle send_stream,
36 ScopedDataPipeProducerHandle receive_stream, 38 ScopedDataPipeProducerHandle receive_stream,
37 InterfaceRequest<TCPConnectedSocket> client_socket, 39 InterfaceRequest<TCPConnectedSocket> client_socket,
38 const CreateTCPConnectedSocketCallback& callback) override; 40 const CreateTCPConnectedSocketCallback& callback) override;
39 void CreateUDPSocket(InterfaceRequest<UDPSocket> socket) override; 41 void CreateUDPSocket(InterfaceRequest<UDPSocket> socket) override;
40 void CreateHttpServer(NetAddressPtr local_address, 42 void CreateHttpServer(NetAddressPtr local_address,
41 HttpServerDelegatePtr delegate, 43 HttpServerDelegatePtr delegate,
42 const CreateHttpServerCallback& callback) override; 44 const CreateHttpServerCallback& callback) override;
43 45
44 private: 46 private:
45 NetworkContext* context_; 47 NetworkContext* context_;
46 scoped_ptr<mojo::AppRefCount> app_refcount_; 48 scoped_ptr<mojo::AppRefCount> app_refcount_;
47 GURL origin_; 49 GURL origin_;
48 StrongBinding<NetworkService> binding_; 50 StrongBinding<NetworkService> binding_;
49 }; 51 };
50 52
51 } // namespace mojo 53 } // namespace mojo
52 54
53 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ 55 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/services/network/network_service_impl.cc » ('j') | mojo/shell/application_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698