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

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

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PING_MANAGER_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_
7 7
8 // A class that reports safebrowsing statistics to Google's SafeBrowsing 8 // A class that reports safebrowsing statistics to Google's SafeBrowsing
9 // servers. 9 // servers.
10 #include <set> 10 #include <set>
(...skipping 15 matching lines...) Expand all
26 class SafeBrowsingPingManager : public net::URLFetcherDelegate { 26 class SafeBrowsingPingManager : public net::URLFetcherDelegate {
27 public: 27 public:
28 virtual ~SafeBrowsingPingManager(); 28 virtual ~SafeBrowsingPingManager();
29 29
30 // Create an instance of the safe browsing ping manager. 30 // Create an instance of the safe browsing ping manager.
31 static SafeBrowsingPingManager* Create( 31 static SafeBrowsingPingManager* Create(
32 net::URLRequestContextGetter* request_context_getter, 32 net::URLRequestContextGetter* request_context_getter,
33 const SafeBrowsingProtocolConfig& config); 33 const SafeBrowsingProtocolConfig& config);
34 34
35 // net::URLFetcherDelegate interface. 35 // net::URLFetcherDelegate interface.
36 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; 36 virtual void OnURLFetchComplete(const net::URLFetcher* source) override;
37 37
38 // For UMA users we report to Google when a SafeBrowsing interstitial is shown 38 // For UMA users we report to Google when a SafeBrowsing interstitial is shown
39 // to the user. |threat_type| should be one of the types known by 39 // to the user. |threat_type| should be one of the types known by
40 // SafeBrowsingHitUrl. 40 // SafeBrowsingHitUrl.
41 void ReportSafeBrowsingHit(const GURL& malicious_url, 41 void ReportSafeBrowsingHit(const GURL& malicious_url,
42 const GURL& page_url, 42 const GURL& page_url,
43 const GURL& referrer_url, 43 const GURL& referrer_url,
44 bool is_subresource, 44 bool is_subresource,
45 SBThreatType threat_type, 45 SBThreatType threat_type,
46 const std::string& post_data); 46 const std::string& post_data);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 std::string url_prefix_; 85 std::string url_prefix_;
86 86
87 // Track outstanding SafeBrowsing report fetchers for clean up. 87 // Track outstanding SafeBrowsing report fetchers for clean up.
88 // We add both "hit" and "detail" fetchers in this set. 88 // We add both "hit" and "detail" fetchers in this set.
89 Reports safebrowsing_reports_; 89 Reports safebrowsing_reports_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingPingManager); 91 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingPingManager);
92 }; 92 };
93 93
94 #endif // CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_ 94 #endif // CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/pe_image_reader_win_unittest.cc ('k') | chrome/browser/safe_browsing/protocol_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698