Extension syncing: Introduce a NeedsSync pref
[chromium-blink-merge.git] / components / copresence / proto / enums.proto
blobe76eee1cb4794dc9d3adaa2c82ddea85246711e6
1 syntax = "proto2";
2 package copresence;
3 option optimize_for = LITE_RUNTIME;
4 enum IdentityType {
5   IDENTITY_TYPE_UNKNOWN = 0;
6   GAIA_USER = 1;
7   CHROMECAST = 2;
8   ANDROID = 3;
9   CHROME = 4;
10   UNREGISTERED = 5;
12 enum PushService {
13   PUSH_SERVICE_UNKNOWN = 0;
14   GCM = 1;
15   APNS = 2;
16   PUSH_SERVICE_NONE = 3;
18 enum ErrorType {
19   ERROR_TYPE_UNKNOWN = 0;
20   TOKEN_EXPIRED = 1;
21   MAC_ADDRESS_UNAVAILABLE = 2;
22   MAC_ADDRESS_NEEDS_PERMISSION = 3;
24 enum TokenStatus {
25   TOKEN_STATUS_UNKNOWN = 0;
26   VALID = 1;
27   INVALID = 2;
28   TRANSITIVE = 3;
30 enum TokenMedium {
31   TOKEN_MEDIUM_UNKNOWN = 0;
32   AUDIO_ULTRASOUND_PASSBAND = 1;
33   BLUETOOTH_CLASSIC_NAME = 2;
34   BLE_ADVERTISING_PACKET = 3;
35   WIFI_DIRECT_SSID = 4;
36   LOCAL_DEVICE = 5;
37   BLE_GATT_SERVICE = 6;
38   WIFI_AP_SSID = 7;
39   AUDIO_AUDIBLE_DTMF = 8;
41 enum AclType {
42   UNKNOWN_ACL_TYPE = 0;
43   NO_ACL_CHECK = 1;
44   OWNER_ONLY = 2;
45   NAMED_ACL = 4;
46   MESSAGE_ACL = 5;
47   REFERENCED_ACL = 6;
48   OPTED_OUT_MESSAGE_ACL = 7;
50 enum TokenInstructionType {
51   UNKNOWN_TOKEN_INSTRUCTION_TYPE = 0;
52   TRANSMIT = 1;
53   RECEIVE = 2;
55 enum PlatformType {
56   UNKNOWN_PLATFORM_TYPE = 0;
57   CHROMECAST_PLATFORM_TYPE = 5;
58   ANDROID_PLATFORM_TYPE = 6;
59   IOS_PLATFORM_TYPE = 7;
60   CHROME_PLATFORM_TYPE = 8;
62 enum InstructionType {
63   UNKNOWN_INSTRUCTION_TYPE = 0;
64   TOKEN = 1;
65   SCAN_WIFI = 2;
66   SCAN_BLE = 3;
68 enum StatusCode {
69   STATUS_CODE_UNKNOWN = -1;
70   OK = 0;
71   COPRESENCE_DISABLED = 201;
72   LOCATION_HISTORY_DISABLED = 202;
73   UNDERAGED = 203;
74   DEVICE_RE_REGISTRATION_REQUIRED = 204;
75   RATE_LIMITED = 301;
77 enum OptInState {
78   UNKNOWN_OPT_IN_STATE = 0;
79   OPTED_IN = 1;
80   OPTED_OUT = 2;
82 enum AudioConfiguration {
83   AUDIO_CONFIGURATION_UNKNOWN = 0;
84   AUDIO_CONFIGURATION_AUDIBLE = 1;
86 enum BroadcastScanConfiguration {
87   BROADCAST_SCAN_CONFIGURATION_UNKNOWN = 0;
88   BROADCAST_AND_SCAN = 1;
89   BROADCAST_ONLY = 2;
90   SCAN_ONLY = 3;