OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #pragma once | |
8 | 7 |
9 // Parse the data returned from the chunk response. | 8 // Parse the data returned from the chunk response. |
10 // | 9 // |
11 // Based on the SafeBrowsing v2.1 protocol: | 10 // Based on the SafeBrowsing v2.1 protocol: |
12 // http://code.google.com/p/google-safe-browsing/wiki/Protocolv2Spec | 11 // http://code.google.com/p/google-safe-browsing/wiki/Protocolv2Spec |
13 // | 12 // |
14 // 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. |
15 // 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 |
16 // actual chunk responses. The consumer of the protocol data should instantiate | 15 // actual chunk responses. The consumer of the protocol data should instantiate |
17 // the parser and call the appropriate parsing function on the data. | 16 // the parser and call the appropriate parsing function on the data. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 const char** data, int* remaining, SBEntry* entry, int count); | 105 const char** data, int* remaining, SBEntry* entry, int count); |
107 | 106 |
108 // The name of the current list | 107 // The name of the current list |
109 std::string list_name_; | 108 std::string list_name_; |
110 | 109 |
111 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingProtocolParser); | 110 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingProtocolParser); |
112 }; | 111 }; |
113 | 112 |
114 | 113 |
115 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_PARSER_H_ | 114 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_PARSER_H_ |
OLD | NEW |