Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: chrome/common/safe_browsing/csd.proto

Issue 10382113: Add SafeBrowsing support for checking downloaded zip files that contain executables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FilePath printf format on Windows Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/safe_browsing/download_protection_service_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/download_protection_service_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698