| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_SHELL_PACKAGE_MANAGER_H_ | 5 #ifndef MOJO_SHELL_PACKAGE_MANAGER_H_ |
| 6 #define MOJO_SHELL_PACKAGE_MANAGER_H_ | 6 #define MOJO_SHELL_PACKAGE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" | 10 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // |target_filter| is a CapabilityFilter that should be applied if a content | 45 // |target_filter| is a CapabilityFilter that should be applied if a content |
| 46 // handler is started to handle |target_url|. | 46 // handler is started to handle |target_url|. |
| 47 // |application_request| is a request for an Application implementation that | 47 // |application_request| is a request for an Application implementation that |
| 48 // will be taken by ContentHandler::StartApplication if a content handler ends | 48 // will be taken by ContentHandler::StartApplication if a content handler ends |
| 49 // up handling |target_url|. | 49 // up handling |target_url|. |
| 50 virtual uint32_t HandleWithContentHandler( | 50 virtual uint32_t HandleWithContentHandler( |
| 51 Fetcher* fetcher, | 51 Fetcher* fetcher, |
| 52 const Identity& source, | 52 const Identity& source, |
| 53 const GURL& target_url, | 53 const GURL& target_url, |
| 54 const CapabilityFilter& target_filter, | 54 const CapabilityFilter& target_filter, |
| 55 InterfaceRequest<Application>* application_request) = 0; | 55 InterfaceRequest<shell::mojom::Application>* application_request) = 0; |
| 56 | 56 |
| 57 // Returns true if a manifest for |url| exists within the PackageManager's | 57 // Returns true if a manifest for |url| exists within the PackageManager's |
| 58 // application catalog. | 58 // application catalog. |
| 59 virtual bool IsURLInCatalog(const std::string& url) const = 0; | 59 virtual bool IsURLInCatalog(const std::string& url) const = 0; |
| 60 | 60 |
| 61 // Returns the name for the application at |url| from its manifest. | 61 // Returns the name for the application at |url| from its manifest. |
| 62 virtual std::string GetApplicationName(const std::string& url) const = 0; | 62 virtual std::string GetApplicationName(const std::string& url) const = 0; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace shell | 65 } // namespace shell |
| 66 } // namespace mojo | 66 } // namespace mojo |
| 67 | 67 |
| 68 #endif // MOJO_SHELL_PACKAGE_MANAGER_H_ | 68 #endif // MOJO_SHELL_PACKAGE_MANAGER_H_ |
| OLD | NEW |