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

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

Issue 1454113003: Require an explicit ServiceName annotation for interfaces in C++. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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 [DartPackage="mojo_services"] 5 [DartPackage="mojo_services"]
6 module mojo; 6 module mojo;
7 7
8 import "mojo/public/interfaces/network/network_error.mojom"; 8 import "mojo/public/interfaces/network/network_error.mojom";
9 import "network/interfaces/cookie_store.mojom"; 9 import "network/interfaces/cookie_store.mojom";
10 import "network/interfaces/host_resolver.mojom"; 10 import "network/interfaces/host_resolver.mojom";
11 import "network/interfaces/http_server.mojom"; 11 import "network/interfaces/http_server.mojom";
12 import "network/interfaces/net_address.mojom"; 12 import "network/interfaces/net_address.mojom";
13 import "network/interfaces/tcp_bound_socket.mojom"; 13 import "network/interfaces/tcp_bound_socket.mojom";
14 import "network/interfaces/tcp_connected_socket.mojom"; 14 import "network/interfaces/tcp_connected_socket.mojom";
15 import "network/interfaces/udp_socket.mojom"; 15 import "network/interfaces/udp_socket.mojom";
16 import "network/interfaces/url_loader.mojom"; 16 import "network/interfaces/url_loader.mojom";
17 import "network/interfaces/url_loader_interceptor.mojom"; 17 import "network/interfaces/url_loader_interceptor.mojom";
18 import "network/interfaces/web_socket.mojom"; 18 import "network/interfaces/web_socket.mojom";
19 19
20 // TODO Darin suggests that this should probably be two classes. One for 20 // TODO Darin suggests that this should probably be two classes. One for
21 // high-level origin-build requests like WebSockets and HTTP, and the other for 21 // high-level origin-build requests like WebSockets and HTTP, and the other for
22 // non-origin-bound low-level stuff like DNS, UDP, and TCP. 22 // non-origin-bound low-level stuff like DNS, UDP, and TCP.
23 [ServiceName="mojo::NetworkService"]
23 interface NetworkService { 24 interface NetworkService {
24 CreateURLLoader(URLLoader& loader); 25 CreateURLLoader(URLLoader& loader);
25 26
26 GetCookieStore(CookieStore& cookie_store); 27 GetCookieStore(CookieStore& cookie_store);
27 28
28 CreateWebSocket(WebSocket& socket); 29 CreateWebSocket(WebSocket& socket);
29 30
30 // Creates a TCP socket bound to a given local address. This bound socket 31 // Creates a TCP socket bound to a given local address. This bound socket
31 // can be used for creating a client or server socket on that local address. 32 // can be used for creating a client or server socket on that local address.
32 // 33 //
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 79
79 // Register a new url loader interceptor that will be used on any new 80 // Register a new url loader interceptor that will be used on any new
80 // URLLoader created with the current connection to the network service. 81 // URLLoader created with the current connection to the network service.
81 // Interceptors are chained. The last registered interceptor will received the 82 // Interceptors are chained. The last registered interceptor will received the
82 // requests first and the responses last. 83 // requests first and the responses last.
83 RegisterURLLoaderInterceptor(URLLoaderInterceptorFactory factory); 84 RegisterURLLoaderInterceptor(URLLoaderInterceptorFactory factory);
84 85
85 // Create a HostResolver that can be used to do ip <-> host lookups. 86 // Create a HostResolver that can be used to do ip <-> host lookups.
86 CreateHostResolver(HostResolver& host_resolver); 87 CreateHostResolver(HostResolver& host_resolver);
87 }; 88 };
OLDNEW
« no previous file with comments | « mojo/services/navigation/interfaces/navigation.mojom ('k') | mojo/services/nfc/interfaces/nfc.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698