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

Side by Side Diff: components/safe_browsing/common/crx_info.proto

Issue 2743563006: Componentize safe_browsing [+1]: move protos to component
Patch Set: fix remaining proto references Created 3 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 syntax = "proto2"; 5 syntax = "proto2";
6 option optimize_for = LITE_RUNTIME; 6 option optimize_for = LITE_RUNTIME;
7 7
8 package extensions; 8 package extensions;
9 9
10 // This is used to request more information on blacklisted CRX packages. The 10 // This is used to request more information on blacklisted CRX packages. The
11 // client maintains a local cache of blacklisted ids, and makes requests to our 11 // client maintains a local cache of blacklisted ids, and makes requests to our
12 // server to get more information, such as the blacklist type. 12 // server to get more information, such as the blacklist type.
13 message ClientCRXListInfoRequest { 13 message ClientCRXListInfoRequest {
14 // ID of the CRX package. 14 // ID of the CRX package.
15 required string id = 1; 15 required string id = 1;
16 16
17 // Locale of the device, eg en, en_US. 17 // Locale of the device, eg en, en_US.
18 optional string locale = 2; 18 optional string locale = 2;
19 } 19 }
20 20
21 message ClientCRXListInfoResponse { 21 message ClientCRXListInfoResponse {
22 enum Verdict { 22 enum Verdict {
23 NOT_IN_BLACKLIST = 0; 23 NOT_IN_BLACKLIST = 0;
24 MALWARE = 1; 24 MALWARE = 1;
25 SECURITY_VULNERABILITY = 2; 25 SECURITY_VULNERABILITY = 2;
26 CWS_POLICY_VIOLATION = 3; 26 CWS_POLICY_VIOLATION = 3;
27 POTENTIALLY_UNWANTED = 4; 27 POTENTIALLY_UNWANTED = 4;
28 } 28 }
29 // Although listed as optional, this is required. 29 // Although listed as optional, this is required.
30 optional Verdict verdict = 1 [default=NOT_IN_BLACKLIST]; 30 optional Verdict verdict = 1 [default = NOT_IN_BLACKLIST];
31 31
32 message UserMessage { 32 message UserMessage {
33 // If present, will be appended to disable reason in the details page. We 33 // If present, will be appended to disable reason in the details page. We
34 // could use this to send a URL to a blogpost or help article. 34 // could use this to send a URL to a blogpost or help article.
35 optional string detail_message = 1; 35 optional string detail_message = 1;
36 } 36 }
37 optional UserMessage user_message = 2; 37 optional UserMessage user_message = 2;
38 } 38 }
OLDNEW
« no previous file with comments | « components/safe_browsing/common/client_model.proto ('k') | components/safe_browsing/common/csd.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698