| 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_WEBSTORE_INLINE_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // ExtensionInstallPrompt::Delegate interface implementation. | 105 // ExtensionInstallPrompt::Delegate interface implementation. |
| 106 virtual void InstallUIProceed() OVERRIDE; | 106 virtual void InstallUIProceed() OVERRIDE; |
| 107 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; | 107 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; |
| 108 | 108 |
| 109 // content::WebContentsObserver interface implementation. | 109 // content::WebContentsObserver interface implementation. |
| 110 virtual void WebContentsDestroyed( | 110 virtual void WebContentsDestroyed( |
| 111 content::WebContents* web_contents) OVERRIDE; | 111 content::WebContents* web_contents) OVERRIDE; |
| 112 | 112 |
| 113 // WebstoreInstaller::Delegate interface implementation. | 113 // WebstoreInstaller::Delegate interface implementation. |
| 114 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE; | 114 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE; |
| 115 virtual void OnExtensionInstallFailure(const std::string& id, | 115 virtual void OnExtensionInstallFailure( |
| 116 const std::string& error) OVERRIDE; | 116 const std::string& id, |
| 117 const std::string& error, |
| 118 WebstoreInstaller::FailureReason reason) OVERRIDE; |
| 117 | 119 |
| 118 void CompleteInstall(const std::string& error); | 120 void CompleteInstall(const std::string& error); |
| 119 | 121 |
| 120 // Checks whether the install is initiated by a page in the verified site | 122 // Checks whether the install is initiated by a page in the verified site |
| 121 // (which is at least a domain, but can also have a port or a path). | 123 // (which is at least a domain, but can also have a port or a path). |
| 122 static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url, | 124 static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url, |
| 123 const std::string& verified_site); | 125 const std::string& verified_site); |
| 124 | 126 |
| 125 std::string id_; | 127 std::string id_; |
| 126 bool require_verified_site_; | 128 bool require_verified_site_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 142 scoped_ptr<DictionaryValue> manifest_; | 144 scoped_ptr<DictionaryValue> manifest_; |
| 143 scoped_refptr<Extension> dummy_extension_; | 145 scoped_refptr<Extension> dummy_extension_; |
| 144 SkBitmap icon_; | 146 SkBitmap icon_; |
| 145 | 147 |
| 146 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); | 148 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); |
| 147 }; | 149 }; |
| 148 | 150 |
| 149 } // namespace extensions | 151 } // namespace extensions |
| 150 | 152 |
| 151 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ | 153 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ |
| OLD | NEW |