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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 virtual void InstallUIProceed() OVERRIDE; | 124 virtual void InstallUIProceed() OVERRIDE; |
125 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; | 125 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; |
126 | 126 |
127 protected: | 127 protected: |
128 virtual ~BeginInstallWithManifestFunction(); | 128 virtual ~BeginInstallWithManifestFunction(); |
129 | 129 |
130 // ExtensionFunction: | 130 // ExtensionFunction: |
131 virtual bool RunImpl() OVERRIDE; | 131 virtual bool RunImpl() OVERRIDE; |
132 | 132 |
133 // Sets the result_ as a string based on |code|. | 133 // Sets the result_ as a string based on |code|. |
134 void SetResult(ResultCode code); | 134 void SetResultCode(ResultCode code); |
135 | 135 |
136 private: | 136 private: |
137 // These store the input parameters to the function. | 137 // These store the input parameters to the function. |
138 std::string id_; | 138 std::string id_; |
139 std::string manifest_; | 139 std::string manifest_; |
140 std::string icon_data_; | 140 std::string icon_data_; |
141 std::string localized_name_; | 141 std::string localized_name_; |
142 bool use_app_installed_bubble_; | 142 bool use_app_installed_bubble_; |
143 | 143 |
144 // The results of parsing manifest_ and icon_data_ go into these two. | 144 // The results of parsing manifest_ and icon_data_ go into these two. |
(...skipping 102 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 scoped_refptr<GPUFeatureChecker> feature_checker_; | 251 scoped_refptr<GPUFeatureChecker> feature_checker_; |
252 }; | 252 }; |
253 | 253 |
254 } // namespace extensions | 254 } // namespace extensions |
255 | 255 |
256 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H
_ | 256 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H
_ |
OLD | NEW |