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

Side by Side Diff: mojo/services/http_server/public/interfaces/http_server_factory.mojom

Issue 1012773008: Make http_server part of the sdk. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Unecessary public_dep Created 5 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 http_server; 5 module http_server;
6 6
7 import "mojo/services/network/public/interfaces/net_address.mojom"; 7 import "mojo/services/network/public/interfaces/net_address.mojom";
8 import "services/http_server/public/http_server.mojom"; 8 import "mojo/services/http_server/public/interfaces/http_server.mojom";
9 9
10 interface HttpServerFactory { 10 interface HttpServerFactory {
11 // Creates an http server running on the specified local network address. If 11 // Creates an http server running on the specified local network address. If
12 // |local_address| is null, it will take the default value of 0.0.0.0 at a 12 // |local_address| is null, it will take the default value of 0.0.0.0 at a
13 // system-allocated port. 13 // system-allocated port.
14 // 14 //
15 // Note that the port value of 0 means that the operating system will pick 15 // Note that the port value of 0 means that the operating system will pick
16 // one of available ports. You can use HttpServer::GetPort() to retrieve the 16 // one of available ports. You can use HttpServer::GetPort() to retrieve the
17 // allocated port. 17 // allocated port.
18 // 18 //
19 // Only one backing server will be created for each local network address. It 19 // Only one backing server will be created for each local network address. It
20 // will be shared among clients, if more than one client requests a server 20 // will be shared among clients, if more than one client requests a server
21 // running on a particular network address. 21 // running on a particular network address.
22 // 22 //
23 // TODO(ppi): would it be better to create a server only for the first caller 23 // TODO(ppi): would it be better to create a server only for the first caller
24 // and require the access to it to be explicitly shared by the party that 24 // and require the access to it to be explicitly shared by the party that
25 // requests it first? 25 // requests it first?
26 CreateHttpServer(HttpServer& server_request, mojo.NetAddress? local_address); 26 CreateHttpServer(HttpServer& server_request, mojo.NetAddress? local_address);
27 }; 27 };
OLDNEW
« no previous file with comments | « mojo/services/http_server/public/interfaces/http_server.mojom ('k') | mojo/tools/roll/rev_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698