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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 class BeginInstallWithManifestFunction | 37 class BeginInstallWithManifestFunction |
38 : public AsyncExtensionFunction, | 38 : public AsyncExtensionFunction, |
39 public ExtensionInstallUI::Delegate, | 39 public ExtensionInstallUI::Delegate, |
40 public WebstoreInstallHelper::Delegate { | 40 public WebstoreInstallHelper::Delegate { |
41 public: | 41 public: |
42 BeginInstallWithManifestFunction(); | 42 BeginInstallWithManifestFunction(); |
43 | 43 |
44 // Result codes for the return value. If you change this, make sure to | 44 // Result codes for the return value. If you change this, make sure to |
45 // update the description for the beginInstallWithManifest3 callback in | 45 // update the description for the beginInstallWithManifest3 callback in |
46 // extension_api.json. | 46 // the extension API JSON. |
47 enum ResultCode { | 47 enum ResultCode { |
48 ERROR_NONE = 0, | 48 ERROR_NONE = 0, |
49 | 49 |
50 // An unspecified error occurred. | 50 // An unspecified error occurred. |
51 UNKNOWN_ERROR, | 51 UNKNOWN_ERROR, |
52 | 52 |
53 // The user cancelled the confirmation dialog instead of accepting it. | 53 // The user cancelled the confirmation dialog instead of accepting it. |
54 USER_CANCELLED, | 54 USER_CANCELLED, |
55 | 55 |
56 // The manifest failed to parse correctly. | 56 // The manifest failed to parse correctly. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 void CreateResult(bool webgl_allowed); | 176 void CreateResult(bool webgl_allowed); |
177 | 177 |
178 // A false return value is always valid, but a true one is only valid if full | 178 // A false return value is always valid, but a true one is only valid if full |
179 // GPU info has been collected in a GPU process. | 179 // GPU info has been collected in a GPU process. |
180 static bool IsWebGLAllowed(GpuDataManager* manager); | 180 static bool IsWebGLAllowed(GpuDataManager* manager); |
181 | 181 |
182 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getWebGLStatus"); | 182 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getWebGLStatus"); |
183 }; | 183 }; |
184 | 184 |
185 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ | 185 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ |
OLD | NEW |