| OLD | NEW |
| 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 "network/public/interfaces/cookie_store.mojom"; | 7 import "network/public/interfaces/cookie_store.mojom"; |
| 8 import "network/public/interfaces/http_server.mojom"; | 8 import "network/public/interfaces/http_server.mojom"; |
| 9 import "network/public/interfaces/net_address.mojom"; | 9 import "network/public/interfaces/net_address.mojom"; |
| 10 import "network/public/interfaces/network_error.mojom"; | 10 import "network/public/interfaces/network_error.mojom"; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // | 62 // |
| 63 // The local address can specify 0 for the port to specify that the OS should | 63 // The local address can specify 0 for the port to specify that the OS should |
| 64 // pick an available port for the given address, or it can pass 0 for the | 64 // pick an available port for the given address, or it can pass 0 for the |
| 65 // address and port for the OS to pick both the local address and port. In | 65 // address and port for the OS to pick both the local address and port. In |
| 66 // all success cases, the resulting local address will be passed to the | 66 // all success cases, the resulting local address will be passed to the |
| 67 // callback as bound_to. | 67 // callback as bound_to. |
| 68 CreateHttpServer(NetAddress local_address, | 68 CreateHttpServer(NetAddress local_address, |
| 69 HttpServerDelegate delegate) | 69 HttpServerDelegate delegate) |
| 70 => (NetworkError result, | 70 => (NetworkError result, |
| 71 NetAddress? bound_to); | 71 NetAddress? bound_to); |
| 72 |
| 73 // Get the mime type (if any) that is associated with the given file. |
| 74 GetMimeTypeFromFile(string file_path) => (string mime_type); |
| 72 }; | 75 }; |
| OLD | NEW |