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 MOJO_APPLICATION_MANAGER_APPLICATION_LOADER_H_ |
6 #define MOJO_APPLICATION_MANAGER_APPLICATION_LOADER_H_ | 6 #define MOJO_APPLICATION_MANAGER_APPLICATION_LOADER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "mojo/application_manager/application_manager_export.h" | 9 #include "mojo/application_manager/application_manager_export.h" |
10 #include "mojo/public/cpp/system/core.h" | 10 #include "mojo/public/cpp/system/core.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // | 68 // |
69 // 2. |url| can refer to some content that can be handled by some other Mojo | 69 // 2. |url| can refer to some content that can be handled by some other Mojo |
70 // application. In this case, call callbacks->LoadWithContentHandler() and | 70 // application. In this case, call callbacks->LoadWithContentHandler() and |
71 // specify the URL of the application that should handle the content. | 71 // specify the URL of the application that should handle the content. |
72 // The specified application must implement the mojo.ContentHandler | 72 // The specified application must implement the mojo.ContentHandler |
73 // interface. | 73 // interface. |
74 virtual void Load(ApplicationManager* application_manager, | 74 virtual void Load(ApplicationManager* application_manager, |
75 const GURL& url, | 75 const GURL& url, |
76 scoped_refptr<LoadCallbacks> callbacks) = 0; | 76 scoped_refptr<LoadCallbacks> callbacks) = 0; |
77 | 77 |
78 // TODO(davemoore): Change name to OnApplicationError. | 78 // Called when the Application exits. |
79 virtual void OnServiceError(ApplicationManager* manager, const GURL& url) = 0; | 79 virtual void OnApplicationError(ApplicationManager* manager, |
| 80 const GURL& url) = 0; |
80 | 81 |
81 protected: | 82 protected: |
82 ApplicationLoader() {} | 83 ApplicationLoader() {} |
83 }; | 84 }; |
84 | 85 |
85 } // namespace mojo | 86 } // namespace mojo |
86 | 87 |
87 #endif // MOJO_APPLICATION_MANAGER_APPLICATION_LOADER_H_ | 88 #endif // MOJO_APPLICATION_MANAGER_APPLICATION_LOADER_H_ |
OLD | NEW |