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