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 3// found in the LICENSE file. 4 5syntax = "proto2"; 6option optimize_for = LITE_RUNTIME; 7 8package extensions; 9 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 12// server to get more information, such as the blacklist type. 13message ClientCRXListInfoRequest { 14 // ID of the CRX package. 15 required string id = 1; 16 17 // Locale of the device, eg en, en_US. 18 optional string locale = 2; 19} 20 21message ClientCRXListInfoResponse { 22 enum Verdict { 23 NOT_IN_BLACKLIST = 0; 24 MALWARE = 1; 25 SECURITY_VULNERABILITY = 2; 26 CWS_POLICY_VIOLATION = 3; 27 POTENTIALLY_UNWANTED = 4; 28 } 29 // Although listed as optional, this is required. 30 optional Verdict verdict = 1 [default=NOT_IN_BLACKLIST]; 31 32 message UserMessage { 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. 35 optional string detail_message = 1; 36 } 37 optional UserMessage user_message = 2; 38} 39