| 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 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 197 |
| 198 // The last time we successfully received an update. | 198 // The last time we successfully received an update. |
| 199 Time last_update_; | 199 Time last_update_; |
| 200 | 200 |
| 201 // While in GetHash backoff, we can't make another GetHash until this time. | 201 // While in GetHash backoff, we can't make another GetHash until this time. |
| 202 Time next_gethash_time_; | 202 Time next_gethash_time_; |
| 203 | 203 |
| 204 DISALLOW_EVIL_CONSTRUCTORS(SafeBrowsingProtocolManager); | 204 DISALLOW_EVIL_CONSTRUCTORS(SafeBrowsingProtocolManager); |
| 205 }; | 205 }; |
| 206 | 206 |
| 207 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H__ | 207 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ |
| OLD | NEW |