• Home
  • Raw
  • Download

Lines Matching full:uuid

26 class BASE_EXPORT Uuid {
28 // Length in bytes of the input required to format the input as a Uuid in the
32 // Generate a 128-bit random Uuid in the form of version 4. see RFC 4122,
33 // section 4.4. The format of Uuid version 4 must be
37 // UnguessableToken for greater type-safety if Uuid format is unnecessary.
38 static Uuid GenerateRandomV4();
40 // Formats a sequence of 16 random bytes as a Uuid in the form of version 4.
45 // masked over to adhere to the V4 Uuid format.
47 // inputs needs to be formatted as a V4 Uuid. Currently only exposed to the
48 // File System Access API to return a V4 Uuid for the getUniqueId() method.
49 static Uuid FormatRandomDataAsV4(
52 static Uuid FormatRandomDataAsV4ForTesting(
55 // Returns a valid Uuid if the input string conforms to the Uuid format, and
56 // an invalid Uuid otherwise. Note that this does NOT check if the hexadecimal
58 static Uuid ParseCaseInsensitive(StringPiece input);
59 static Uuid ParseCaseInsensitive(StringPiece16 input);
63 static Uuid ParseLowercase(StringPiece input);
64 static Uuid ParseLowercase(StringPiece16 input);
66 // Constructs an invalid Uuid.
67 Uuid();
69 Uuid(const Uuid& other);
70 Uuid& operator=(const Uuid& other);
71 Uuid(Uuid&& other);
72 Uuid& operator=(Uuid&& other);
76 // Returns the Uuid in a lowercase string format if it is valid, and an empty
81 // should not treat it as such. When the internal type of base::Uuid changes,
87 friend bool operator==(const Uuid&, const Uuid&) = default;
89 friend std::strong_ordering operator<=>(const Uuid&, const Uuid&) = default;
92 static Uuid FormatRandomDataAsV4Impl(
98 // during the migration to base::Uuid.
100 // The lowercase form of the Uuid. Empty for invalid Uuids.
107 size_t operator()(const Uuid& uuid) const;
110 // Stream operator so Uuid objects can be used in logging statements.
111 BASE_EXPORT std::ostream& operator<<(std::ostream& out, const Uuid& uuid);