| 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" |
| 11 #include "chrome/browser/extensions/extension_function.h" | 11 #include "chrome/browser/extensions/extension_function.h" |
| 12 #include "chrome/browser/extensions/extension_install_prompt.h" | 12 #include "chrome/browser/extensions/extension_install_prompt.h" |
| 13 #include "chrome/browser/extensions/webstore_install_helper.h" | 13 #include "chrome/browser/extensions/webstore_install_helper.h" |
| 14 #include "chrome/browser/extensions/webstore_installer.h" | 14 #include "chrome/browser/extensions/webstore_installer.h" |
| 15 #include "chrome/browser/signin/signin_tracker.h" | 15 #include "chrome/browser/signin/signin_tracker.h" |
| 16 #include "chrome/common/extensions/api/webstore_private.h" |
| 16 #include "content/public/browser/gpu_data_manager_observer.h" | 17 #include "content/public/browser/gpu_data_manager_observer.h" |
| 17 #include "content/public/browser/notification_observer.h" | 18 #include "content/public/browser/notification_observer.h" |
| 18 #include "content/public/browser/notification_registrar.h" | 19 #include "content/public/browser/notification_registrar.h" |
| 19 #include "google_apis/gaia/google_service_auth_error.h" | 20 #include "google_apis/gaia/google_service_auth_error.h" |
| 20 #include "third_party/skia/include/core/SkBitmap.h" | 21 #include "third_party/skia/include/core/SkBitmap.h" |
| 21 | 22 |
| 22 class ProfileSyncService; | 23 class ProfileSyncService; |
| 23 | 24 |
| 24 namespace content { | 25 namespace content { |
| 25 class GpuDataManager; | 26 class GpuDataManager; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 55 virtual void OnBundleInstallCanceled(bool user_initiated) OVERRIDE; | 56 virtual void OnBundleInstallCanceled(bool user_initiated) OVERRIDE; |
| 56 virtual void OnBundleInstallCompleted() OVERRIDE; | 57 virtual void OnBundleInstallCompleted() OVERRIDE; |
| 57 | 58 |
| 58 protected: | 59 protected: |
| 59 virtual ~WebstorePrivateInstallBundleFunction(); | 60 virtual ~WebstorePrivateInstallBundleFunction(); |
| 60 | 61 |
| 61 // ExtensionFunction: | 62 // ExtensionFunction: |
| 62 virtual bool RunImpl() OVERRIDE; | 63 virtual bool RunImpl() OVERRIDE; |
| 63 | 64 |
| 64 // Reads the extension |details| into |items|. | 65 // Reads the extension |details| into |items|. |
| 65 bool ReadBundleInfo(base::ListValue* details, | 66 bool ReadBundleInfo(api::webstore_private::InstallBundle::Params* details, |
| 66 extensions::BundleInstaller::ItemList* items); | 67 extensions::BundleInstaller::ItemList* items); |
| 67 | 68 |
| 68 private: | 69 private: |
| 69 scoped_refptr<extensions::BundleInstaller> bundle_; | 70 scoped_refptr<extensions::BundleInstaller> bundle_; |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 class WebstorePrivateBeginInstallWithManifest3Function | 73 class WebstorePrivateBeginInstallWithManifest3Function |
| 73 : public AsyncExtensionFunction, | 74 : public AsyncExtensionFunction, |
| 74 public ExtensionInstallPrompt::Delegate, | 75 public ExtensionInstallPrompt::Delegate, |
| 75 public WebstoreInstallHelper::Delegate, | 76 public WebstoreInstallHelper::Delegate, |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 protected: | 294 protected: |
| 294 virtual ~WebstorePrivateIsInIncognitoModeFunction() {} | 295 virtual ~WebstorePrivateIsInIncognitoModeFunction() {} |
| 295 | 296 |
| 296 // ExtensionFunction: | 297 // ExtensionFunction: |
| 297 virtual bool RunImpl() OVERRIDE; | 298 virtual bool RunImpl() OVERRIDE; |
| 298 }; | 299 }; |
| 299 | 300 |
| 300 } // namespace extensions | 301 } // namespace extensions |
| 301 | 302 |
| 302 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H
_ | 303 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H
_ |
| OLD | NEW |