| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // given |webstore_data|. | 42 // given |webstore_data|. |
| 43 static bool IsRequestorPermitted(const base::DictionaryValue& webstore_data, | 43 static bool IsRequestorPermitted(const base::DictionaryValue& webstore_data, |
| 44 const GURL& requestor_url, | 44 const GURL& requestor_url, |
| 45 std::string* error); | 45 std::string* error); |
| 46 | 46 |
| 47 protected: | 47 protected: |
| 48 friend class base::RefCountedThreadSafe<WebstoreInlineInstaller>; | 48 friend class base::RefCountedThreadSafe<WebstoreInlineInstaller>; |
| 49 | 49 |
| 50 ~WebstoreInlineInstaller() override; | 50 ~WebstoreInlineInstaller() override; |
| 51 | 51 |
| 52 // Returns whether to use the new navigation event tracker. | |
| 53 virtual bool SafeBrowsingNavigationEventsEnabled() const; | |
| 54 | |
| 55 // Implementations WebstoreStandaloneInstaller Template Method's hooks. | 52 // Implementations WebstoreStandaloneInstaller Template Method's hooks. |
| 56 std::string GetJsonPostData() override; | 53 std::string GetJsonPostData() override; |
| 57 bool CheckRequestorAlive() const override; | 54 bool CheckRequestorAlive() const override; |
| 58 const GURL& GetRequestorURL() const override; | 55 const GURL& GetRequestorURL() const override; |
| 59 bool ShouldShowPostInstallUI() const override; | 56 bool ShouldShowPostInstallUI() const override; |
| 60 bool ShouldShowAppInstalledBubble() const override; | 57 bool ShouldShowAppInstalledBubble() const override; |
| 61 content::WebContents* GetWebContents() const override; | 58 content::WebContents* GetWebContents() const override; |
| 62 std::unique_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() | 59 std::unique_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() |
| 63 const override; | 60 const override; |
| 64 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data, | 61 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 80 // This corresponds to the frame that initiated the install request. | 77 // This corresponds to the frame that initiated the install request. |
| 81 content::RenderFrameHost* host_; | 78 content::RenderFrameHost* host_; |
| 82 GURL requestor_url_; | 79 GURL requestor_url_; |
| 83 | 80 |
| 84 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); | 81 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); |
| 85 }; | 82 }; |
| 86 | 83 |
| 87 } // namespace extensions | 84 } // namespace extensions |
| 88 | 85 |
| 89 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ | 86 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ |
| OLD | NEW |