| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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
_ |
| OLD | NEW |