| 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 // The Safe Browsing service is responsible for downloading anti-phishing and | 5 // The Safe Browsing service is responsible for downloading anti-phishing and |
| 6 // anti-malware tables and checking urls against them. | 6 // anti-malware tables and checking urls against them. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_UI_MANAGER_H_ | 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_UI_MANAGER_H_ |
| 9 #define CHROME_BROWSER_SAFE_BROWSING_UI_MANAGER_H_ | 9 #define CHROME_BROWSER_SAFE_BROWSING_UI_MANAGER_H_ |
| 10 | 10 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 void ReportInvalidCertificateChainOnIOThread( | 190 void ReportInvalidCertificateChainOnIOThread( |
| 191 const std::string& serialized_report); | 191 const std::string& serialized_report); |
| 192 | 192 |
| 193 // Report permission action to SafeBrowsing servers. | 193 // Report permission action to SafeBrowsing servers. |
| 194 void ReportPermissionActionOnIOThread( | 194 void ReportPermissionActionOnIOThread( |
| 195 const PermissionReportInfo& report_info); | 195 const PermissionReportInfo& report_info); |
| 196 | 196 |
| 197 // Updates the whitelist URL set. Called on the UI thread. | 197 // Updates the whitelist URL set. Called on the UI thread. |
| 198 void AddToWhitelistUrlSet(const UnsafeResource& resource, bool is_pending); | 198 void AddToWhitelistUrlSet(const UnsafeResource& resource, bool is_pending); |
| 199 | 199 |
| 200 // Removes the URL for |resource| from the pending whitelist. Assumes |
| 201 // that the URL is in fact on the pending whitelist. Called on the UI |
| 202 // thread. |
| 203 void RemoveFromPendingWhitelistUrlSet(const UnsafeResource& resource); |
| 204 |
| 200 // Safebrowsing service. | 205 // Safebrowsing service. |
| 201 scoped_refptr<SafeBrowsingService> sb_service_; | 206 scoped_refptr<SafeBrowsingService> sb_service_; |
| 202 | 207 |
| 203 base::ObserverList<Observer> observer_list_; | 208 base::ObserverList<Observer> observer_list_; |
| 204 | 209 |
| 205 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUIManager); | 210 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUIManager); |
| 206 }; | 211 }; |
| 207 | 212 |
| 208 } // namespace safe_browsing | 213 } // namespace safe_browsing |
| 209 | 214 |
| 210 #endif // CHROME_BROWSER_SAFE_BROWSING_UI_MANAGER_H_ | 215 #endif // CHROME_BROWSER_SAFE_BROWSING_UI_MANAGER_H_ |
| OLD | NEW |