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

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

Issue 1153933003: Update network service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Final version Created 5 years, 6 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 "mojo/public/interfaces/network/network_error.mojom"; 7 import "mojo/public/interfaces/network/network_error.mojom";
8 import "network/public/interfaces/cookie_store.mojom"; 8 import "network/public/interfaces/cookie_store.mojom";
9 import "network/public/interfaces/http_server.mojom"; 9 import "network/public/interfaces/http_server.mojom";
10 import "network/public/interfaces/net_address.mojom"; 10 import "network/public/interfaces/net_address.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/url_loader.mojom"; 14 import "network/public/interfaces/url_loader.mojom";
15 import "network/public/interfaces/url_loader_interceptor.mojom";
15 import "network/public/interfaces/web_socket.mojom"; 16 import "network/public/interfaces/web_socket.mojom";
16 17
17 // TODO Darin suggests that this should probably be two classes. One for 18 // TODO Darin suggests that this should probably be two classes. One for
18 // high-level origin-build requests like WebSockets and HTTP, and the other for 19 // high-level origin-build requests like WebSockets and HTTP, and the other for
19 // non-origin-bound low-level stuff like DNS, UDP, and TCP. 20 // non-origin-bound low-level stuff like DNS, UDP, and TCP.
20 interface NetworkService { 21 interface NetworkService {
21 CreateURLLoader(URLLoader& loader); 22 CreateURLLoader(URLLoader& loader);
22 23
23 GetCookieStore(CookieStore& cookie_store); 24 GetCookieStore(CookieStore& cookie_store);
24 25
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // 66 //
66 // The local address can specify 0 for the port to specify that the OS should 67 // The local address can specify 0 for the port to specify that the OS should
67 // pick an available port for the given address, or it can pass 0 for the 68 // pick an available port for the given address, or it can pass 0 for the
68 // address and port for the OS to pick both the local address and port. In 69 // address and port for the OS to pick both the local address and port. In
69 // all success cases, the resulting local address will be passed to the 70 // all success cases, the resulting local address will be passed to the
70 // callback as bound_to. 71 // callback as bound_to.
71 CreateHttpServer(NetAddress local_address, 72 CreateHttpServer(NetAddress local_address,
72 HttpServerDelegate delegate) 73 HttpServerDelegate delegate)
73 => (NetworkError result, 74 => (NetworkError result,
74 NetAddress? bound_to); 75 NetAddress? bound_to);
76
77 // Register a new url loader interceptor that will be used on any new
78 // URLLoader. Interceptor are chained. The last registed interceptor will
79 // received the requests first and the responses last.
80 RegisterURLLoaderInterceptor(URLLoaderInterceptorFactory factory);
75 }; 81 };
OLDNEW
« no previous file with comments | « mojo/services/network/public/interfaces/BUILD.gn ('k') | mojo/services/network/public/interfaces/url_loader_interceptor.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698