File: nearby_share_error.h

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (117 lines) | stat: -rw-r--r-- 5,626 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_NEARBY_SHARING_NEARBY_SHARE_ERROR_H_
#define CHROME_BROWSER_NEARBY_SHARING_NEARBY_SHARE_ERROR_H_

// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused. If entries are added, kMaxValue should
// be updated. Keep in sync with the NearbyShareError UMA enum defined in
// //tools/metrics/histograms/metadata/nearby/enums.xml.
//
// LINT.IfChange(NearbyShareError)
enum class NearbyShareError {
  kPublicCertificateHasNoBluetoothMacAddress = 0,
  kPublicCertificateHasInvalidBluetoothMacAddress = 1,
  kRegisterSendSurfaceAlreadyRegistered = 2,
  kRegisterSendSurfaceNoAvailableConnectionMedium = 3,
  kUnregisterSendSurfaceUnknownTransferUpdateCallback = 4,
  kRegisterReceiveSurfaceNoAvailableConnectionMedium = 5,
  kRegisterReceiveSurfaceTransferCallbackAlreadyRegisteredDifferentState = 6,
  kSendAttachmentsNotScanning = 7,
  kSendAttachmentsUnknownShareTarget = 8,
  kSendAttachmentsNoAttachments = 9,
  kSendAttachmentsCouldNotCreateLocalEndpointInfo = 10,
  kAcceptUnknownShareTarget = 11,
  kAcceptNotAwaitingLocalConfirmation = 12,
  kRejectUnknownShareTarget = 13,
  kCancelUnknownShareTarget = 14,
  kMaxNearbyProcessRestart = 15,
  kBindToNearbyProcessReferenceExistsOrDisabled = 16,
  kBindToNearbyProcessFailedToGetReference = 17,
  kOnIncomingConnectionAcceptedFailedToGetDecoder = 18,
  kGetBluetoothAdapterUnsupported = 19,
  kStartFastInitiationAdvertisingFailed = 20,
  HandleEndpointDiscoveredFailedToGetDecoder = 21,
  kOutgoingAdvertisementDecodedFailedToParse = 22,
  kOutgoingDecryptedCertificateFailedToCreateShareTarget = 23,
  kSendPayloadsMissingConnection = 24,
  kSendPayloadsMissingTransferUpdateCallback = 25,
  kSendPayloadsMissingEndpointId = 26,
  kPayloadPathsRegisteredFailed = 27,
  kPayloadPathsRegisteredUnknownShareTarget = 28,
  kPayloadPathsRegisteredMissingTransferUpdateCallback = 29,
  kPayloadPathsRegisteredMissingEndpointId = 30,
  kOutgoingConnectionFailedtoInitiateConnection = 31,
  kSendIntroductionFailedToGetShareTarget = 32,
  kSendIntroductionMissingTransferUpdateCallback = 33,
  kSendIntroductionNoSendTransferCallbacks = 34,
  kSendIntroductionNoPayloads = 35,
  kCreatePayloadsNoAttachments = 36,
  kCreatePayloadsNoFileOrTextPayloads = 37,
  kCreatePayloadsFilePayloadWithoutPath = 38,
  kOnCreatePayloadsFailed = 39,
  kOnOpenFilesFailed = 40,
  kFailUnknownShareTarget = 41,
  kIncomingAdvertisementDecodedInvalidConnection = 42,
  kIncomingAdvertisementDecodedFailedToParse = 43,
  kCloseConnectionInvalidConnection = 44,
  kIncomingDecryptedCertificateInvalidConnection = 45,
  kIncomingDecryptedCertificateFailedToCreateShareTarget = 46,
  kRunPairedKeyVerificationFailedToReadAuthenticationToken = 47,
  kIncomingConnectionKeyVerificationInvalidConnectionOrEndpointId = 48,
  kIncomingConnectionKeyVerificationFailed = 49,
  kIncomingConnectionKeyVerificationUnknownResult = 50,
  kOutgoingConnectionKeyVerificationMissingConnection = 51,
  kOutgoingConnectionKeyVerificationMissingTransferUpdateCallback = 52,
  kOutgoingConnectionKeyVerificationFailed = 53,
  kOutgoingConnectionKeyVerificationUnknownResult = 54,
  kReceivedIntroductionMissingConnection = 55,
  kReceivedIntroductionInvalidFrame = 56,
  kReceivedIntroductionInvalidAttachmentSize = 57,
  kReceivedIntroductionTotalFileSizeOverflow = 58,
  kReceivedIntroductionInvalidTextAttachmentSize = 59,
  kReceivedIntroductionInvalidWifiSSID = 60,
  kReceivedIntroductionShareTargetNoAttachment = 61,
  kReceiveConnectionResponseMissingConnection = 62,
  kReceiveConnectionResponseMissingTransferUpdateCallback = 63,
  kReceiveConnectionResponseInvalidFrame = 64,
  kReceiveConnectionResponseNotEnoughSpace = 65,
  kReceiveConnectionResponseUnsupportedAttachmentType = 66,
  kReceiveConnectionResponseTimedOut = 67,
  kReceiveConnectionResponseConnectionFailed = 68,
  kStorageCheckCompletedNotEnoughSpace = 69,
  kStorageCheckCompletedMissingConnection = 70,
  kStorageCheckCompletedMissingTransferUpdateCallback = 71,
  kStorageCheckCompletedNoIncomingShareTarget = 72,
  kStorageCheckCompletedNoFramesReader = 73,
  kFrameReadNoFrameReader = 74,
  kIncomingMutualAcceptanceTimeout = 75,
  kOutgoingMutualAcceptanceTimeout = 76,
  kCreateShareTargetFailedToRetreivePublicCertificate = 77,
  kCreateShareTargetFailedToRetreiveDeviceName = 78,
  kIncomingPayloadsCompleteMissingConnection = 79,
  kIncomingPayloadsCompleteMissingPayloadId = 80,
  kIncomingPayloadsCompleteMissingPayload = 81,
  kIncomingPayloadsCompleteMissingTextPayloadId = 82,
  kIncomingPayloadsCompleteMissingTextPayload = 83,
  kIncomingPayloadsCompleteTextPayloadEmptyBytes = 84,
  kIncomingPayloadsCompleteMissingWifiPayloadId = 85,
  kIncomingPayloadsCompleteMissingWifiPayload = 86,
  kIncomingPayloadsCompleteWifiPayloadEmptyBytes = 87,
  kIncomingPayloadsCompleteWifiFailedToParse = 88,
  kIncomingPayloadsCompleteWifiNoPassword = 89,
  kIncomingPayloadsCompleteWifiHiddenNetwork = 90,
  kDisconnectFailedToGetShareTargetInfo = 91,
  kDisconnectMissingEndpointId = 92,
  kGetBluetoothMacAddressForShareTargetNoShareTargetInfo = 93,
  kGetBluetoothMacAddressForShareTargetNoDecryptedPublicCertificate = 94,
  kStartAdvertisingFailed = 95,
  kStopAdvertisingFailed = 96,
  kStartDiscoveryFailed = 97,
  kMaxValue = kStartDiscoveryFailed
};
// LINT.ThenChange(//tools/metrics/histograms/metadata/nearby/enums.xml:NearbyShareError)

#endif  // CHROME_BROWSER_NEARBY_SHARING_NEARBY_SHARE_ERROR_H_