| 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_PARSER_H__ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_PARSER_H_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_PARSER_H__ | 6 #define CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_PARSER_H_ |
| 7 | 7 |
| 8 // Parse the data returned from the chunk response. | 8 // Parse the data returned from the chunk response. |
| 9 // | 9 // |
| 10 // Based on the SafeBrowsing v2.1 protocol: | 10 // Based on the SafeBrowsing v2.1 protocol: |
| 11 // http://code.google.com/p/google-safe-browsing/wiki/Protocolv2Spec | 11 // http://code.google.com/p/google-safe-browsing/wiki/Protocolv2Spec |
| 12 // | 12 // |
| 13 // Read the response from a SafeBrowsing request, and parse into useful pieces. | 13 // Read the response from a SafeBrowsing request, and parse into useful pieces. |
| 14 // The protocol is generally line oriented, but can contain binary data in the | 14 // The protocol is generally line oriented, but can contain binary data in the |
| 15 // actual chunk responses. The consumer of the protocol data should instantiate | 15 // actual chunk responses. The consumer of the protocol data should instantiate |
| 16 // the parser and call the appropriate parsing function on the data. | 16 // the parser and call the appropriate parsing function on the data. |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 const char** data, int* remaining, SBEntry* entry, int count, | 118 const char** data, int* remaining, SBEntry* entry, int count, |
| 119 int index_start); | 119 int index_start); |
| 120 | 120 |
| 121 // The name of the current list | 121 // The name of the current list |
| 122 std::string list_name_; | 122 std::string list_name_; |
| 123 | 123 |
| 124 DISALLOW_EVIL_CONSTRUCTORS(SafeBrowsingProtocolParser); | 124 DISALLOW_EVIL_CONSTRUCTORS(SafeBrowsingProtocolParser); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 | 127 |
| 128 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_PARSER_H__ | 128 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_PARSER_H_ |
| OLD | NEW |