| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_REINSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_REINSTALLER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_REINSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_REINSTALLER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/extensions/webstore_standalone_installer.h" | 8 #include "chrome/browser/extensions/webstore_standalone_installer.h" |
| 9 #include "content/public/browser/web_contents_observer.h" | 9 #include "content/public/browser/web_contents_observer.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 const WebstoreStandaloneInstaller::Callback& callback); | 22 const WebstoreStandaloneInstaller::Callback& callback); |
| 23 | 23 |
| 24 // Begin the reinstall process. |callback| (from the constructor) will be | 24 // Begin the reinstall process. |callback| (from the constructor) will be |
| 25 // called upon completion. | 25 // called upon completion. |
| 26 void BeginReinstall(); | 26 void BeginReinstall(); |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 virtual ~WebstoreReinstaller(); | 29 virtual ~WebstoreReinstaller(); |
| 30 | 30 |
| 31 // WebstoreStandaloneInstaller: | 31 // WebstoreStandaloneInstaller: |
| 32 virtual bool CheckRequestorAlive() const OVERRIDE; | 32 virtual bool CheckRequestorAlive() const override; |
| 33 virtual const GURL& GetRequestorURL() const OVERRIDE; | 33 virtual const GURL& GetRequestorURL() const override; |
| 34 virtual bool ShouldShowPostInstallUI() const OVERRIDE; | 34 virtual bool ShouldShowPostInstallUI() const override; |
| 35 virtual bool ShouldShowAppInstalledBubble() const OVERRIDE; | 35 virtual bool ShouldShowAppInstalledBubble() const override; |
| 36 virtual content::WebContents* GetWebContents() const OVERRIDE; | 36 virtual content::WebContents* GetWebContents() const override; |
| 37 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() | 37 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() |
| 38 const OVERRIDE; | 38 const override; |
| 39 virtual bool CheckInlineInstallPermitted( | 39 virtual bool CheckInlineInstallPermitted( |
| 40 const base::DictionaryValue& webstore_data, | 40 const base::DictionaryValue& webstore_data, |
| 41 std::string* error) const OVERRIDE; | 41 std::string* error) const override; |
| 42 virtual bool CheckRequestorPermitted( | 42 virtual bool CheckRequestorPermitted( |
| 43 const base::DictionaryValue& webstore_data, | 43 const base::DictionaryValue& webstore_data, |
| 44 std::string* error) const OVERRIDE; | 44 std::string* error) const override; |
| 45 virtual void InstallUIProceed() OVERRIDE; | 45 virtual void InstallUIProceed() override; |
| 46 | 46 |
| 47 // content::WebContentsObserver: | 47 // content::WebContentsObserver: |
| 48 virtual void WebContentsDestroyed() OVERRIDE; | 48 virtual void WebContentsDestroyed() override; |
| 49 | 49 |
| 50 // Called once all data from the old extension installation is removed. | 50 // Called once all data from the old extension installation is removed. |
| 51 void OnDeletionDone(); | 51 void OnDeletionDone(); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace extensions | 54 } // namespace extensions |
| 55 | 55 |
| 56 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_REINSTALLER_H_ | 56 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_REINSTALLER_H_ |
| OLD | NEW |