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

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

Issue 1857983002: Add download_file_types.proto with ascii->binary conversion, as a resource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved/rewrote proto comments to README.md Created 4 years, 8 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
(Empty)
1 // Copyright 2016 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
5 syntax = "proto2";
6
7 option optimize_for = LITE_RUNTIME;
8
9 package safe_browsing;
10
11 // See //chrome/browser/resources/safe_browsing/README.md for guidelines
12 // on how to set fields in this file.
13
14 // Next id: 5
15 message DownloadFileType {
16 optional string extension = 1; // required
17 optional int64 uma_value = 2; // required
18 optional bool is_archive = 3; // required
19
20 enum DownloadDangerLevel {
21 NOT_DANGEROUS = 0;
22 ALLOW_ON_USER_GESTURE = 1;
23 DANGEROUS = 2;
24 }
25
26 enum DownloadAutoOpenHint {
27 ALLOW_AUTO_OPEN = 1;
28 DISALLOW_AUTO_OPEN = 2;
29 }
30
31 enum PlatformType {
32 ALL = 0;
33 PLATFORM_ANDROID = 1;
34 PLATFORM_CHROME_OS = 2;
35 PLATFORM_LINUX = 3;
36 PLATFORM_MAC = 4;
37 PLATFORM_WINDOWS = 5;
38 }
39
40 enum PingSetting {
41 SAMPLE_WITH_LIGHT_PING = 0;
42 NO_PING = 1;
43 FULL_PING = 2;
44 }
45
46 // TODO(nparker): Add a field describing what Chrome-internal unpacker
47 // should be used to scan this file type (DMG or zip are currently supported)
48
49 // Next id: 5
50 message PlatformSettings {
51 optional PlatformType platform = 1;
52 optional DownloadDangerLevel danger_level = 2; // required
53 optional DownloadAutoOpenHint auto_open_hint = 3; // required
54 optional PingSetting ping_setting = 4; // required
55 };
56
57 repeated PlatformSettings platform_settings = 4; // required >= 1
58 };
59
60 // Next id: 5
61 message DownloadFileTypeConfig {
62 optional uint32 version_id = 1;
63 optional float light_ping_probability = 2;
64 repeated DownloadFileType file_type = 3;
65 optional DownloadFileType default_file_type = 4;
66 }
OLDNEW
« chrome/browser/resources/safe_browsing/README.md ('K') | « chrome/common/safe_browsing/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698