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

Unified Diff: util/mac/xattr.h

Issue 842513002: Create CrashReportDatabase interface, a test, and a Mac implementation. (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 11 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
Index: util/mac/xattr.h
diff --git a/util/mac/xattr.h b/util/mac/xattr.h
index b816f3909b565d4ca7346f13fe7d511287b3b3b5..76d8cd1e44561d2457a74fdf1d92abf0d7fb07c1 100644
--- a/util/mac/xattr.h
+++ b/util/mac/xattr.h
@@ -24,6 +24,14 @@
namespace crashpad {
+//! \brief Tests if an extended attribute is present on a file.
+//!
+//! \param[in] file The path to the file.
+//! \param[in] name The name of the extended attribute to test.
+//!
+//! \return `true` if the attribute exists, `false` if it does not.
+bool HasXattr(const base::FilePath& file, const base::StringPiece& name);
+
//! \brief Reads an extended attribute on a file.
//!
//! \param[in] file The path to the file.

Powered by Google App Engine
This is Rietveld 408576698