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

Side by Side Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.h

Issue 10694106: Added support for multiple parameters to Extension API callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Synced. Created 8 years, 5 months 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
OLDNEW
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
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
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 _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698