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_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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 std::string icon_data_; | 138 std::string icon_data_; |
139 std::string localized_name_; | 139 std::string localized_name_; |
140 bool use_app_installed_bubble_; | 140 bool use_app_installed_bubble_; |
141 | 141 |
142 // The results of parsing manifest_ and icon_data_ go into these two. | 142 // The results of parsing manifest_ and icon_data_ go into these two. |
143 scoped_ptr<base::DictionaryValue> parsed_manifest_; | 143 scoped_ptr<base::DictionaryValue> parsed_manifest_; |
144 SkBitmap icon_; | 144 SkBitmap icon_; |
145 | 145 |
146 // A dummy Extension object we create for the purposes of using | 146 // A dummy Extension object we create for the purposes of using |
147 // ExtensionInstallUI to prompt for confirmation of the install. | 147 // ExtensionInstallUI to prompt for confirmation of the install. |
148 scoped_refptr<Extension> dummy_extension_; | 148 scoped_refptr<extensions::Extension> dummy_extension_; |
149 | 149 |
150 // The class that displays the install prompt. | 150 // The class that displays the install prompt. |
151 scoped_ptr<ExtensionInstallUI> install_ui_; | 151 scoped_ptr<ExtensionInstallUI> install_ui_; |
152 }; | 152 }; |
153 | 153 |
154 class CompleteInstallFunction : public SyncExtensionFunction { | 154 class CompleteInstallFunction : public SyncExtensionFunction { |
155 public: | 155 public: |
156 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.completeInstall"); | 156 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.completeInstall"); |
157 | 157 |
158 protected: | 158 protected: |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 247 |
248 private: | 248 private: |
249 void CreateResult(bool webgl_allowed); | 249 void CreateResult(bool webgl_allowed); |
250 | 250 |
251 // A false return value is always valid, but a true one is only valid if full | 251 // A false return value is always valid, but a true one is only valid if full |
252 // GPU info has been collected in a GPU process. | 252 // GPU info has been collected in a GPU process. |
253 static bool IsWebGLAllowed(content::GpuDataManager* manager); | 253 static bool IsWebGLAllowed(content::GpuDataManager* manager); |
254 }; | 254 }; |
255 | 255 |
256 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ | 256 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ |
OLD | NEW |