| 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 #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/shell/application_loader.h" | 19 #include "mojo/shell/application_loader.h" |
| 20 #include "mojo/shell/fetcher.h" | 20 #include "mojo/shell/fetcher.h" |
| 21 #include "mojo/shell/identity.h" | 21 #include "mojo/shell/identity.h" |
| 22 #include "mojo/shell/native_runner.h" | 22 #include "mojo/shell/native_runner.h" |
| 23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 class FilePath; | 26 class FilePath; |
| 27 class SequencedWorkerPool; | 27 class SequencedWorkerPool; |
| 28 } | 28 } |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 scoped_ptr<ApplicationLoader> default_loader_; | 235 scoped_ptr<ApplicationLoader> default_loader_; |
| 236 scoped_ptr<NativeRunnerFactory> native_runner_factory_; | 236 scoped_ptr<NativeRunnerFactory> native_runner_factory_; |
| 237 | 237 |
| 238 ApplicationPackagedAlias application_package_alias_; | 238 ApplicationPackagedAlias application_package_alias_; |
| 239 IdentityToShellImplMap identity_to_shell_impl_; | 239 IdentityToShellImplMap identity_to_shell_impl_; |
| 240 URLToContentHandlerMap url_to_content_handler_; | 240 URLToContentHandlerMap url_to_content_handler_; |
| 241 // Note: The keys are URLs after mapping and resolving. | 241 // Note: The keys are URLs after mapping and resolving. |
| 242 URLToNativeOptionsMap url_to_native_options_; | 242 URLToNativeOptionsMap url_to_native_options_; |
| 243 | 243 |
| 244 base::SequencedWorkerPool* blocking_pool_; | 244 base::SequencedWorkerPool* blocking_pool_; |
| 245 NetworkServicePtr network_service_; | 245 URLLoaderFactoryPtr url_loader_factory_; |
| 246 MimeTypeToURLMap mime_type_to_url_; | 246 MimeTypeToURLMap mime_type_to_url_; |
| 247 ScopedVector<NativeRunner> native_runners_; | 247 ScopedVector<NativeRunner> native_runners_; |
| 248 bool disable_cache_; | 248 bool disable_cache_; |
| 249 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_; | 249 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_; |
| 250 | 250 |
| 251 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); | 251 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); |
| 252 }; | 252 }; |
| 253 | 253 |
| 254 } // namespace shell | 254 } // namespace shell |
| 255 } // namespace mojo | 255 } // namespace mojo |
| 256 | 256 |
| 257 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ | 257 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ |
| OLD | NEW |