| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // The extension id was invalid. | 99 // The extension id was invalid. |
| 100 INVALID_ID, | 100 INVALID_ID, |
| 101 | 101 |
| 102 // The page does not have permission to call this function. | 102 // The page does not have permission to call this function. |
| 103 PERMISSION_DENIED, | 103 PERMISSION_DENIED, |
| 104 | 104 |
| 105 // Invalid icon url. | 105 // Invalid icon url. |
| 106 INVALID_ICON_URL, | 106 INVALID_ICON_URL, |
| 107 | 107 |
| 108 // Signin has failed. | 108 // Signin has failed. |
| 109 SIGNIN_FAILED | 109 SIGNIN_FAILED, |
| 110 |
| 111 // An extension with the same extension id has already been installed. |
| 112 ALREADY_INSTALLED, |
| 110 }; | 113 }; |
| 111 | 114 |
| 112 BeginInstallWithManifestFunction(); | 115 BeginInstallWithManifestFunction(); |
| 113 | 116 |
| 114 // WebstoreInstallHelper::Delegate: | 117 // WebstoreInstallHelper::Delegate: |
| 115 virtual void OnWebstoreParseSuccess( | 118 virtual void OnWebstoreParseSuccess( |
| 116 const std::string& id, | 119 const std::string& id, |
| 117 const SkBitmap& icon, | 120 const SkBitmap& icon, |
| 118 base::DictionaryValue* parsed_manifest) OVERRIDE; | 121 base::DictionaryValue* parsed_manifest) OVERRIDE; |
| 119 virtual void OnWebstoreParseFailure( | 122 virtual void OnWebstoreParseFailure( |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 // ExtensionFunction: | 288 // ExtensionFunction: |
| 286 virtual bool RunImpl() OVERRIDE; | 289 virtual bool RunImpl() OVERRIDE; |
| 287 | 290 |
| 288 private: | 291 private: |
| 289 void OnIsLauncherCheckCompleted(bool is_enabled); | 292 void OnIsLauncherCheckCompleted(bool is_enabled); |
| 290 }; | 293 }; |
| 291 | 294 |
| 292 } // namespace extensions | 295 } // namespace extensions |
| 293 | 296 |
| 294 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H
_ | 297 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H
_ |
| OLD | NEW |