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

Side by Side Diff: mojo/services/network/public/interfaces/network_service.mojom

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 module mojo; 5 module mojo;
6 6
7 import "network/public/interfaces/cookie_store.mojom"; 7 import "network/public/interfaces/cookie_store.mojom";
8 import "network/public/interfaces/http_server.mojom"; 8 import "network/public/interfaces/http_server.mojom";
9 import "network/public/interfaces/net_address.mojom"; 9 import "network/public/interfaces/net_address.mojom";
10 import "network/public/interfaces/network_error.mojom"; 10 import "network/public/interfaces/network_error.mojom";
11 import "network/public/interfaces/tcp_bound_socket.mojom"; 11 import "network/public/interfaces/tcp_bound_socket.mojom";
12 import "network/public/interfaces/tcp_connected_socket.mojom"; 12 import "network/public/interfaces/tcp_connected_socket.mojom";
13 import "network/public/interfaces/udp_socket.mojom"; 13 import "network/public/interfaces/udp_socket.mojom";
14 import "network/public/interfaces/web_socket.mojom"; 14 import "network/public/interfaces/web_socket.mojom";
15 15
16 // TODO Darin suggests that this should probably be two classes. One for 16 // TODO Darin suggests that this should probably be two classes. One for
17 // high-level origin-build requests like WebSockets and HTTP, and the other for 17 // high-level origin-build requests like WebSockets and HTTP, and the other for
18 // non-origin-bound low-level stuff like DNS, UDP, and TCP. 18 // non-origin-bound low-level stuff like DNS, UDP, and TCP.
19 interface NetworkService { 19 interface NetworkService {
20 GetCookieStore(CookieStore& cookie_store); 20 GetCookieStore(CookieStore& cookie_store);
21 21
22 GetSiteForURL(string url) => (string site);
23
22 CreateWebSocket(WebSocket& socket); 24 CreateWebSocket(WebSocket& socket);
23 25
24 // Creates a TCP socket bound to a given local address. This bound socket 26 // Creates a TCP socket bound to a given local address. This bound socket
25 // can be used for creating a client or server socket on that local address. 27 // can be used for creating a client or server socket on that local address.
26 // 28 //
27 // If you want to create a client socket to connect to a server and are in 29 // If you want to create a client socket to connect to a server and are in
28 // the common case where you don't care about the local address it's bound 30 // the common case where you don't care about the local address it's bound
29 // to, use CreateTCPConnectedSocket. 31 // to, use CreateTCPConnectedSocket.
30 // 32 //
31 // The local address can specify 0 for the port to specify that the OS should 33 // The local address can specify 0 for the port to specify that the OS should
(...skipping 30 matching lines...) Expand all
62 // 64 //
63 // The local address can specify 0 for the port to specify that the OS should 65 // The local address can specify 0 for the port to specify that the OS should
64 // pick an available port for the given address, or it can pass 0 for the 66 // pick an available port for the given address, or it can pass 0 for the
65 // address and port for the OS to pick both the local address and port. In 67 // address and port for the OS to pick both the local address and port. In
66 // all success cases, the resulting local address will be passed to the 68 // all success cases, the resulting local address will be passed to the
67 // callback as bound_to. 69 // callback as bound_to.
68 CreateHttpServer(NetAddress local_address, 70 CreateHttpServer(NetAddress local_address,
69 HttpServerDelegate delegate) 71 HttpServerDelegate delegate)
70 => (NetworkError result, 72 => (NetworkError result,
71 NetAddress? bound_to); 73 NetAddress? bound_to);
74
75
72 }; 76 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698