OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SHELL_PACKAGE_MANAGER_PACKAGE_MANAGER_IMPL_H_ | 5 #ifndef MOJO_SHELL_PACKAGE_MANAGER_PACKAGE_MANAGER_IMPL_H_ |
6 #define MOJO_SHELL_PACKAGE_MANAGER_PACKAGE_MANAGER_IMPL_H_ | 6 #define MOJO_SHELL_PACKAGE_MANAGER_PACKAGE_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "mojo/fetcher/url_resolver.h" | |
13 #include "mojo/services/network/public/interfaces/network_service.mojom.h" | 12 #include "mojo/services/network/public/interfaces/network_service.mojom.h" |
14 #include "mojo/services/network/public/interfaces/url_loader_factory.mojom.h" | 13 #include "mojo/services/network/public/interfaces/url_loader_factory.mojom.h" |
| 14 #include "mojo/shell/fetcher/url_resolver.h" |
15 #include "mojo/shell/package_manager.h" | 15 #include "mojo/shell/package_manager.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class TaskRunner; | 18 class TaskRunner; |
19 } | 19 } |
20 | 20 |
21 namespace mojo { | 21 namespace mojo { |
22 class ContentHandler; | 22 class ContentHandler; |
23 namespace shell { | 23 namespace shell { |
24 class ContentHandlerConnection; | 24 class ContentHandlerConnection; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // Returns a running ContentHandler for |content_handler_identity|, if there | 83 // Returns a running ContentHandler for |content_handler_identity|, if there |
84 // is not one running one is started for |source_identity|. | 84 // is not one running one is started for |source_identity|. |
85 ContentHandlerConnection* GetContentHandler( | 85 ContentHandlerConnection* GetContentHandler( |
86 const Identity& content_handler_identity, | 86 const Identity& content_handler_identity, |
87 const Identity& source_identity); | 87 const Identity& source_identity); |
88 | 88 |
89 void OnContentHandlerConnectionClosed( | 89 void OnContentHandlerConnectionClosed( |
90 ContentHandlerConnection* content_handler); | 90 ContentHandlerConnection* content_handler); |
91 | 91 |
92 ApplicationManager* application_manager_; | 92 ApplicationManager* application_manager_; |
93 scoped_ptr<fetcher::URLResolver> url_resolver_; | 93 scoped_ptr<URLResolver> url_resolver_; |
94 const bool disable_cache_; | 94 const bool disable_cache_; |
95 NetworkServicePtr network_service_; | 95 NetworkServicePtr network_service_; |
96 URLLoaderFactoryPtr url_loader_factory_; | 96 URLLoaderFactoryPtr url_loader_factory_; |
97 ApplicationPackagedAlias application_package_alias_; | 97 ApplicationPackagedAlias application_package_alias_; |
98 MimeTypeToURLMap mime_type_to_url_; | 98 MimeTypeToURLMap mime_type_to_url_; |
99 IdentityToContentHandlerMap identity_to_content_handler_; | 99 IdentityToContentHandlerMap identity_to_content_handler_; |
100 // Counter used to assign ids to content handlers. | 100 // Counter used to assign ids to content handlers. |
101 uint32_t content_handler_id_counter_; | 101 uint32_t content_handler_id_counter_; |
102 base::TaskRunner* task_runner_; | 102 base::TaskRunner* task_runner_; |
103 base::FilePath shell_file_root_; | 103 base::FilePath shell_file_root_; |
104 | 104 |
105 DISALLOW_COPY_AND_ASSIGN(PackageManagerImpl); | 105 DISALLOW_COPY_AND_ASSIGN(PackageManagerImpl); |
106 }; | 106 }; |
107 | 107 |
108 } // namespace shell | 108 } // namespace shell |
109 } // namespace mojo | 109 } // namespace mojo |
110 | 110 |
111 #endif // MOJO_SHELL_PACKAGE_MANAGER_PACKAGE_MANAGER_IMPL_H_ | 111 #endif // MOJO_SHELL_PACKAGE_MANAGER_PACKAGE_MANAGER_IMPL_H_ |
OLD | NEW |