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

Unified Diff: third_party/mojo_services/src/http_server/public/interfaces/http_server_factory.mojom

Issue 1019173002: Update mojo sdk to rev 7214b7ec7d27563b2666afad86cf1c5895c56c18 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep permission service alive if embedder drops requests 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 side-by-side diff with in-line comments
Download patch
Index: third_party/mojo_services/src/http_server/public/interfaces/http_server_factory.mojom
diff --git a/third_party/mojo_services/src/http_server/public/interfaces/http_server_factory.mojom b/third_party/mojo_services/src/http_server/public/interfaces/http_server_factory.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..501c32eee44694ec7c781955aa6e4c0b50cbba44
--- /dev/null
+++ b/third_party/mojo_services/src/http_server/public/interfaces/http_server_factory.mojom
@@ -0,0 +1,27 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module http_server;
+
+import "http_server/public/interfaces/http_server.mojom";
+import "network/public/interfaces/net_address.mojom";
+
+interface HttpServerFactory {
+ // Creates an http server running on the specified local network address. If
+ // |local_address| is null, it will take the default value of 0.0.0.0 at a
+ // system-allocated port.
+ //
+ // Note that the port value of 0 means that the operating system will pick
+ // one of available ports. You can use HttpServer::GetPort() to retrieve the
+ // allocated port.
+ //
+ // Only one backing server will be created for each local network address. It
+ // will be shared among clients, if more than one client requests a server
+ // running on a particular network address.
+ //
+ // TODO(ppi): would it be better to create a server only for the first caller
+ // and require the access to it to be explicitly shared by the party that
+ // requests it first?
+ CreateHttpServer(HttpServer& server_request, mojo.NetAddress? local_address);
+};

Powered by Google App Engine
This is Rietveld 408576698