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

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

Issue 1274433003: Add GetMimeTypeFromFile to Mojo's network service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix string usage and NativeApplicationLoaderTest. Created 5 years, 4 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
« no previous file with comments | « mojo/services/network/network_service_impl.cc ('k') | mojo/shell/application_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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 };
OLDNEW
« no previous file with comments | « mojo/services/network/network_service_impl.cc ('k') | mojo/shell/application_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698