summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornoelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-09 17:03:35 +0000
committernoelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-09 17:03:35 +0000
commit42d04060238a84c44ed01a5b20150ffd98f32880 (patch)
treeec55b93e606b89a3f4e021fa9d50dab89380c76c
parentd2fdac34616d5455b0b460b827d4b9281a731606 (diff)
downloadchromium_src-42d04060238a84c44ed01a5b20150ffd98f32880.zip
chromium_src-42d04060238a84c44ed01a5b20150ffd98f32880.tar.gz
chromium_src-42d04060238a84c44ed01a5b20150ffd98f32880.tar.bz2
Sync the client (Chrome) version of the SafeBrowsing csd protocol buffer definition with the version we have on the server.
This change adds a couple of fields which will be used by Chrome on Android to display custom SafeBrowsing warnings. BUG=None Review URL: https://chromiumcodereview.appspot.com/10827231 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150821 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/common/safe_browsing/csd.proto15
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/common/safe_browsing/csd.proto b/chrome/common/safe_browsing/csd.proto
index 853b164..bb6b75f 100644
--- a/chrome/common/safe_browsing/csd.proto
+++ b/chrome/common/safe_browsing/csd.proto
@@ -172,6 +172,9 @@ message ClientDownloadRequest {
ZIPPED_EXECUTABLE = 3;
}
optional DownloadType download_type = 10 [default = WIN_EXECUTABLE];
+
+ // Locale of the device, eg en, en_US.
+ optional string locale = 11;
}
message ClientDownloadResponse {
@@ -183,6 +186,18 @@ message ClientDownloadResponse {
DANGEROUS = 1;
// Download is unknown. Chrome should display a less severe warning.
UNCOMMON = 2;
+ // The download is potentially unwanted.
+ POTENTIALLY_UNWANTED = 3;
}
required Verdict verdict = 1;
+
+ message MoreInfo {
+ // A human-readable string describing the nature of the warning.
+ // Only if verdict != SAFE. Localized based on request.locale.
+ optional string description = 1;
+
+ // A URL to get more information about this warning, if available.
+ optional string url = 2;
+ }
+ optional MoreInfo more_info = 2;
}