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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // Name of the file where the download would be stored if the | 161 // Name of the file where the download would be stored if the |
162 // download completes. E.g., "bla.exe". | 162 // download completes. E.g., "bla.exe". |
163 optional string file_basename = 9; | 163 optional string file_basename = 9; |
164 | 164 |
165 // Starting with Chrome M19 we're also sending back pings for Chrome | 165 // Starting with Chrome M19 we're also sending back pings for Chrome |
166 // extensions that get downloaded by users. | 166 // extensions that get downloaded by users. |
167 enum DownloadType { | 167 enum DownloadType { |
168 WIN_EXECUTABLE = 0; // Currently all .exe, .cab and .msi files. | 168 WIN_EXECUTABLE = 0; // Currently all .exe, .cab and .msi files. |
169 CHROME_EXTENSION = 1; // .crx files. | 169 CHROME_EXTENSION = 1; // .crx files. |
170 ANDROID_APK = 2; // .apk files. | 170 ANDROID_APK = 2; // .apk files. |
| 171 // .zip files containing one of the above executable types. |
| 172 ZIPPED_EXECUTABLE = 3; |
171 } | 173 } |
172 optional DownloadType download_type = 10 [default = WIN_EXECUTABLE]; | 174 optional DownloadType download_type = 10 [default = WIN_EXECUTABLE]; |
173 } | 175 } |
174 | 176 |
175 message ClientDownloadResponse { | 177 message ClientDownloadResponse { |
176 enum Verdict { | 178 enum Verdict { |
177 // Download is considered safe. | 179 // Download is considered safe. |
178 SAFE = 0; | 180 SAFE = 0; |
179 // Download is considered dangerous. Chrome should show a warning to the | 181 // Download is considered dangerous. Chrome should show a warning to the |
180 // user. | 182 // user. |
181 DANGEROUS = 1; | 183 DANGEROUS = 1; |
182 // Download is unknown. Chrome should display a less severe warning. | 184 // Download is unknown. Chrome should display a less severe warning. |
183 UNCOMMON = 2; | 185 UNCOMMON = 2; |
184 } | 186 } |
185 required Verdict verdict = 1; | 187 required Verdict verdict = 1; |
186 } | 188 } |
OLD | NEW |