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

Side by Side Diff: mojo/shell/application_manager.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
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 SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ 5 #ifndef SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
6 #define SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ 6 #define SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/scoped_vector.h" 12 #include "base/memory/scoped_vector.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "mojo/application/public/interfaces/application.mojom.h" 14 #include "mojo/application/public/interfaces/application.mojom.h"
15 #include "mojo/application/public/interfaces/service_provider.mojom.h" 15 #include "mojo/application/public/interfaces/service_provider.mojom.h"
16 #include "mojo/public/cpp/bindings/interface_ptr_info.h" 16 #include "mojo/public/cpp/bindings/interface_ptr_info.h"
17 #include "mojo/public/cpp/bindings/interface_request.h" 17 #include "mojo/public/cpp/bindings/interface_request.h"
18 #include "mojo/services/network/public/interfaces/network_service.mojom.h"
18 #include "mojo/services/network/public/interfaces/url_loader_factory.mojom.h" 19 #include "mojo/services/network/public/interfaces/url_loader_factory.mojom.h"
19 #include "mojo/services/updater/updater.mojom.h" 20 #include "mojo/services/updater/updater.mojom.h"
20 #include "mojo/shell/application_loader.h" 21 #include "mojo/shell/application_loader.h"
21 #include "mojo/shell/capability_filter.h" 22 #include "mojo/shell/capability_filter.h"
22 #include "mojo/shell/fetcher.h" 23 #include "mojo/shell/fetcher.h"
23 #include "mojo/shell/identity.h" 24 #include "mojo/shell/identity.h"
24 #include "mojo/shell/native_runner.h" 25 #include "mojo/shell/native_runner.h"
25 #include "url/gurl.h" 26 #include "url/gurl.h"
26 27
27 namespace base { 28 namespace base {
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 scoped_ptr<ApplicationLoader> default_loader_; 244 scoped_ptr<ApplicationLoader> default_loader_;
244 scoped_ptr<NativeRunnerFactory> native_runner_factory_; 245 scoped_ptr<NativeRunnerFactory> native_runner_factory_;
245 246
246 ApplicationPackagedAlias application_package_alias_; 247 ApplicationPackagedAlias application_package_alias_;
247 IdentityToApplicationInstanceMap identity_to_instance_; 248 IdentityToApplicationInstanceMap identity_to_instance_;
248 URLToContentHandlerMap url_to_content_handler_; 249 URLToContentHandlerMap url_to_content_handler_;
249 // Note: The keys are URLs after mapping and resolving. 250 // Note: The keys are URLs after mapping and resolving.
250 URLToNativeOptionsMap url_to_native_options_; 251 URLToNativeOptionsMap url_to_native_options_;
251 252
252 base::SequencedWorkerPool* blocking_pool_; 253 base::SequencedWorkerPool* blocking_pool_;
254 NetworkServicePtr network_service_;
253 URLLoaderFactoryPtr url_loader_factory_; 255 URLLoaderFactoryPtr url_loader_factory_;
254 updater::UpdaterPtr updater_; 256 updater::UpdaterPtr updater_;
255 MimeTypeToURLMap mime_type_to_url_; 257 MimeTypeToURLMap mime_type_to_url_;
256 ScopedVector<NativeRunner> native_runners_; 258 ScopedVector<NativeRunner> native_runners_;
257 bool disable_cache_; 259 bool disable_cache_;
258 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_; 260 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_;
259 261
260 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); 262 DISALLOW_COPY_AND_ASSIGN(ApplicationManager);
261 }; 263 };
262 264
263 } // namespace shell 265 } // namespace shell
264 } // namespace mojo 266 } // namespace mojo
265 267
266 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ 268 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
OLDNEW
« no previous file with comments | « mojo/services/network/public/interfaces/network_service.mojom ('k') | mojo/shell/application_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698