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. |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 // Name of the file where the download would be stored if the | 208 // Name of the file where the download would be stored if the |
209 // download completes. E.g., "bla.exe". | 209 // download completes. E.g., "bla.exe". |
210 optional string file_basename = 9; | 210 optional string file_basename = 9; |
211 | 211 |
212 // Starting with Chrome M19 we're also sending back pings for Chrome | 212 // Starting with Chrome M19 we're also sending back pings for Chrome |
213 // extensions that get downloaded by users. | 213 // extensions that get downloaded by users. |
214 enum DownloadType { | 214 enum DownloadType { |
215 WIN_EXECUTABLE = 0; // Currently all .exe, .cab and .msi files. | 215 WIN_EXECUTABLE = 0; // Currently all .exe, .cab and .msi files. |
216 CHROME_EXTENSION = 1; // .crx files. | 216 CHROME_EXTENSION = 1; // .crx files. |
217 ANDROID_APK = 2; // .apk files. | 217 ANDROID_APK = 2; // .apk files. |
218 // .zip files containing one of the above executable types. | 218 // .zip files containing one of the other executable types. |
219 ZIPPED_EXECUTABLE = 3; | 219 ZIPPED_EXECUTABLE = 3; |
| 220 MAC_EXECUTABLE = 4; // .dmg, .pkg, etc. |
220 } | 221 } |
221 optional DownloadType download_type = 10 [default = WIN_EXECUTABLE]; | 222 optional DownloadType download_type = 10 [default = WIN_EXECUTABLE]; |
222 | 223 |
223 // Locale of the device, eg en, en_US. | 224 // Locale of the device, eg en, en_US. |
224 optional string locale = 11; | 225 optional string locale = 11; |
225 | 226 |
226 message PEImageHeaders { | 227 message PEImageHeaders { |
227 // IMAGE_DOS_HEADER. | 228 // IMAGE_DOS_HEADER. |
228 optional bytes dos_header = 1; | 229 optional bytes dos_header = 1; |
229 // IMAGE_FILE_HEADER. | 230 // IMAGE_FILE_HEADER. |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 } | 444 } |
444 | 445 |
445 message ClientIncidentResponse { | 446 message ClientIncidentResponse { |
446 optional bytes token = 1; | 447 optional bytes token = 1; |
447 optional bool download_requested = 2; | 448 optional bool download_requested = 2; |
448 | 449 |
449 message EnvironmentRequest { optional int32 dll_index = 1; } | 450 message EnvironmentRequest { optional int32 dll_index = 1; } |
450 | 451 |
451 repeated EnvironmentRequest environment_requests = 3; | 452 repeated EnvironmentRequest environment_requests = 3; |
452 } | 453 } |
OLD | NEW |