diff options
author | noelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-24 01:21:33 +0000 |
---|---|---|
committer | noelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-24 01:21:33 +0000 |
commit | f416c205f1ab288766a5619a8cd8d8bf973039ef (patch) | |
tree | 32b6ee73d2997028743d9197a3695bb389848af4 /chrome/common/safe_browsing | |
parent | 4ae6aa038cd22a0d1a3b5e3cae28bcf91c6cc7ff (diff) | |
download | chromium_src-f416c205f1ab288766a5619a8cd8d8bf973039ef.zip chromium_src-f416c205f1ab288766a5619a8cd8d8bf973039ef.tar.gz chromium_src-f416c205f1ab288766a5619a8cd8d8bf973039ef.tar.bz2 |
Ping SafeBrowsing servers when Chrome users download an unknown crx and apk
file. For now the server will never report any of these files as being malicious.
BUG=
TEST=
Review URL: http://codereview.chromium.org/9839030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128639 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/safe_browsing')
-rw-r--r-- | chrome/common/safe_browsing/csd.proto | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/common/safe_browsing/csd.proto b/chrome/common/safe_browsing/csd.proto index 88c2399..e8fbc80 100644 --- a/chrome/common/safe_browsing/csd.proto +++ b/chrome/common/safe_browsing/csd.proto @@ -157,6 +157,19 @@ message ClientDownloadRequest { // True if the download was user initiated. optional bool user_initiated = 6; + + // Name of the file where the download would be stored if the + // download completes. E.g., "bla.exe". + optional string file_basename = 9; + + // Starting with Chrome M19 we're also sending back pings for Chrome + // extensions that get downloaded by users. + enum DownloadType { + WIN_EXECUTABLE = 0; // Currently all .exe, .cab and .msi files. + CHROME_EXTENSION = 1; // .crx files. + ANDROID_APK = 2; // .apk files. + } + optional DownloadType download_type = 10 [default = WIN_EXECUTABLE]; } message ClientDownloadResponse { |