OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CORE_SAFE_BROWSING_LOUD_ERROR_UI_H_ | 5 #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CORE_SAFE_BROWSING_LOUD_ERROR_UI_H_ |
6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_SAFE_BROWSING_LOUD_ERROR_UI_H_ | 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_SAFE_BROWSING_LOUD_ERROR_UI_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 int GetHTMLTemplateId() const override; | 41 int GetHTMLTemplateId() const override; |
42 | 42 |
43 private: | 43 private: |
44 // Fills the passed dictionary with the values to be passed to the template | 44 // Fills the passed dictionary with the values to be passed to the template |
45 // when creating the HTML. | 45 // when creating the HTML. |
46 void PopulateExtendedReportingOption(base::DictionaryValue* load_time_data); | 46 void PopulateExtendedReportingOption(base::DictionaryValue* load_time_data); |
47 void PopulateMalwareLoadTimeData(base::DictionaryValue* load_time_data); | 47 void PopulateMalwareLoadTimeData(base::DictionaryValue* load_time_data); |
48 void PopulateHarmfulLoadTimeData(base::DictionaryValue* load_time_data); | 48 void PopulateHarmfulLoadTimeData(base::DictionaryValue* load_time_data); |
49 void PopulatePhishingLoadTimeData(base::DictionaryValue* load_time_data); | 49 void PopulatePhishingLoadTimeData(base::DictionaryValue* load_time_data); |
50 | 50 |
| 51 // Helper method which either opens a URL in a new tab or a the current tab |
| 52 // based on the display options setting. |
| 53 void OpenURL(const GURL& url); |
| 54 |
51 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingLoudErrorUI); | 55 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingLoudErrorUI); |
52 }; | 56 }; |
53 | 57 |
54 } // security_interstitials | 58 } // security_interstitials |
55 | 59 |
56 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_SAFE_BROWSING_LOUD_ERROR_UI_H_ | 60 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_SAFE_BROWSING_LOUD_ERROR_UI_H_ |
OLD | NEW |