| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // Max number of hosts we report for each malware IP. | 130 // Max number of hosts we report for each malware IP. |
| 131 static const int kMaxHostsPerIP; | 131 static const int kMaxHostsPerIP; |
| 132 | 132 |
| 133 base::WeakPtrFactory<ClientSideDetectionHost> weak_factory_; | 133 base::WeakPtrFactory<ClientSideDetectionHost> weak_factory_; |
| 134 | 134 |
| 135 // Unique page ID of the most recent unsafe site that was loaded in this tab | 135 // Unique page ID of the most recent unsafe site that was loaded in this tab |
| 136 // as well as the UnsafeResource. | 136 // as well as the UnsafeResource. |
| 137 int unsafe_unique_page_id_; | 137 int unsafe_unique_page_id_; |
| 138 scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_; | 138 scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_; |
| 139 | 139 |
| 140 // Whether the malware IP matching feature killswitch is on. |
| 141 bool malware_killswitch_on_; |
| 142 |
| 140 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); | 143 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); |
| 141 }; | 144 }; |
| 142 | 145 |
| 143 } // namespace safe_browsing | 146 } // namespace safe_browsing |
| 144 | 147 |
| 145 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ | 148 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ |
| OLD | NEW |