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

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

Issue 10980002: Mac Web Intents Part 1: Show extension download progress (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(const std::string& id,
161 const std::string& error) OVERRIDE; 161 const std::string& error,
162 bool cancelled) OVERRIDE;
Nico 2012/09/25 03:07:18 prefer enums over bool parameters
Steve McKay 2012/09/25 18:56:04 +1, much more flexible and can aide readability to
sail 2012/10/02 18:57:01 Done. Changed to WebstoreInstaller::FailureReason
162 protected: 163 protected:
163 virtual ~CompleteInstallFunction() {} 164 virtual ~CompleteInstallFunction() {}
164 165
165 // ExtensionFunction: 166 // ExtensionFunction:
166 virtual bool RunImpl() OVERRIDE; 167 virtual bool RunImpl() OVERRIDE;
167 }; 168 };
168 169
169 class GetBrowserLoginFunction : public SyncExtensionFunction { 170 class GetBrowserLoginFunction : public SyncExtensionFunction {
170 public: 171 public:
171 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getBrowserLogin"); 172 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getBrowserLogin");
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 216
216 private: 217 private:
217 void CreateResult(bool webgl_allowed); 218 void CreateResult(bool webgl_allowed);
218 219
219 scoped_refptr<GPUFeatureChecker> feature_checker_; 220 scoped_refptr<GPUFeatureChecker> feature_checker_;
220 }; 221 };
221 222
222 } // namespace extensions 223 } // namespace extensions
223 224
224 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _ 225 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698