OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // 4. OnWebstoreParseSuccess: shows the install UI | 142 // 4. OnWebstoreParseSuccess: shows the install UI |
143 // 5. InstallUIProceed: initiates the .crx download/install | 143 // 5. InstallUIProceed: initiates the .crx download/install |
144 // | 144 // |
145 // All flows (whether successful or not) end up in CompleteInstall, which | 145 // All flows (whether successful or not) end up in CompleteInstall, which |
146 // informs our delegate of success/failure. | 146 // informs our delegate of success/failure. |
147 | 147 |
148 // WebstoreDataFetcherDelegate interface implementation. | 148 // WebstoreDataFetcherDelegate interface implementation. |
149 virtual void OnWebstoreRequestFailure() OVERRIDE; | 149 virtual void OnWebstoreRequestFailure() OVERRIDE; |
150 | 150 |
151 virtual void OnWebstoreResponseParseSuccess( | 151 virtual void OnWebstoreResponseParseSuccess( |
152 base::DictionaryValue* webstore_data) OVERRIDE; | 152 scoped_ptr<base::DictionaryValue> webstore_data) OVERRIDE; |
153 | 153 |
154 virtual void OnWebstoreResponseParseFailure( | 154 virtual void OnWebstoreResponseParseFailure( |
155 const std::string& error) OVERRIDE; | 155 const std::string& error) OVERRIDE; |
156 | 156 |
157 // WebstoreInstallHelper::Delegate interface implementation. | 157 // WebstoreInstallHelper::Delegate interface implementation. |
158 virtual void OnWebstoreParseSuccess( | 158 virtual void OnWebstoreParseSuccess( |
159 const std::string& id, | 159 const std::string& id, |
160 const SkBitmap& icon, | 160 const SkBitmap& icon, |
161 base::DictionaryValue* parsed_manifest) OVERRIDE; | 161 base::DictionaryValue* parsed_manifest) OVERRIDE; |
162 virtual void OnWebstoreParseFailure( | 162 virtual void OnWebstoreParseFailure( |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // Created by ShowInstallUI() when a prompt is shown (if | 204 // Created by ShowInstallUI() when a prompt is shown (if |
205 // the implementor returns a non-NULL in CreateInstallPrompt()). | 205 // the implementor returns a non-NULL in CreateInstallPrompt()). |
206 scoped_refptr<Extension> localized_extension_for_display_; | 206 scoped_refptr<Extension> localized_extension_for_display_; |
207 | 207 |
208 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreStandaloneInstaller); | 208 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreStandaloneInstaller); |
209 }; | 209 }; |
210 | 210 |
211 } // namespace extensions | 211 } // namespace extensions |
212 | 212 |
213 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ | 213 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ |
OLD | NEW |