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

Side by Side Diff: util/misc/uuid.h

Issue 999953002: Use LockFile/UnlockFile for Settings to port to Windows (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@lock-fileio-2
Patch Set: review fixes Created 5 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
« no previous file with comments | « util/file/file_io_win.cc ('k') | util/misc/uuid.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 //! \brief Formats the %UUID per RFC 4122 §3. 77 //! \brief Formats the %UUID per RFC 4122 §3.
78 //! 78 //!
79 //! \return A string of the form `"00112233-4455-6677-8899-aabbccddeeff"`. 79 //! \return A string of the form `"00112233-4455-6677-8899-aabbccddeeff"`.
80 std::string ToString() const; 80 std::string ToString() const;
81 81
82 #if defined(OS_WIN) || DOXYGEN 82 #if defined(OS_WIN) || DOXYGEN
83 //! \brief The same as ToString, but returned as a string16. 83 //! \brief The same as ToString, but returned as a string16.
84 base::string16 ToString16() const; 84 base::string16 ToString16() const;
85 #endif // OS_WIN 85 #endif // OS_WIN
86 86
87 //! \brief Uses a standard system facility to generate a new UUID.
88 static bool GenerateFromSystem(UUID* into);
Mark Mentovai 2015/04/01 21:15:19 Thank you for doing this! It’s been on my list cat
scottmg 2015/04/01 21:51:37 Done. I didn't add the constructor mode as UuidCre
89
87 // These fields are laid out according to RFC 4122 §4.1.2. 90 // These fields are laid out according to RFC 4122 §4.1.2.
88 uint32_t data_1; 91 uint32_t data_1;
89 uint16_t data_2; 92 uint16_t data_2;
90 uint16_t data_3; 93 uint16_t data_3;
91 uint8_t data_4[2]; 94 uint8_t data_4[2];
92 uint8_t data_5[6]; 95 uint8_t data_5[6];
93 }; 96 };
94 97
95 } // namespace crashpad 98 } // namespace crashpad
96 99
97 #endif // CRASHPAD_UTIL_MISC_UUID_H_ 100 #endif // CRASHPAD_UTIL_MISC_UUID_H_
OLDNEW
« no previous file with comments | « util/file/file_io_win.cc ('k') | util/misc/uuid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698