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

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

Issue 8438012: Parse the download server response. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove DCHECK bug Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // The full DER-encoded X.509 certificate extracted from the binary. 139 // The full DER-encoded X.509 certificate extracted from the binary.
140 optional bytes certificate_contents = 4; 140 optional bytes certificate_contents = 4;
141 } 141 }
142 142
143 // This field will only be set if the binary is signed. 143 // This field will only be set if the binary is signed.
144 optional SignatureInfo signature = 5; 144 optional SignatureInfo signature = 5;
145 145
146 // True if the download was user initiated. 146 // True if the download was user initiated.
147 optional bool user_initiated = 6; 147 optional bool user_initiated = 6;
148 } 148 }
149
150 message ClientDownloadResponse {
151 enum Verdict {
152 // Download is considered safe.
153 SAFE = 0;
154 // Download is considered dangerous. Chrome should show a warning to the
155 // user.
156 DANGEROUS = 1;
157 }
158 required Verdict verdict = 1;
159 }
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