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

Unified Diff: util/misc/uuid.h

Issue 1004913004: win: Add UUID::InitializeFromSystemUUID() (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Rebase Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/crash_report_database_win.cc ('k') | util/misc/uuid.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/misc/uuid.h
diff --git a/util/misc/uuid.h b/util/misc/uuid.h
index b1b830d917bf15c7f28691dad2e8fcb78a8c35bf..29b36bc09b8c8c26ded6dd6e63effa7d23b5fb87 100644
--- a/util/misc/uuid.h
+++ b/util/misc/uuid.h
@@ -23,6 +23,10 @@
#include "base/strings/string_piece.h"
#include "build/build_config.h"
+#if defined(OS_WIN)
+#include <rpc.h>
+#endif
+
namespace crashpad {
//! \brief A universally unique identifier (%UUID).
@@ -63,12 +67,19 @@ struct UUID {
//! parsed, with the object state untouched.
bool InitializeFromString(const base::StringPiece& string);
+#if defined(OS_WIN) || DOXYGEN
+ //! \brief Initializes the %UUID from a system `UUID` or `GUID` structure.
+ //!
+ //! \param[in] system_uuid A system `UUID` or `GUID` structure.
+ void InitializeFromSystemUUID(const ::UUID* system_uuid);
+#endif // OS_WIN
+
//! \brief Formats the %UUID per RFC 4122 ยง3.
//!
//! \return A string of the form `"00112233-4455-6677-8899-aabbccddeeff"`.
std::string ToString() const;
-#if defined(OS_WIN)
+#if defined(OS_WIN) || DOXYGEN
//! \brief The same as ToString, but returned as a string16.
base::string16 ToString16() const;
#endif // OS_WIN
« no previous file with comments | « client/crash_report_database_win.cc ('k') | util/misc/uuid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698