OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_; | 166 scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_; |
167 | 167 |
168 // Whether the malware IP matching feature killswitch is on. | 168 // Whether the malware IP matching feature killswitch is on. |
169 // This should be accessed from UI thread. | 169 // This should be accessed from UI thread. |
170 bool malware_killswitch_on_; | 170 bool malware_killswitch_on_; |
171 | 171 |
172 // Whether the malware bad ip matching and report feature is enabled. | 172 // Whether the malware bad ip matching and report feature is enabled. |
173 // This should be accessed from UI thread. | 173 // This should be accessed from UI thread. |
174 bool malware_report_enabled_; | 174 bool malware_report_enabled_; |
175 | 175 |
176 // Set to true if we got a match on malware or phishing for the current | |
177 // page load. Is reset to false when DidNavigateMainFrame is received. | |
178 bool malware_or_phishing_match_; | |
179 | |
180 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); | 176 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); |
181 }; | 177 }; |
182 | 178 |
183 } // namespace safe_browsing | 179 } // namespace safe_browsing |
184 | 180 |
185 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ | 181 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ |
OLD | NEW |