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

Unified Diff: base/files/file.h

Issue 1148383003: Only support seeking file streams from the beginning of the file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more instance where files need to be tagged as async. Created 5 years, 7 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 | « no previous file | base/files/file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file.h
diff --git a/base/files/file.h b/base/files/file.h
index b21b15972bce7c62be0dad659cff4e76af262ac2..d57d1d6bac73aba009fbd4038a52d6dff101ca0e 100644
--- a/base/files/file.h
+++ b/base/files/file.h
@@ -168,6 +168,9 @@ class BASE_EXPORT File {
// Takes ownership of |platform_file|.
explicit File(PlatformFile platform_file);
+ // Takes ownership of |platform_file| and sets |async|.
+ File(PlatformFile platform_file, bool async);
Lei Zhang 2015/05/25 00:29:58 Calling this with |async| set to false is the same
Reilly Grant (use Gerrit) 2015/05/26 23:41:33 Done.
+
// Creates an object with a specific error_details code.
explicit File(Error error_details);
« no previous file with comments | « no previous file | base/files/file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698