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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 virtual bool RunImpl(); | 99 virtual bool RunImpl(); |
100 | 100 |
101 // Sets the result_ as a string based on |code|. | 101 // Sets the result_ as a string based on |code|. |
102 void SetResult(ResultCode code); | 102 void SetResult(ResultCode code); |
103 | 103 |
104 private: | 104 private: |
105 // These store the input parameters to the function. | 105 // These store the input parameters to the function. |
106 std::string id_; | 106 std::string id_; |
107 std::string manifest_; | 107 std::string manifest_; |
108 std::string icon_data_; | 108 std::string icon_data_; |
| 109 std::string localized_name_; |
109 | 110 |
110 // The results of parsing manifest_ and icon_data_ go into these two. | 111 // The results of parsing manifest_ and icon_data_ go into these two. |
111 scoped_ptr<DictionaryValue> parsed_manifest_; | 112 scoped_ptr<DictionaryValue> parsed_manifest_; |
112 SkBitmap icon_; | 113 SkBitmap icon_; |
113 | 114 |
114 // A dummy Extension object we create for the purposes of using | 115 // A dummy Extension object we create for the purposes of using |
115 // ExtensionInstallUI to prompt for confirmation of the install. | 116 // ExtensionInstallUI to prompt for confirmation of the install. |
116 scoped_refptr<Extension> dummy_extension_; | 117 scoped_refptr<Extension> dummy_extension_; |
117 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.beginInstallWithManifest"); | 118 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.beginInstallWithManifest2"); |
118 }; | 119 }; |
119 | 120 |
120 class CompleteInstallFunction : public SyncExtensionFunction { | 121 class CompleteInstallFunction : public SyncExtensionFunction { |
121 virtual bool RunImpl(); | 122 virtual bool RunImpl(); |
122 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.completeInstall"); | 123 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.completeInstall"); |
123 }; | 124 }; |
124 | 125 |
125 class GetBrowserLoginFunction : public SyncExtensionFunction { | 126 class GetBrowserLoginFunction : public SyncExtensionFunction { |
126 virtual bool RunImpl(); | 127 virtual bool RunImpl(); |
127 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getBrowserLogin"); | 128 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getBrowserLogin"); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // Are we waiting for a token available notification? | 163 // Are we waiting for a token available notification? |
163 bool waiting_for_token_; | 164 bool waiting_for_token_; |
164 | 165 |
165 // Used for listening for TokenService notifications. | 166 // Used for listening for TokenService notifications. |
166 NotificationRegistrar registrar_; | 167 NotificationRegistrar registrar_; |
167 | 168 |
168 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.promptBrowserLogin"); | 169 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.promptBrowserLogin"); |
169 }; | 170 }; |
170 | 171 |
171 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ | 172 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ |
OLD | NEW |