| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WIDGET_PRIVATE_APP_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WIDGET_PRIVATE_APP_INSTALLER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WIDGET_PRIVATE_APP_INSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WIDGET_PRIVATE_APP_INSTALLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 ~AppInstaller() override; | 34 ~AppInstaller() override; |
| 35 | 35 |
| 36 void OnWebContentsDestroyed(content::WebContents* web_contents); | 36 void OnWebContentsDestroyed(content::WebContents* web_contents); |
| 37 | 37 |
| 38 // WebstoreStandaloneInstaller implementation. | 38 // WebstoreStandaloneInstaller implementation. |
| 39 bool CheckRequestorAlive() const override; | 39 bool CheckRequestorAlive() const override; |
| 40 const GURL& GetRequestorURL() const override; | 40 const GURL& GetRequestorURL() const override; |
| 41 bool ShouldShowPostInstallUI() const override; | 41 bool ShouldShowPostInstallUI() const override; |
| 42 bool ShouldShowAppInstalledBubble() const override; | 42 bool ShouldShowAppInstalledBubble() const override; |
| 43 content::WebContents* GetWebContents() const override; | 43 content::WebContents* GetWebContents() const override; |
| 44 scoped_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() | 44 std::unique_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() |
| 45 const override; | 45 const override; |
| 46 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data, | 46 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data, |
| 47 std::string* error) const override; | 47 std::string* error) const override; |
| 48 bool CheckRequestorPermitted(const base::DictionaryValue& webstore_data, | 48 bool CheckRequestorPermitted(const base::DictionaryValue& webstore_data, |
| 49 std::string* error) const override; | 49 std::string* error) const override; |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 class WebContentsObserver; | 52 class WebContentsObserver; |
| 53 | 53 |
| 54 bool silent_installation_; | 54 bool silent_installation_; |
| 55 Callback callback_; | 55 Callback callback_; |
| 56 content::WebContents* web_contents_; | 56 content::WebContents* web_contents_; |
| 57 scoped_ptr<WebContentsObserver> web_contents_observer_; | 57 std::unique_ptr<WebContentsObserver> web_contents_observer_; |
| 58 | 58 |
| 59 DISALLOW_IMPLICIT_CONSTRUCTORS(AppInstaller); | 59 DISALLOW_IMPLICIT_CONSTRUCTORS(AppInstaller); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace webstore_widget | 62 } // namespace webstore_widget |
| 63 | 63 |
| 64 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WIDGET_PRIVATE_APP_INSTALLER_H
_ | 64 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WIDGET_PRIVATE_APP_INSTALLER_H
_ |
| OLD | NEW |