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

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

Issue 1290323002: HTMLViewer no longer connects to NetworkService interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 4 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(beng): consider if this should be further reduced to functionality-
17 // high-level origin-build requests like WebSockets and HTTP, and the other for 17 // specific interfaces.
18 // non-origin-bound low-level stuff like DNS, UDP, and TCP.
19 interface NetworkService { 18 interface NetworkService {
20 GetCookieStore(CookieStore& cookie_store);
21
22 CreateWebSocket(WebSocket& socket);
23
24 // Creates a TCP socket bound to a given local address. This bound socket 19 // 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. 20 // can be used for creating a client or server socket on that local address.
26 // 21 //
27 // If you want to create a client socket to connect to a server and are in 22 // 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 23 // the common case where you don't care about the local address it's bound
29 // to, use CreateTCPConnectedSocket. 24 // to, use CreateTCPConnectedSocket.
30 // 25 //
31 // The local address can specify 0 for the port to specify that the OS should 26 // The local address can specify 0 for the port to specify that the OS should
32 // pick an available port for the given address, or it can pass 0 for the 27 // pick an available port for the given address, or it can pass 0 for the
33 // address and port for the OS to pick both the local address and port. In 28 // address and port for the OS to pick both the local address and port. In
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // all success cases, the resulting local address will be passed to the 61 // all success cases, the resulting local address will be passed to the
67 // callback as bound_to. 62 // callback as bound_to.
68 CreateHttpServer(NetAddress local_address, 63 CreateHttpServer(NetAddress local_address,
69 HttpServerDelegate delegate) 64 HttpServerDelegate delegate)
70 => (NetworkError result, 65 => (NetworkError result,
71 NetAddress? bound_to); 66 NetAddress? bound_to);
72 67
73 // Get the mime type (if any) that is associated with the given file. 68 // Get the mime type (if any) that is associated with the given file.
74 GetMimeTypeFromFile(string file_path) => (string mime_type); 69 GetMimeTypeFromFile(string file_path) => (string mime_type);
75 }; 70 };
OLDNEW
« no previous file with comments | « mojo/services/network/public/interfaces/BUILD.gn ('k') | mojo/services/network/public/interfaces/web_socket_factory.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698