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

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

Issue 39206: NO CODE CHANGE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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
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 #ifndef CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_
7 7
8 // A class that implements Chrome's interface with the SafeBrowsing protocol. 8 // A class that implements Chrome's interface with the SafeBrowsing protocol.
9 // The SafeBrowsingProtocolManager handles formatting and making requests of, 9 // The SafeBrowsingProtocolManager handles formatting and making requests of,
10 // and handling responses from, Google's SafeBrowsing servers. This class uses 10 // and handling responses from, Google's SafeBrowsing servers. This class uses
(...skipping 27 matching lines...) Expand all
38 return reinterpret_cast<size_t>(fetcher); 38 return reinterpret_cast<size_t>(fetcher);
39 } 39 }
40 }; 40 };
41 } 41 }
42 #endif 42 #endif
43 43
44 class SafeBrowsingProtocolManager : public URLFetcher::Delegate { 44 class SafeBrowsingProtocolManager : public URLFetcher::Delegate {
45 // Testing friends: 45 // Testing friends:
46 FRIEND_TEST(SafeBrowsingProtocolManagerTest, TestBackOffTimes); 46 FRIEND_TEST(SafeBrowsingProtocolManagerTest, TestBackOffTimes);
47 FRIEND_TEST(SafeBrowsingProtocolManagerTest, TestChunkStrings); 47 FRIEND_TEST(SafeBrowsingProtocolManagerTest, TestChunkStrings);
48 FRIEND_TEST(SafeBrowsingProtocolManagerTest, DISABLED_TestGetHashBackOffTimes) ; 48 FRIEND_TEST(SafeBrowsingProtocolManagerTest,
49 DISABLED_TestGetHashBackOffTimes);
49 50
50 public: 51 public:
51 SafeBrowsingProtocolManager(SafeBrowsingService* sb_service, 52 SafeBrowsingProtocolManager(SafeBrowsingService* sb_service,
52 MessageLoop* notify_loop, 53 MessageLoop* notify_loop,
53 const std::string& client_key, 54 const std::string& client_key,
54 const std::string& wrapped_key); 55 const std::string& wrapped_key);
55 ~SafeBrowsingProtocolManager(); 56 ~SafeBrowsingProtocolManager();
56 57
57 // Set up the update schedule and internal state for making periodic requests 58 // Set up the update schedule and internal state for making periodic requests
58 // of the SafeBrowsing service. 59 // of the SafeBrowsing service.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // Track the size of each update (in bytes). 230 // Track the size of each update (in bytes).
230 int update_size_; 231 int update_size_;
231 232
232 // Track outstanding malware report fetchers for clean up. 233 // Track outstanding malware report fetchers for clean up.
233 std::set<const URLFetcher*> malware_reports_; 234 std::set<const URLFetcher*> malware_reports_;
234 235
235 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingProtocolManager); 236 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingProtocolManager);
236 }; 237 };
237 238
238 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ 239 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/chunk_range.cc ('k') | chrome/browser/safe_browsing/protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698