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

Side by Side Diff: mojo/shell/test_package_manager.h

Issue 1701933004: Remove the old package manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@am2
Patch Set: . Created 4 years, 10 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/switches.cc ('k') | mojo/shell/test_package_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « mojo/shell/switches.cc ('k') | mojo/shell/test_package_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698