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

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: remove downloads code 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webstore_private/webstore_private_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 }; 150 };
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(
161 const std::string& error) OVERRIDE; 161 const std::string& id,
162 const std::string& error,
163 WebstoreInstaller::FailureReason reason) OVERRIDE;
162 protected: 164 protected:
163 virtual ~CompleteInstallFunction() {} 165 virtual ~CompleteInstallFunction() {}
164 166
165 // ExtensionFunction: 167 // ExtensionFunction:
166 virtual bool RunImpl() OVERRIDE; 168 virtual bool RunImpl() OVERRIDE;
167 }; 169 };
168 170
169 class GetBrowserLoginFunction : public SyncExtensionFunction { 171 class GetBrowserLoginFunction : public SyncExtensionFunction {
170 public: 172 public:
171 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getBrowserLogin"); 173 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getBrowserLogin");
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 217
216 private: 218 private:
217 void CreateResult(bool webgl_allowed); 219 void CreateResult(bool webgl_allowed);
218 220
219 scoped_refptr<GPUFeatureChecker> feature_checker_; 221 scoped_refptr<GPUFeatureChecker> feature_checker_;
220 }; 222 };
221 223
222 } // namespace extensions 224 } // namespace extensions
223 225
224 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _ 226 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webstore_private/webstore_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698