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 MOJO_APPLICATION_MANAGER_APPLICATION_LOADER_H_ | 5 #ifndef SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_ |
6 #define MOJO_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/application_manager/application_manager_export.h" | |
10 #include "mojo/public/cpp/system/core.h" | 9 #include "mojo/public/cpp/system/core.h" |
11 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" | 10 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" |
| 11 #include "shell/application_manager/application_manager_export.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 namespace mojo { | 14 namespace mojo { |
15 | 15 |
16 class ApplicationManager; | 16 class ApplicationManager; |
17 | 17 |
18 // Interface to allowing loading behavior to be established for schemes, | 18 // Interface to allowing loading behavior to be established for schemes, |
19 // specific urls or as the default. | 19 // specific urls or as the default. |
20 // A ApplicationLoader is responsible to using whatever mechanism is appropriate | 20 // A ApplicationLoader is responsible to using whatever mechanism is appropriate |
21 // to load the application at url. | 21 // to load the application at url. |
(...skipping 26 matching lines...) Expand all Loading... |
48 // Called when the Application exits. | 48 // Called when the Application exits. |
49 virtual void OnApplicationError(ApplicationManager* manager, | 49 virtual void OnApplicationError(ApplicationManager* manager, |
50 const GURL& url) = 0; | 50 const GURL& url) = 0; |
51 | 51 |
52 protected: | 52 protected: |
53 ApplicationLoader() {} | 53 ApplicationLoader() {} |
54 }; | 54 }; |
55 | 55 |
56 } // namespace mojo | 56 } // namespace mojo |
57 | 57 |
58 #endif // MOJO_APPLICATION_MANAGER_APPLICATION_LOADER_H_ | 58 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_ |
OLD | NEW |