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

Unified Diff: util/file/file_io.h

Issue 1390023002: Add FileWriteMode::kCreateOrFail (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Test that kReuseOrCreate can create Created 5 years, 2 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 | « test/test.gyp ('k') | util/file/file_io_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/file/file_io.h
diff --git a/util/file/file_io.h b/util/file/file_io.h
index 0be3563fd58d81cb1d121e50685a1d1880fbdfae..7bc9673538be3eb695f78c82973b6f7629ae5af6 100644
--- a/util/file/file_io.h
+++ b/util/file/file_io.h
@@ -79,6 +79,9 @@ const FileHandle kInvalidFileHandle = INVALID_HANDLE_VALUE;
//! \brief Determines the mode that LoggingOpenFileForWrite() uses.
enum class FileWriteMode {
+ //! \brief Opens the file if it exists, or fails if it does not.
+ kReuseOrFail,
+
//! \brief Opens the file if it exists, or creates a new file.
kReuseOrCreate,
« no previous file with comments | « test/test.gyp ('k') | util/file/file_io_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698