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

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

Issue 10827231: Sync the client (Chrome) version of the SafeBrowsing csd protocol buffer definition with the versio… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « no previous file | 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 171 // .zip files containing one of the above executable types.
172 ZIPPED_EXECUTABLE = 3; 172 ZIPPED_EXECUTABLE = 3;
173 } 173 }
174 optional DownloadType download_type = 10 [default = WIN_EXECUTABLE]; 174 optional DownloadType download_type = 10 [default = WIN_EXECUTABLE];
175
176 // Locale of the device, eg en, en_US.
177 optional string locale = 11;
175 } 178 }
176 179
177 message ClientDownloadResponse { 180 message ClientDownloadResponse {
178 enum Verdict { 181 enum Verdict {
179 // Download is considered safe. 182 // Download is considered safe.
180 SAFE = 0; 183 SAFE = 0;
181 // Download is considered dangerous. Chrome should show a warning to the 184 // Download is considered dangerous. Chrome should show a warning to the
182 // user. 185 // user.
183 DANGEROUS = 1; 186 DANGEROUS = 1;
184 // Download is unknown. Chrome should display a less severe warning. 187 // Download is unknown. Chrome should display a less severe warning.
185 UNCOMMON = 2; 188 UNCOMMON = 2;
189 // The download is potentially unwanted.
190 POTENTIALLY_UNWANTED = 3;
186 } 191 }
187 required Verdict verdict = 1; 192 required Verdict verdict = 1;
193
194 message MoreInfo {
195 // A human-readable string describing the nature of the warning.
196 // Only if verdict != SAFE. Localized based on request.locale.
197 optional string description = 1;
198
199 // A URL to get more information about this warning, if available.
200 optional string url = 2;
201 }
202 optional MoreInfo more_info = 2;
188 } 203 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698