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 COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_PAGE_H_ | 5 #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_PAGE_H_ |
6 #define COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_PAGE_H_ | 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_PAGE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual bool ShouldCreateNewNavigation() const = 0; | 46 virtual bool ShouldCreateNewNavigation() const = 0; |
47 | 47 |
48 // Populates the strings used to generate the HTML from the template. | 48 // Populates the strings used to generate the HTML from the template. |
49 virtual void PopulateInterstitialStrings( | 49 virtual void PopulateInterstitialStrings( |
50 base::DictionaryValue* load_time_data) = 0; | 50 base::DictionaryValue* load_time_data) = 0; |
51 | 51 |
52 // Gives an opportunity for child classes to react to Show() having run. The | 52 // Gives an opportunity for child classes to react to Show() having run. The |
53 // interstitial_page_ will now have a value. | 53 // interstitial_page_ will now have a value. |
54 virtual void AfterShow() {} | 54 virtual void AfterShow() {} |
55 | 55 |
| 56 virtual int GetHTMLTemplateId(); |
| 57 |
56 // InterstitialPageDelegate method: | 58 // InterstitialPageDelegate method: |
57 std::string GetHTMLContents() override; | 59 std::string GetHTMLContents() override; |
58 | 60 |
59 // Returns the formatted host name for the request url. | 61 // Returns the formatted host name for the request url. |
60 base::string16 GetFormattedHostName() const; | 62 base::string16 GetFormattedHostName() const; |
61 | 63 |
62 content::InterstitialPage* interstitial_page() const; | 64 content::InterstitialPage* interstitial_page() const; |
63 content::WebContents* web_contents() const; | 65 content::WebContents* web_contents() const; |
64 GURL request_url() const; | 66 GURL request_url() const; |
65 | 67 |
(...skipping 20 matching lines...) Expand all Loading... |
86 | 88 |
87 // For subclasses that don't have their own ControllerClients yet. | 89 // For subclasses that don't have their own ControllerClients yet. |
88 std::unique_ptr<SecurityInterstitialControllerClient> controller_; | 90 std::unique_ptr<SecurityInterstitialControllerClient> controller_; |
89 | 91 |
90 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialPage); | 92 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialPage); |
91 }; | 93 }; |
92 | 94 |
93 } // security_interstitials | 95 } // security_interstitials |
94 | 96 |
95 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_PAGE_
H_ | 97 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_PAGE_
H_ |
OLD | NEW |