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

Side by Side Diff: mojo/services/network/network_service_impl.h

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/runner/native_runner_unittest.cc ('k') | mojo/services/network/network_service_impl.cc » ('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 #ifndef MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ 5 #ifndef MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_
6 #define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ 6 #define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "mojo/application/public/cpp/app_lifetime_helper.h" 9 #include "mojo/application/public/cpp/app_lifetime_helper.h"
10 #include "mojo/services/network/public/interfaces/network_service.mojom.h" 10 #include "mojo/services/network/public/interfaces/network_service.mojom.h"
(...skipping 22 matching lines...) Expand all
33 void CreateTCPConnectedSocket( 33 void CreateTCPConnectedSocket(
34 NetAddressPtr remote_address, 34 NetAddressPtr remote_address,
35 ScopedDataPipeConsumerHandle send_stream, 35 ScopedDataPipeConsumerHandle send_stream,
36 ScopedDataPipeProducerHandle receive_stream, 36 ScopedDataPipeProducerHandle receive_stream,
37 InterfaceRequest<TCPConnectedSocket> client_socket, 37 InterfaceRequest<TCPConnectedSocket> client_socket,
38 const CreateTCPConnectedSocketCallback& callback) override; 38 const CreateTCPConnectedSocketCallback& callback) override;
39 void CreateUDPSocket(InterfaceRequest<UDPSocket> socket) override; 39 void CreateUDPSocket(InterfaceRequest<UDPSocket> socket) override;
40 void CreateHttpServer(NetAddressPtr local_address, 40 void CreateHttpServer(NetAddressPtr local_address,
41 HttpServerDelegatePtr delegate, 41 HttpServerDelegatePtr delegate,
42 const CreateHttpServerCallback& callback) override; 42 const CreateHttpServerCallback& callback) override;
43 void GetMimeTypeFromFile(
44 const mojo::String& file_path,
45 const GetMimeTypeFromFileCallback& callback) override;
43 46
44 private: 47 private:
45 NetworkContext* context_; 48 NetworkContext* context_;
46 scoped_ptr<mojo::AppRefCount> app_refcount_; 49 scoped_ptr<mojo::AppRefCount> app_refcount_;
47 GURL origin_; 50 GURL origin_;
48 StrongBinding<NetworkService> binding_; 51 StrongBinding<NetworkService> binding_;
49 }; 52 };
50 53
51 } // namespace mojo 54 } // namespace mojo
52 55
53 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ 56 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/runner/native_runner_unittest.cc ('k') | mojo/services/network/network_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698