| 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_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/extensions/bundle_installer.h" | 10 #include "chrome/browser/extensions/bundle_installer.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 WEBSTOREPRIVATE_COMPLETEINSTALL) | 157 WEBSTOREPRIVATE_COMPLETEINSTALL) |
| 158 | 158 |
| 159 CompleteInstallFunction(); | 159 CompleteInstallFunction(); |
| 160 | 160 |
| 161 // WebstoreInstaller::Delegate: | 161 // WebstoreInstaller::Delegate: |
| 162 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE; | 162 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE; |
| 163 virtual void OnExtensionInstallFailure( | 163 virtual void OnExtensionInstallFailure( |
| 164 const std::string& id, | 164 const std::string& id, |
| 165 const std::string& error, | 165 const std::string& error, |
| 166 WebstoreInstaller::FailureReason reason) OVERRIDE; | 166 WebstoreInstaller::FailureReason reason) OVERRIDE; |
| 167 virtual void OnExtensionDownloadProgress( |
| 168 const std::string& id, |
| 169 content::DownloadItem* item) OVERRIDE; |
| 167 | 170 |
| 168 protected: | 171 protected: |
| 169 virtual ~CompleteInstallFunction(); | 172 virtual ~CompleteInstallFunction(); |
| 170 | 173 |
| 171 // ExtensionFunction: | 174 // ExtensionFunction: |
| 172 virtual bool RunImpl() OVERRIDE; | 175 virtual bool RunImpl() OVERRIDE; |
| 173 | 176 |
| 174 private: | 177 private: |
| 175 void AfterMaybeInstallAppLauncher(bool ok); | 178 void AfterMaybeInstallAppLauncher(bool ok); |
| 176 void OnGetAppLauncherEnabled(std::string id, bool app_launcher_enabled); | 179 void OnGetAppLauncherEnabled(std::string id, bool app_launcher_enabled); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 // ExtensionFunction: | 251 // ExtensionFunction: |
| 249 virtual bool RunImpl() OVERRIDE; | 252 virtual bool RunImpl() OVERRIDE; |
| 250 | 253 |
| 251 private: | 254 private: |
| 252 void OnIsLauncherCheckCompleted(bool is_enabled); | 255 void OnIsLauncherCheckCompleted(bool is_enabled); |
| 253 }; | 256 }; |
| 254 | 257 |
| 255 } // namespace extensions | 258 } // namespace extensions |
| 256 | 259 |
| 257 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H
_ | 260 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H
_ |
| OLD | NEW |