OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MOJO_SHELL_TEST_PACKAGE_MANAGER_H_ | |
6 #define MOJO_SHELL_TEST_PACKAGE_MANAGER_H_ | |
7 | |
8 #include <stdint.h> | |
9 | |
10 #include "base/macros.h" | |
11 #include "mojo/shell/package_manager.h" | |
12 | |
13 namespace mojo { | |
14 namespace shell { | |
15 namespace test { | |
16 | |
17 class TestPackageManager : public PackageManager { | |
18 public: | |
19 TestPackageManager(); | |
20 ~TestPackageManager() override; | |
21 | |
22 private: | |
23 // Overridden from PackageManager: | |
24 void SetApplicationManager(ApplicationManager* manager) override; | |
25 void BuiltinAppLoaded(const GURL& url) override; | |
26 void FetchRequest( | |
27 URLRequestPtr request, | |
28 const Fetcher::FetchCallback& loader_callback) override; | |
29 uint32_t HandleWithContentHandler( | |
30 Fetcher* fetcher, | |
31 const Identity& source, | |
32 const GURL& target_url, | |
33 const CapabilityFilter& target_filter, | |
34 InterfaceRequest<shell::mojom::ShellClient>* request) | |
35 override; | |
36 bool IsURLInCatalog(const std::string& url) const override; | |
37 std::string GetApplicationName(const std::string& url) const override; | |
38 GURL ResolveMojoURL(const GURL& mojo_url) override; | |
39 uint32_t StartContentHandler(const Identity& source, | |
40 const Identity& content_handler, | |
41 const GURL& url, | |
42 mojom::ShellClientRequest request) override; | |
43 | |
44 DISALLOW_COPY_AND_ASSIGN(TestPackageManager); | |
45 }; | |
46 | |
47 } // namespace test | |
48 } // namespace shell | |
49 } // namespace mojo | |
50 | |
51 #endif // MOJO_SHELL_TEST_PACKAGE_MANAGER_H_ | |
OLD | NEW |