| Index: mojo/services/network/public/interfaces/network_service.mojom
|
| diff --git a/mojo/services/network/public/interfaces/network_service.mojom b/mojo/services/network/public/interfaces/network_service.mojom
|
| deleted file mode 100644
|
| index e0c68249153c9a8078c89b9fb23f00829a752d81..0000000000000000000000000000000000000000
|
| --- a/mojo/services/network/public/interfaces/network_service.mojom
|
| +++ /dev/null
|
| @@ -1,70 +0,0 @@
|
| -// Copyright 2014 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 mojo;
|
| -
|
| -import "network/public/interfaces/cookie_store.mojom";
|
| -import "network/public/interfaces/http_server.mojom";
|
| -import "network/public/interfaces/net_address.mojom";
|
| -import "network/public/interfaces/network_error.mojom";
|
| -import "network/public/interfaces/tcp_bound_socket.mojom";
|
| -import "network/public/interfaces/tcp_connected_socket.mojom";
|
| -import "network/public/interfaces/udp_socket.mojom";
|
| -import "network/public/interfaces/web_socket.mojom";
|
| -
|
| -// TODO(beng): consider if this should be further reduced to functionality-
|
| -// specific interfaces.
|
| -interface NetworkService {
|
| - // Creates a TCP socket bound to a given local address. This bound socket
|
| - // can be used for creating a client or server socket on that local address.
|
| - //
|
| - // If you want to create a client socket to connect to a server and are in
|
| - // the common case where you don't care about the local address it's bound
|
| - // to, use CreateTCPConnectedSocket.
|
| - //
|
| - // The local address can specify 0 for the port to specify that the OS should
|
| - // pick an available port for the given address, or it can pass 0 for the
|
| - // address and port for the OS to pick both the local address and port. In
|
| - // all success cases, the resulting local address will be passed to the
|
| - // callback as bound_to.
|
| - CreateTCPBoundSocket(NetAddress? local_address,
|
| - TCPBoundSocket& bound_socket)
|
| - => (NetworkError result, NetAddress? bound_to);
|
| -
|
| - // Creates a client socket connected to the given remote address. A local
|
| - // address and port will be allocated for the connection and passed to the
|
| - // callback on success.
|
| - //
|
| - // If you want control over the local address and port, instead use
|
| - // CreateTCPBoundSocket.
|
| - //
|
| - // IMPORTANT: This does not work yet! We need to add a new parameter to
|
| - // indicate the protocol type (IPv4 or IPv6) actually be able to create the
|
| - // right type of socket. We also need to figure out how the client is supposed
|
| - // to decide between IPv4 and IPv6 on a given system.
|
| - CreateTCPConnectedSocket(NetAddress remote_address,
|
| - handle<data_pipe_consumer> send_stream,
|
| - handle<data_pipe_producer> receive_stream,
|
| - TCPConnectedSocket& client_socket)
|
| - => (NetworkError result,
|
| - NetAddress? local_address);
|
| -
|
| - CreateUDPSocket(UDPSocket& socket);
|
| -
|
| - // Starts an HTTP server running on the given local address. The delegate will
|
| - // be notified with incoming connections.
|
| - //
|
| - // The local address can specify 0 for the port to specify that the OS should
|
| - // pick an available port for the given address, or it can pass 0 for the
|
| - // address and port for the OS to pick both the local address and port. In
|
| - // all success cases, the resulting local address will be passed to the
|
| - // callback as bound_to.
|
| - CreateHttpServer(NetAddress local_address,
|
| - HttpServerDelegate delegate)
|
| - => (NetworkError result,
|
| - NetAddress? bound_to);
|
| -
|
| - // Get the mime type (if any) that is associated with the given file.
|
| - GetMimeTypeFromFile(string file_path) => (string mime_type);
|
| -};
|
|
|