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

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

Issue 270793002: webstorePrivate: Support an |authuser| property in beginInstallWithManifest3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Let authuser pass thru as a string rather than forcing int Created 6 years, 7 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 SkBitmap icon_; 162 SkBitmap icon_;
163 163
164 // A dummy Extension object we create for the purposes of using 164 // A dummy Extension object we create for the purposes of using
165 // ExtensionInstallPrompt to prompt for confirmation of the install. 165 // ExtensionInstallPrompt to prompt for confirmation of the install.
166 scoped_refptr<extensions::Extension> dummy_extension_; 166 scoped_refptr<extensions::Extension> dummy_extension_;
167 167
168 // The class that displays the install prompt. 168 // The class that displays the install prompt.
169 scoped_ptr<ExtensionInstallPrompt> install_prompt_; 169 scoped_ptr<ExtensionInstallPrompt> install_prompt_;
170 170
171 scoped_ptr<SigninTracker> signin_tracker_; 171 scoped_ptr<SigninTracker> signin_tracker_;
172
173 // The authuser query parameter value which should be used with CRX download
174 // requests. This is empty if authuser should not be set on download requests.
175 std::string authuser_;
172 }; 176 };
173 177
174 class WebstorePrivateCompleteInstallFunction 178 class WebstorePrivateCompleteInstallFunction
175 : public ChromeAsyncExtensionFunction, 179 : public ChromeAsyncExtensionFunction,
176 public WebstoreInstaller::Delegate { 180 public WebstoreInstaller::Delegate {
177 public: 181 public:
178 DECLARE_EXTENSION_FUNCTION("webstorePrivate.completeInstall", 182 DECLARE_EXTENSION_FUNCTION("webstorePrivate.completeInstall",
179 WEBSTOREPRIVATE_COMPLETEINSTALL) 183 WEBSTOREPRIVATE_COMPLETEINSTALL)
180 184
181 WebstorePrivateCompleteInstallFunction(); 185 WebstorePrivateCompleteInstallFunction();
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 SigninManagerBase* signin_manager_; 339 SigninManagerBase* signin_manager_;
336 340
337 // Tracks changes to sign-in state. Used to notify the page when an existing 341 // Tracks changes to sign-in state. Used to notify the page when an existing
338 // in-progress sign-in completes, either with success or failure. 342 // in-progress sign-in completes, either with success or failure.
339 scoped_ptr<SigninTracker> signin_tracker_; 343 scoped_ptr<SigninTracker> signin_tracker_;
340 }; 344 };
341 345
342 } // namespace extensions 346 } // namespace extensions
343 347
344 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _ 348 #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