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 |
52 // Implementations WebstoreStandaloneInstaller Template Method's hooks. | 55 // Implementations WebstoreStandaloneInstaller Template Method's hooks. |
53 std::string GetJsonPostData() override; | 56 std::string GetJsonPostData() override; |
54 bool CheckRequestorAlive() const override; | 57 bool CheckRequestorAlive() const override; |
55 const GURL& GetRequestorURL() const override; | 58 const GURL& GetRequestorURL() const override; |
56 bool ShouldShowPostInstallUI() const override; | 59 bool ShouldShowPostInstallUI() const override; |
57 bool ShouldShowAppInstalledBubble() const override; | 60 bool ShouldShowAppInstalledBubble() const override; |
58 content::WebContents* GetWebContents() const override; | 61 content::WebContents* GetWebContents() const override; |
59 std::unique_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() | 62 std::unique_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() |
60 const override; | 63 const override; |
61 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data, | 64 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data, |
(...skipping 15 matching lines...) Expand all Loading... |
77 // This corresponds to the frame that initiated the install request. | 80 // This corresponds to the frame that initiated the install request. |
78 content::RenderFrameHost* host_; | 81 content::RenderFrameHost* host_; |
79 GURL requestor_url_; | 82 GURL requestor_url_; |
80 | 83 |
81 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); | 84 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); |
82 }; | 85 }; |
83 | 86 |
84 } // namespace extensions | 87 } // namespace extensions |
85 | 88 |
86 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ | 89 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ |
OLD | NEW |