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

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

Issue 2314833002: Remove some uses of stl_util's STLDeleteContainerPointers. (Closed)
Patch Set: cleanup Created 4 years, 3 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/ping_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 (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 <memory> 10 #include <memory>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // Report permission action to SafeBrowsing servers. 67 // Report permission action to SafeBrowsing servers.
68 void ReportPermissionAction(const PermissionReportInfo& report_info); 68 void ReportPermissionAction(const PermissionReportInfo& report_info);
69 69
70 private: 70 private:
71 friend class PermissionReporterBrowserTest; 71 friend class PermissionReporterBrowserTest;
72 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingPingManagerTest, 72 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingPingManagerTest,
73 TestSafeBrowsingHitUrl); 73 TestSafeBrowsingHitUrl);
74 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingPingManagerTest, TestThreatDetailsUrl); 74 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingPingManagerTest, TestThreatDetailsUrl);
75 75
76 typedef std::set<const net::URLFetcher*> Reports; 76 typedef std::set<std::unique_ptr<net::URLFetcher>> Reports;
77 77
78 // Constructs a SafeBrowsingPingManager that issues network requests 78 // Constructs a SafeBrowsingPingManager that issues network requests
79 // using |request_context_getter|. 79 // using |request_context_getter|.
80 SafeBrowsingPingManager( 80 SafeBrowsingPingManager(
81 net::URLRequestContextGetter* request_context_getter, 81 net::URLRequestContextGetter* request_context_getter,
82 const SafeBrowsingProtocolConfig& config); 82 const SafeBrowsingProtocolConfig& config);
83 83
84 // Generates URL for reporting safe browsing hits. 84 // Generates URL for reporting safe browsing hits.
85 GURL SafeBrowsingHitUrl(const safe_browsing::HitReport& hit_report) const; 85 GURL SafeBrowsingHitUrl(const safe_browsing::HitReport& hit_report) const;
86 86
(...skipping 23 matching lines...) Expand all
110 110
111 // Sends reports of permission actions. 111 // Sends reports of permission actions.
112 std::unique_ptr<PermissionReporter> permission_reporter_; 112 std::unique_ptr<PermissionReporter> permission_reporter_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingPingManager); 114 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingPingManager);
115 }; 115 };
116 116
117 } // namespace safe_browsing 117 } // namespace safe_browsing
118 118
119 #endif // CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_ 119 #endif // CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/ping_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698