| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Classes for managing the SafeBrowsing interstitial pages. | 5 // Classes for managing the SafeBrowsing interstitial pages. |
| 6 // | 6 // |
| 7 // When a user is about to visit a page the SafeBrowsing system has deemed to | 7 // When a user is about to visit a page the SafeBrowsing system has deemed to |
| 8 // be malicious, either as malware or a phishing page, we show an interstitial | 8 // be malicious, either as malware or a phishing page, we show an interstitial |
| 9 // page with some options (go back, continue) to give the user a chance to avoid | 9 // page with some options (go back, continue) to give the user a chance to avoid |
| 10 // the harmful page. | 10 // the harmful page. |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 void PopulateMalwareLoadTimeData(base::DictionaryValue* load_time_data) const; | 141 void PopulateMalwareLoadTimeData(base::DictionaryValue* load_time_data) const; |
| 142 void PopulateHarmfulLoadTimeData(base::DictionaryValue* load_time_data) const; | 142 void PopulateHarmfulLoadTimeData(base::DictionaryValue* load_time_data) const; |
| 143 void PopulatePhishingLoadTimeData( | 143 void PopulatePhishingLoadTimeData( |
| 144 base::DictionaryValue* load_time_data) const; | 144 base::DictionaryValue* load_time_data) const; |
| 145 | 145 |
| 146 std::string GetMetricPrefix() const; | 146 std::string GetMetricPrefix() const; |
| 147 std::string GetExtraMetricsSuffix() const; | 147 std::string GetExtraMetricsSuffix() const; |
| 148 std::string GetRapporPrefix() const; | 148 std::string GetRapporPrefix() const; |
| 149 std::string GetSamplingEventName() const; | 149 std::string GetSamplingEventName() const; |
| 150 | 150 |
| 151 scoped_ptr<IOSChromeControllerClient> controller_; | 151 std::unique_ptr<IOSChromeControllerClient> controller_; |
| 152 | 152 |
| 153 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPage); | 153 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPage); |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 // Factory for creating SafeBrowsingBlockingPage. Useful for tests. | 156 // Factory for creating SafeBrowsingBlockingPage. Useful for tests. |
| 157 class SafeBrowsingBlockingPageFactory { | 157 class SafeBrowsingBlockingPageFactory { |
| 158 public: | 158 public: |
| 159 virtual ~SafeBrowsingBlockingPageFactory() {} | 159 virtual ~SafeBrowsingBlockingPageFactory() {} |
| 160 | 160 |
| 161 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( | 161 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( |
| 162 SafeBrowsingUIManager* ui_manager, | 162 SafeBrowsingUIManager* ui_manager, |
| 163 web::WebState* web_state, | 163 web::WebState* web_state, |
| 164 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; | 164 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace safe_browsing | 167 } // namespace safe_browsing |
| 168 | 168 |
| 169 #endif // IOS_CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ | 169 #endif // IOS_CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ |
| OLD | NEW |