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

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

Issue 164424: Simple cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « base/system_monitor.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_SAFE_BROWSING_SERVICE_H_ 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
9 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 9 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
10 10
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 // Log the user perceived delay caused by SafeBrowsing. This delay is the time 163 // Log the user perceived delay caused by SafeBrowsing. This delay is the time
164 // delta starting from when we would have started reading data from the 164 // delta starting from when we would have started reading data from the
165 // network, and ending when the SafeBrowsing check completes indicating that 165 // network, and ending when the SafeBrowsing check completes indicating that
166 // the current page is 'safe'. 166 // the current page is 'safe'.
167 void LogPauseDelay(base::TimeDelta time); 167 void LogPauseDelay(base::TimeDelta time);
168 168
169 // PowerObserver notifications 169 // PowerObserver notifications
170 // We defer SafeBrowsing work for a short duration when the computer comes 170 // We defer SafeBrowsing work for a short duration when the computer comes
171 // out of a suspend state to avoid thrashing the disk. 171 // out of a suspend state to avoid thrashing the disk.
172 void OnPowerStateChange(base::SystemMonitor*) {}; 172 void OnPowerStateChange(base::SystemMonitor*) {}
173 void OnSuspend(base::SystemMonitor*); 173 void OnSuspend(base::SystemMonitor*);
174 void OnResume(base::SystemMonitor*); 174 void OnResume(base::SystemMonitor*);
175 175
176 // Report any pages that contain malware sub-resources to the SafeBrowsing 176 // Report any pages that contain malware sub-resources to the SafeBrowsing
177 // service. 177 // service.
178 void ReportMalware(const GURL& malware_url, 178 void ReportMalware(const GURL& malware_url,
179 const GURL& page_url, 179 const GURL& page_url,
180 const GURL& referrer_url); 180 const GURL& referrer_url);
181 181
182 private: 182 private:
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 Client* client; 295 Client* client;
296 GURL url; 296 GURL url;
297 base::Time start; 297 base::Time start;
298 } QueuedCheck; 298 } QueuedCheck;
299 std::deque<QueuedCheck> queued_checks_; 299 std::deque<QueuedCheck> queued_checks_;
300 300
301 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingService); 301 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingService);
302 }; 302 };
303 303
304 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 304 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
OLDNEW
« no previous file with comments | « base/system_monitor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698