| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 class CompleteInstallFunction | 152 class CompleteInstallFunction |
| 153 : public AsyncExtensionFunction, | 153 : public AsyncExtensionFunction, |
| 154 public WebstoreInstaller::Delegate { | 154 public WebstoreInstaller::Delegate { |
| 155 public: | 155 public: |
| 156 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.completeInstall"); | 156 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.completeInstall"); |
| 157 | 157 |
| 158 // WebstoreInstaller::Delegate: | 158 // WebstoreInstaller::Delegate: |
| 159 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE; | 159 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE; |
| 160 virtual void OnExtensionInstallFailure(const std::string& id, | 160 virtual void OnExtensionInstallFailure( |
| 161 const std::string& error) OVERRIDE; | 161 const std::string& id, |
| 162 const std::string& error, |
| 163 WebstoreInstaller::FailureReason reason) OVERRIDE; |
| 162 protected: | 164 protected: |
| 163 virtual ~CompleteInstallFunction() {} | 165 virtual ~CompleteInstallFunction() {} |
| 164 | 166 |
| 165 // ExtensionFunction: | 167 // ExtensionFunction: |
| 166 virtual bool RunImpl() OVERRIDE; | 168 virtual bool RunImpl() OVERRIDE; |
| 167 }; | 169 }; |
| 168 | 170 |
| 169 class GetBrowserLoginFunction : public SyncExtensionFunction { | 171 class GetBrowserLoginFunction : public SyncExtensionFunction { |
| 170 public: | 172 public: |
| 171 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getBrowserLogin"); | 173 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getBrowserLogin"); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 217 |
| 216 private: | 218 private: |
| 217 void CreateResult(bool webgl_allowed); | 219 void CreateResult(bool webgl_allowed); |
| 218 | 220 |
| 219 scoped_refptr<GPUFeatureChecker> feature_checker_; | 221 scoped_refptr<GPUFeatureChecker> feature_checker_; |
| 220 }; | 222 }; |
| 221 | 223 |
| 222 } // namespace extensions | 224 } // namespace extensions |
| 223 | 225 |
| 224 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H
_ | 226 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H
_ |
| OLD | NEW |