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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 private: | 28 private: |
29 ~WebstoreReinstaller() override; | 29 ~WebstoreReinstaller() override; |
30 | 30 |
31 // WebstoreStandaloneInstaller: | 31 // WebstoreStandaloneInstaller: |
32 bool CheckRequestorAlive() const override; | 32 bool CheckRequestorAlive() const override; |
33 const GURL& GetRequestorURL() const override; | 33 const GURL& GetRequestorURL() const override; |
34 bool ShouldShowPostInstallUI() const override; | 34 bool ShouldShowPostInstallUI() const override; |
35 bool ShouldShowAppInstalledBubble() const override; | 35 bool ShouldShowAppInstalledBubble() const override; |
36 content::WebContents* GetWebContents() const override; | 36 content::WebContents* GetWebContents() const override; |
37 scoped_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() | 37 std::unique_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() |
38 const override; | 38 const override; |
39 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data, | 39 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data, |
40 std::string* error) const override; | 40 std::string* error) const override; |
41 bool CheckRequestorPermitted(const base::DictionaryValue& webstore_data, | 41 bool CheckRequestorPermitted(const base::DictionaryValue& webstore_data, |
42 std::string* error) const override; | 42 std::string* error) const override; |
43 void OnInstallPromptDone(ExtensionInstallPrompt::Result result) override; | 43 void OnInstallPromptDone(ExtensionInstallPrompt::Result result) override; |
44 | 44 |
45 // content::WebContentsObserver: | 45 // content::WebContentsObserver: |
46 void WebContentsDestroyed() override; | 46 void WebContentsDestroyed() override; |
47 | 47 |
48 // Called once all data from the old extension installation is removed. | 48 // Called once all data from the old extension installation is removed. |
49 void OnDeletionDone(); | 49 void OnDeletionDone(); |
50 }; | 50 }; |
51 | 51 |
52 } // namespace extensions | 52 } // namespace extensions |
53 | 53 |
54 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_REINSTALLER_H_ | 54 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_REINSTALLER_H_ |
OLD | NEW |