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 // Client side phishing and malware detection request and response | 5 // Client side phishing and malware detection request and response |
6 // protocol buffers. Those protocol messages should be kept in sync | 6 // protocol buffers. Those protocol messages should be kept in sync |
7 // with the server implementation. | 7 // with the server implementation. |
8 // | 8 // |
9 // If you want to change this protocol definition or you have questions | 9 // If you want to change this protocol definition or you have questions |
10 // regarding its format please contact chrome-anti-phishing@googlegroups.com. | 10 // regarding its format please contact chrome-anti-phishing@googlegroups.com. |
11 | 11 |
12 syntax = "proto2"; | 12 syntax = "proto2"; |
13 | 13 |
| 14 option optimize_for = LITE_RUNTIME; |
| 15 |
14 package safe_browsing; | 16 package safe_browsing; |
15 | 17 |
16 message ClientPhishingRequest { | 18 message ClientPhishingRequest { |
17 // URL that the client visited. The CGI parameters are stripped by the | 19 // URL that the client visited. The CGI parameters are stripped by the |
18 // client. | 20 // client. |
19 optional string url = 1; | 21 optional string url = 1; |
20 | 22 |
21 // A 5-byte SHA-256 hash prefix of the URL. Before hashing the URL is | 23 // A 5-byte SHA-256 hash prefix of the URL. Before hashing the URL is |
22 // canonicalized, converted to a suffix-prefix expression and broadened | 24 // canonicalized, converted to a suffix-prefix expression and broadened |
23 // (www prefix is removed and everything past the last '/' is stripped). | 25 // (www prefix is removed and everything past the last '/' is stripped). |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 235 |
234 // Stores the information of the user who provided the feedback. | 236 // Stores the information of the user who provided the feedback. |
235 optional UserInformation user_information = 3; | 237 optional UserInformation user_information = 3; |
236 | 238 |
237 // Unstructed comments provided by the user. | 239 // Unstructed comments provided by the user. |
238 optional bytes comment = 4; | 240 optional bytes comment = 4; |
239 | 241 |
240 // The original download response sent from the verdict server. | 242 // The original download response sent from the verdict server. |
241 optional ClientDownloadResponse download_response = 5; | 243 optional ClientDownloadResponse download_response = 5; |
242 } | 244 } |
OLD | NEW |