| OLD | NEW |
| 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_PACKAGE_MANAGER_H_ | 5 #ifndef MOJO_SERVICES_PACKAGE_MANAGER_PACKAGE_MANAGER_H_ |
| 6 #define MOJO_SERVICES_PACKAGE_MANAGER_PACKAGE_MANAGER_H_ | 6 #define MOJO_SERVICES_PACKAGE_MANAGER_PACKAGE_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // "standard". | 63 // "standard". |
| 64 PackageManager(base::TaskRunner* blocking_pool, bool register_schemes); | 64 PackageManager(base::TaskRunner* blocking_pool, bool register_schemes); |
| 65 ~PackageManager() override; | 65 ~PackageManager() override; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 using MojoURLAliasMap = | 68 using MojoURLAliasMap = |
| 69 std::map<std::string, std::pair<std::string, std::string>>; | 69 std::map<std::string, std::pair<std::string, std::string>>; |
| 70 | 70 |
| 71 // mojo::ShellClient: | 71 // mojo::ShellClient: |
| 72 void Initialize(mojo::Shell* shell, const std::string& url, | 72 void Initialize(mojo::Shell* shell, const std::string& url, |
| 73 uint32_t id) override; | 73 uint32_t id, uint32_t user_id) override; |
| 74 bool AcceptConnection(mojo::Connection* connection) override; | 74 bool AcceptConnection(mojo::Connection* connection) override; |
| 75 | 75 |
| 76 // mojo::InterfaceFactory<mojom::Resolver>: | 76 // mojo::InterfaceFactory<mojom::Resolver>: |
| 77 void Create(mojo::Connection* connection, | 77 void Create(mojo::Connection* connection, |
| 78 mojom::ResolverRequest request) override; | 78 mojom::ResolverRequest request) override; |
| 79 | 79 |
| 80 // mojo::InterfaceFactory<mojom::ShellResolver>: | 80 // mojo::InterfaceFactory<mojom::ShellResolver>: |
| 81 void Create(mojo::Connection* connection, | 81 void Create(mojo::Connection* connection, |
| 82 mojom::ShellResolverRequest request) override; | 82 mojom::ShellResolverRequest request) override; |
| 83 | 83 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 MojoURLAliasMap mojo_url_aliases_; | 159 MojoURLAliasMap mojo_url_aliases_; |
| 160 | 160 |
| 161 base::WeakPtrFactory<PackageManager> weak_factory_; | 161 base::WeakPtrFactory<PackageManager> weak_factory_; |
| 162 | 162 |
| 163 DISALLOW_COPY_AND_ASSIGN(PackageManager); | 163 DISALLOW_COPY_AND_ASSIGN(PackageManager); |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 } // namespace package_manager | 166 } // namespace package_manager |
| 167 | 167 |
| 168 #endif // MOJO_SERVICES_PACKAGE_MANAGER_PACKAGE_MANAGER_H_ | 168 #endif // MOJO_SERVICES_PACKAGE_MANAGER_PACKAGE_MANAGER_H_ |
| OLD | NEW |