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 <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/hash_tables.h" | 17 #include "base/hash_tables.h" |
18 #include "base/scoped_ptr.h" | 18 #include "base/scoped_ptr.h" |
19 #include "base/time.h" | 19 #include "base/time.h" |
20 #include "chrome/browser/url_fetcher.h" | 20 #include "chrome/browser/net/url_fetcher.h" |
21 #include "chrome/browser/safe_browsing/chunk_range.h" | 21 #include "chrome/browser/safe_browsing/chunk_range.h" |
22 #include "chrome/browser/safe_browsing/protocol_parser.h" | 22 #include "chrome/browser/safe_browsing/protocol_parser.h" |
23 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 23 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
24 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | 24 #include "chrome/browser/safe_browsing/safe_browsing_util.h" |
25 #include "net/url_request/url_request.h" | 25 #include "net/url_request/url_request.h" |
26 #include "testing/gtest/include/gtest/gtest_prod.h" | 26 #include "testing/gtest/include/gtest/gtest_prod.h" |
27 | 27 |
28 class MessageLoop; | 28 class MessageLoop; |
29 class Task; | 29 class Task; |
30 class Timer; | 30 class Timer; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 // Used for measuring chunk request latency. | 210 // Used for measuring chunk request latency. |
211 base::Time chunk_request_start_; | 211 base::Time chunk_request_start_; |
212 | 212 |
213 // Track the size of each update (in bytes). | 213 // Track the size of each update (in bytes). |
214 int update_size_; | 214 int update_size_; |
215 | 215 |
216 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingProtocolManager); | 216 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingProtocolManager); |
217 }; | 217 }; |
218 | 218 |
219 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ | 219 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ |
OLD | NEW |