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 #include <stdint.h> | |
6 | |
7 #include "mojo/shell/test_package_manager.h" | |
8 | |
9 #include "url/gurl.h" | |
10 | |
11 namespace mojo { | |
12 namespace shell { | |
13 namespace test { | |
14 | |
15 TestPackageManager::TestPackageManager() {} | |
16 TestPackageManager::~TestPackageManager() {} | |
17 | |
18 void TestPackageManager::SetApplicationManager(ApplicationManager* manager) {} | |
19 void TestPackageManager::BuiltinAppLoaded(const GURL& url) {} | |
20 void TestPackageManager::FetchRequest( | |
21 URLRequestPtr request, | |
22 const Fetcher::FetchCallback& loader_callback) {} | |
23 uint32_t TestPackageManager::HandleWithContentHandler( | |
24 Fetcher* fetcher, | |
25 const Identity& source, | |
26 const GURL& target_url, | |
27 const CapabilityFilter& target_filter, | |
28 InterfaceRequest<shell::mojom::ShellClient>* request) { | |
29 return 0; | |
30 } | |
31 bool TestPackageManager::IsURLInCatalog(const std::string& url) const { | |
32 return true; | |
33 } | |
34 std::string TestPackageManager::GetApplicationName( | |
35 const std::string& url) const { return url; } | |
36 GURL TestPackageManager::ResolveMojoURL(const GURL& mojo_url) { | |
37 return mojo_url; | |
38 } | |
39 uint32_t TestPackageManager::StartContentHandler( | |
40 const Identity& source, | |
41 const Identity& content_handler, | |
42 const GURL& url, | |
43 mojom::ShellClientRequest request) { | |
44 return mojo::shell::mojom::Shell::kInvalidApplicationID; | |
45 } | |
46 | |
47 } // namespace test | |
48 } // namespace shell | |
49 } // namespace mojo | |
OLD | NEW |