| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_ | 5 #ifndef SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_ |
| 6 #define SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_ | 6 #define SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "mojo/public/cpp/system/core.h" | 9 #include "mojo/public/cpp/system/core.h" |
| 10 #include "mojo/public/interfaces/application/shell.mojom.h" | 10 #include "mojo/public/interfaces/application/shell.mojom.h" |
| 11 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" | 11 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" |
| 12 #include "shell/application_manager/application_manager_export.h" | |
| 13 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 14 | 13 |
| 15 namespace mojo { | 14 namespace mojo { |
| 16 | 15 |
| 17 class Application; | 16 class Application; |
| 18 class ApplicationManager; | 17 class ApplicationManager; |
| 19 | 18 |
| 20 // Interface to implement special application loading behavior for a particular | 19 // Interface to implement special application loading behavior for a particular |
| 21 // URL or scheme. | 20 // URL or scheme. |
| 22 class MOJO_APPLICATION_MANAGER_EXPORT ApplicationLoader { | 21 class ApplicationLoader { |
| 23 public: | 22 public: |
| 24 virtual ~ApplicationLoader() {} | 23 virtual ~ApplicationLoader() {} |
| 25 | 24 |
| 26 virtual void Load(const GURL& url, | 25 virtual void Load(const GURL& url, |
| 27 InterfaceRequest<Application> application_request) = 0; | 26 InterfaceRequest<Application> application_request) = 0; |
| 28 | 27 |
| 29 protected: | 28 protected: |
| 30 ApplicationLoader() {} | 29 ApplicationLoader() {} |
| 31 }; | 30 }; |
| 32 | 31 |
| 33 } // namespace mojo | 32 } // namespace mojo |
| 34 | 33 |
| 35 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_ | 34 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_ |
| OLD | NEW |