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

Side by Side Diff: mojo/services/package_manager/loader.h

Issue 1743473002: Change Mojo URLs to structured names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@18collapse
Patch Set: . Created 4 years, 9 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/services/package_manager/BUILD.gn ('k') | mojo/services/package_manager/loader.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SERVICES_PACKAGE_MANAGER_LOADER_H_ 5 #ifndef MOJO_SERVICES_PACKAGE_MANAGER_LOADER_H_
6 #define MOJO_SERVICES_PACKAGE_MANAGER_LOADER_H_ 6 #define MOJO_SERVICES_PACKAGE_MANAGER_LOADER_H_
7 7
8 #include "mojo/shell/application_loader.h" 8 #include "mojo/shell/application_loader.h"
9 9
10 namespace base { 10 namespace base {
11 class BlockingPool; 11 class BlockingPool;
12 } 12 }
13 13
14 namespace mojo { 14 namespace mojo {
15 class ShellClient; 15 class ShellClient;
16 class ShellConnection; 16 class ShellConnection;
17 } 17 }
18 18
19 namespace package_manager { 19 namespace package_manager {
20 20
21 class ApplicationCatalogStore; 21 class ApplicationCatalogStore;
22 22
23 class Loader : public mojo::shell::ApplicationLoader { 23 class Loader : public mojo::shell::ApplicationLoader {
24 public: 24 public:
25 Loader(base::TaskRunner* blocking_pool, 25 Loader(base::TaskRunner* blocking_pool,
26 bool register_mojo_url_schemes,
27 scoped_ptr<package_manager::ApplicationCatalogStore> app_catalog); 26 scoped_ptr<package_manager::ApplicationCatalogStore> app_catalog);
28 ~Loader() override; 27 ~Loader() override;
29 28
30 // mojo::shell::ApplicationLoader: 29 // mojo::shell::ApplicationLoader:
31 void Load(const GURL& url, 30 void Load(const std::string& name,
32 mojo::shell::mojom::ShellClientRequest request) override; 31 mojo::shell::mojom::ShellClientRequest request) override;
33 32
34 private: 33 private:
35 base::TaskRunner* blocking_pool_; 34 base::TaskRunner* blocking_pool_;
36 bool register_mojo_url_schemes_;
37 scoped_ptr<package_manager::ApplicationCatalogStore> app_catalog_; 35 scoped_ptr<package_manager::ApplicationCatalogStore> app_catalog_;
38 scoped_ptr<mojo::ShellClient> client_; 36 scoped_ptr<mojo::ShellClient> client_;
39 scoped_ptr<mojo::ShellConnection> connection_; 37 scoped_ptr<mojo::ShellConnection> connection_;
40 38
41 DISALLOW_COPY_AND_ASSIGN(Loader); 39 DISALLOW_COPY_AND_ASSIGN(Loader);
42 }; 40 };
43 41
44 } // namespace package_manager 42 } // namespace package_manager
45 43
46 #endif // MOJO_SERVICES_PACKAGE_MANAGER_LOADER_H_ 44 #endif // MOJO_SERVICES_PACKAGE_MANAGER_LOADER_H_
OLDNEW
« no previous file with comments | « mojo/services/package_manager/BUILD.gn ('k') | mojo/services/package_manager/loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698