OLD | NEW |
(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; |
| 19 |
| 20 enum DangerLevel { |
| 21 NOT_DANGEROUS = 0; |
| 22 ALLOW_ON_USER_GESTURE = 1; |
| 23 DANGEROUS = 2; |
| 24 } |
| 25 |
| 26 enum AutoOpenHint { |
| 27 ALLOW_AUTO_OPEN = 1; |
| 28 DISALLOW_AUTO_OPEN = 2; |
| 29 } |
| 30 |
| 31 enum PlatformType { |
| 32 PLATFORM_ANDROID = 1; |
| 33 PLATFORM_CHROME_OS = 2; |
| 34 PLATFORM_LINUX = 3; |
| 35 PLATFORM_MAC = 4; |
| 36 PLATFORM_WINDOWS = 5; |
| 37 } |
| 38 |
| 39 enum PingSetting { |
| 40 SAMPLED_PING = 0; |
| 41 NO_PING = 1; |
| 42 FULL_PING = 2; |
| 43 } |
| 44 |
| 45 // TODO(nparker): Add a field describing what Chrome-internal unpacker |
| 46 // should be used to scan this file type (DMG or zip are currently supported) |
| 47 |
| 48 // Next id: 5 |
| 49 message PlatformSettings { |
| 50 optional PlatformType platform = 1; |
| 51 optional DangerLevel danger_level = 2; // required |
| 52 optional AutoOpenHint auto_open_hint = 3; // required |
| 53 optional PingSetting ping_setting = 4; // required |
| 54 }; |
| 55 |
| 56 repeated PlatformSettings platform_settings = 4; // required >= 1 |
| 57 }; |
| 58 |
| 59 // Next id: 5 |
| 60 message DownloadFileTypeConfig { |
| 61 optional uint32 version_id = 1; |
| 62 optional float sampled_ping_probability = 2; |
| 63 repeated DownloadFileType file_types = 3; |
| 64 optional DownloadFileType default_file_type = 4; |
| 65 } |
OLD | NEW |