| 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 10 matching lines...) Expand all Loading... |
| 21 class ProfileSyncService; | 21 class ProfileSyncService; |
| 22 | 22 |
| 23 namespace content { | 23 namespace content { |
| 24 class GpuDataManager; | 24 class GpuDataManager; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace extensions { | 27 namespace extensions { |
| 28 | 28 |
| 29 class WebstorePrivateApi { | 29 class WebstorePrivateApi { |
| 30 public: | 30 public: |
| 31 // Allows you to set the ProfileSyncService the function will use for | |
| 32 // testing purposes. | |
| 33 static void SetTestingProfileSyncService(ProfileSyncService* service); | |
| 34 | |
| 35 // Allows you to override the WebstoreInstaller delegate for testing. | 31 // Allows you to override the WebstoreInstaller delegate for testing. |
| 36 static void SetWebstoreInstallerDelegateForTesting( | 32 static void SetWebstoreInstallerDelegateForTesting( |
| 37 WebstoreInstaller::Delegate* delegate); | 33 WebstoreInstaller::Delegate* delegate); |
| 38 | 34 |
| 39 // Gets the pending approval for the |extension_id| in |profile|. Pending | 35 // Gets the pending approval for the |extension_id| in |profile|. Pending |
| 40 // approvals are held between the calls to beginInstallWithManifest and | 36 // approvals are held between the calls to beginInstallWithManifest and |
| 41 // completeInstall. This should only be used for testing. | 37 // completeInstall. This should only be used for testing. |
| 42 static scoped_ptr<WebstoreInstaller::Approval> PopApprovalForTesting( | 38 static scoped_ptr<WebstoreInstaller::Approval> PopApprovalForTesting( |
| 43 Profile* profile, const std::string& extension_id); | 39 Profile* profile, const std::string& extension_id); |
| 44 }; | 40 }; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 211 |
| 216 private: | 212 private: |
| 217 void CreateResult(bool webgl_allowed); | 213 void CreateResult(bool webgl_allowed); |
| 218 | 214 |
| 219 scoped_refptr<GPUFeatureChecker> feature_checker_; | 215 scoped_refptr<GPUFeatureChecker> feature_checker_; |
| 220 }; | 216 }; |
| 221 | 217 |
| 222 } // namespace extensions | 218 } // namespace extensions |
| 223 | 219 |
| 224 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H
_ | 220 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H
_ |
| OLD | NEW |