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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 optional string file_basename = 9; | 238 optional string file_basename = 9; |
239 | 239 |
240 // Starting with Chrome M19 we're also sending back pings for Chrome | 240 // Starting with Chrome M19 we're also sending back pings for Chrome |
241 // extensions that get downloaded by users. | 241 // extensions that get downloaded by users. |
242 enum DownloadType { | 242 enum DownloadType { |
243 WIN_EXECUTABLE = 0; // Currently all .exe, .cab and .msi files. | 243 WIN_EXECUTABLE = 0; // Currently all .exe, .cab and .msi files. |
244 CHROME_EXTENSION = 1; // .crx files. | 244 CHROME_EXTENSION = 1; // .crx files. |
245 ANDROID_APK = 2; // .apk files. | 245 ANDROID_APK = 2; // .apk files. |
246 // .zip files containing one of the other executable types. | 246 // .zip files containing one of the other executable types. |
247 ZIPPED_EXECUTABLE = 3; | 247 ZIPPED_EXECUTABLE = 3; |
248 MAC_EXECUTABLE = 4; // .dmg, .pkg, etc. | 248 MAC_EXECUTABLE = 4; // .dmg, .pkg, etc. |
| 249 ZIPPED_ARCHIVE = 5; // .zip file containing another archive. |
249 } | 250 } |
250 optional DownloadType download_type = 10 [default = WIN_EXECUTABLE]; | 251 optional DownloadType download_type = 10 [default = WIN_EXECUTABLE]; |
251 | 252 |
252 // Locale of the device, eg en, en_US. | 253 // Locale of the device, eg en, en_US. |
253 optional string locale = 11; | 254 optional string locale = 11; |
254 | 255 |
255 message PEImageHeaders { | 256 message PEImageHeaders { |
256 // IMAGE_DOS_HEADER. | 257 // IMAGE_DOS_HEADER. |
257 optional bytes dos_header = 1; | 258 optional bytes dos_header = 1; |
258 // IMAGE_FILE_HEADER. | 259 // IMAGE_FILE_HEADER. |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 message EnvironmentRequest { optional int32 dll_index = 1; } | 546 message EnvironmentRequest { optional int32 dll_index = 1; } |
546 | 547 |
547 repeated EnvironmentRequest environment_requests = 3; | 548 repeated EnvironmentRequest environment_requests = 3; |
548 } | 549 } |
549 | 550 |
550 message DownloadMetadata { | 551 message DownloadMetadata { |
551 optional uint32 download_id = 1; | 552 optional uint32 download_id = 1; |
552 | 553 |
553 optional ClientIncidentReport.DownloadDetails download = 2; | 554 optional ClientIncidentReport.DownloadDetails download = 2; |
554 } | 555 } |
OLD | NEW |