Chromium Code Reviews| 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/public/cpp/bindings/interface_request.h" | 14 #include "mojo/public/cpp/bindings/interface_request.h" |
| 15 #include "mojo/public/interfaces/application/application.mojom.h" | 15 #include "mojo/public/interfaces/application/application.mojom.h" |
| 16 #include "mojo/public/interfaces/application/service_provider.mojom.h" | 16 #include "mojo/public/interfaces/application/service_provider.mojom.h" |
| 17 #include "mojo/services/authenticating_url_loader/public/interfaces/authenticati ng_url_loader_factory.mojom.h" | 17 #include "mojo/services/authenticating_url_loader/public/interfaces/authenticati ng_url_loader_factory.mojom.h" |
| 18 #include "mojo/services/network/public/interfaces/network_service.mojom.h" | |
| 18 #include "mojo/services/url_response_disk_cache/public/interfaces/url_response_d isk_cache.mojom.h" | 19 #include "mojo/services/url_response_disk_cache/public/interfaces/url_response_d isk_cache.mojom.h" |
| 19 #include "shell/application_manager/application_loader.h" | 20 #include "shell/application_manager/application_loader.h" |
| 20 #include "shell/application_manager/identity.h" | 21 #include "shell/application_manager/identity.h" |
| 21 #include "shell/application_manager/native_runner.h" | 22 #include "shell/application_manager/native_runner.h" |
| 22 #include "shell/native_application_support.h" | 23 #include "shell/native_application_support.h" |
| 23 #include "url/gurl.h" | 24 #include "url/gurl.h" |
| 24 | 25 |
| 25 namespace base { | 26 namespace base { |
| 26 class FilePath; | 27 class FilePath; |
| 27 class SequencedWorkerPool; | 28 class SequencedWorkerPool; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 233 scoped_ptr<NativeRunnerFactory> native_runner_factory_; | 234 scoped_ptr<NativeRunnerFactory> native_runner_factory_; |
| 234 | 235 |
| 235 IdentityToShellImplMap identity_to_shell_impl_; | 236 IdentityToShellImplMap identity_to_shell_impl_; |
| 236 URLToContentHandlerMap url_to_content_handler_; | 237 URLToContentHandlerMap url_to_content_handler_; |
| 237 URLToArgsMap url_to_args_; | 238 URLToArgsMap url_to_args_; |
| 238 // Note: The keys are URLs after mapping and resolving. | 239 // Note: The keys are URLs after mapping and resolving. |
| 239 URLToNativeOptionsMap url_to_native_options_; | 240 URLToNativeOptionsMap url_to_native_options_; |
| 240 | 241 |
| 241 base::SequencedWorkerPool* blocking_pool_; | 242 base::SequencedWorkerPool* blocking_pool_; |
| 242 mojo::URLResponseDiskCachePtr url_response_disk_cache_; | 243 mojo::URLResponseDiskCachePtr url_response_disk_cache_; |
| 244 mojo::NetworkServicePtr network_service_; | |
| 243 mojo::AuthenticatingURLLoaderFactoryPtr url_loader_factory_; | 245 mojo::AuthenticatingURLLoaderFactoryPtr url_loader_factory_; |
|
qsr
2015/06/05 10:54:55
I don't think you need to keep this as a member. Y
blundell
2015/06/05 13:24:17
Done.
| |
| 244 MimeTypeToURLMap mime_type_to_url_; | 246 MimeTypeToURLMap mime_type_to_url_; |
| 245 ScopedVector<NativeRunner> native_runners_; | 247 ScopedVector<NativeRunner> native_runners_; |
| 246 bool initialized_authentication_service_; | 248 bool initialized_authentication_service_; |
| 247 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_; | 249 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_; |
| 248 | 250 |
| 249 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); | 251 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); |
| 250 }; | 252 }; |
| 251 | 253 |
| 252 } // namespace shell | 254 } // namespace shell |
| 253 | 255 |
| 254 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ | 256 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ |
| OLD | NEW |