| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSION_WEBSTORE_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 // The page does not have permission to call this function. | 60 // The page does not have permission to call this function. |
| 61 PERMISSION_DENIED, | 61 PERMISSION_DENIED, |
| 62 | 62 |
| 63 // Invalid icon url. | 63 // Invalid icon url. |
| 64 INVALID_ICON_URL | 64 INVALID_ICON_URL |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 // Implementing WebstoreInstallHelper::Delegate interface. | 67 // Implementing WebstoreInstallHelper::Delegate interface. |
| 68 virtual void OnWebstoreParseSuccess( | 68 virtual void OnWebstoreParseSuccess( |
| 69 const std::string& id, |
| 69 const SkBitmap& icon, | 70 const SkBitmap& icon, |
| 70 base::DictionaryValue* parsed_manifest) OVERRIDE; | 71 base::DictionaryValue* parsed_manifest) OVERRIDE; |
| 71 virtual void OnWebstoreParseFailure( | 72 virtual void OnWebstoreParseFailure( |
| 73 const std::string& id, |
| 72 InstallHelperResultCode result_code, | 74 InstallHelperResultCode result_code, |
| 73 const std::string& error_message) OVERRIDE; | 75 const std::string& error_message) OVERRIDE; |
| 74 | 76 |
| 75 // Implementing ExtensionInstallUI::Delegate interface. | 77 // Implementing ExtensionInstallUI::Delegate interface. |
| 76 virtual void InstallUIProceed() OVERRIDE; | 78 virtual void InstallUIProceed() OVERRIDE; |
| 77 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; | 79 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; |
| 78 | 80 |
| 79 protected: | 81 protected: |
| 80 virtual ~BeginInstallWithManifestFunction(); | 82 virtual ~BeginInstallWithManifestFunction(); |
| 81 virtual bool RunImpl(); | 83 virtual bool RunImpl(); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 virtual bool RunImpl(); | 118 virtual bool RunImpl(); |
| 117 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getStoreLogin"); | 119 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getStoreLogin"); |
| 118 }; | 120 }; |
| 119 | 121 |
| 120 class SetStoreLoginFunction : public SyncExtensionFunction { | 122 class SetStoreLoginFunction : public SyncExtensionFunction { |
| 121 virtual bool RunImpl(); | 123 virtual bool RunImpl(); |
| 122 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.setStoreLogin"); | 124 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.setStoreLogin"); |
| 123 }; | 125 }; |
| 124 | 126 |
| 125 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ | 127 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ |
| OLD | NEW |