OLD | NEW |
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 |
11 // The SafeBrowsingProtocolParser class to do the actual parsing. | 11 // The SafeBrowsingProtocolParser class to do the actual parsing. |
12 | 12 |
13 #include <deque> | 13 #include <deque> |
14 #include <set> | 14 #include <set> |
15 | 15 |
16 #include "base/hash_tables.h" | 16 #include "base/hash_tables.h" |
17 #include "base/scoped_ptr.h" | 17 #include "base/scoped_ptr.h" |
18 #include "base/time.h" | 18 #include "base/time.h" |
| 19 #include "base/timer.h" |
19 #include "chrome/browser/net/url_fetcher.h" | 20 #include "chrome/browser/net/url_fetcher.h" |
20 #include "chrome/browser/safe_browsing/chunk_range.h" | 21 #include "chrome/browser/safe_browsing/chunk_range.h" |
21 #include "chrome/browser/safe_browsing/protocol_parser.h" | 22 #include "chrome/browser/safe_browsing/protocol_parser.h" |
22 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 23 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
23 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | 24 #include "chrome/browser/safe_browsing/safe_browsing_util.h" |
24 #include "testing/gtest/include/gtest/gtest_prod.h" | 25 #include "testing/gtest/include/gtest/gtest_prod.h" |
25 | 26 |
26 class MessageLoop; | 27 class MessageLoop; |
27 class Task; | 28 class Task; |
28 class Timer; | 29 class Timer; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // Track the size of each update (in bytes). | 231 // Track the size of each update (in bytes). |
231 int update_size_; | 232 int update_size_; |
232 | 233 |
233 // Track outstanding malware report fetchers for clean up. | 234 // Track outstanding malware report fetchers for clean up. |
234 std::set<const URLFetcher*> malware_reports_; | 235 std::set<const URLFetcher*> malware_reports_; |
235 | 236 |
236 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingProtocolManager); | 237 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingProtocolManager); |
237 }; | 238 }; |
238 | 239 |
239 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ | 240 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ |
OLD | NEW |