Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: chrome/browser/extensions/extension_webstore_private_api.h

Issue 8869003: Move the "extension" namespace from extension_api.json into extension_api_extension.json. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build.py again? Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_webrequest_api.cc ('k') | chrome/common/common_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698