Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.h

Issue 2892483002: Lose the user gesture expiration check on IdentifyReferrerChainByWebContents (Closed)
Patch Set: address comments from lpz Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698