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

Side by Side Diff: mojo/shell/package_manager/package_manager_impl.h

Issue 1563413002: Move fetchers into mojo/shell/fetcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/shell/package_manager/BUILD.gn ('k') | mojo/shell/package_manager/package_manager_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 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
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_
OLDNEW
« no previous file with comments | « mojo/shell/package_manager/BUILD.gn ('k') | mojo/shell/package_manager/package_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698