| 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 CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_MANAGER_H
_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_MANAGER_H
_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_MANAGER_H
_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_MANAGER_H
_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include "base/feature_list.h" | 9 #include "base/feature_list.h" |
| 10 #include "base/supports_user_data.h" | 10 #include "base/supports_user_data.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 return &navigation_event_list_; | 212 return &navigation_event_list_; |
| 213 } | 213 } |
| 214 | 214 |
| 215 HostToIpMap* host_to_ip_map() { return &host_to_ip_map_; } | 215 HostToIpMap* host_to_ip_map() { return &host_to_ip_map_; } |
| 216 | 216 |
| 217 // Remove stale entries from navigation_event_list_ if they are older than | 217 // Remove stale entries from navigation_event_list_ if they are older than |
| 218 // kNavigationFootprintTTLInSecond (2 minutes). | 218 // kNavigationFootprintTTLInSecond (2 minutes). |
| 219 void CleanUpNavigationEvents(); | 219 void CleanUpNavigationEvents(); |
| 220 | 220 |
| 221 // Remove stale entries from user_gesture_map_ if they are older than | 221 // Remove stale entries from user_gesture_map_ if they are older than |
| 222 // kUserGestureTTLInSecond (1 sec). | 222 // kNavigationFootprintTTLInSecond (2 minutes). |
| 223 void CleanUpUserGestures(); | 223 void CleanUpUserGestures(); |
| 224 | 224 |
| 225 // Remove stale entries from host_to_ip_map_ if they are older than | 225 // Remove stale entries from host_to_ip_map_ if they are older than |
| 226 // kNavigationFootprintTTLInSecond (2 minutes). | 226 // kNavigationFootprintTTLInSecond (2 minutes). |
| 227 void CleanUpIpAddresses(); | 227 void CleanUpIpAddresses(); |
| 228 | 228 |
| 229 bool IsCleanUpScheduled() const; | 229 bool IsCleanUpScheduled() const; |
| 230 | 230 |
| 231 void ScheduleNextCleanUpAfterInterval(base::TimeDelta interval); | 231 void ScheduleNextCleanUpAfterInterval(base::TimeDelta interval); |
| 232 | 232 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 263 // vector of ResolvedIPAddresss. | 263 // vector of ResolvedIPAddresss. |
| 264 HostToIpMap host_to_ip_map_; | 264 HostToIpMap host_to_ip_map_; |
| 265 | 265 |
| 266 base::OneShotTimer cleanup_timer_; | 266 base::OneShotTimer cleanup_timer_; |
| 267 | 267 |
| 268 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingNavigationObserverManager); | 268 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingNavigationObserverManager); |
| 269 }; | 269 }; |
| 270 } // namespace safe_browsing | 270 } // namespace safe_browsing |
| 271 | 271 |
| 272 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_MANAGE
R_H_ | 272 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_MANAGE
R_H_ |
| OLD | NEW |