diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-08-14 11:38:45 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-08-14 17:16:47 +0000 |
commit | 3a97ca8dd9b96b599ae2d33e40df0dd2f7ea5859 (patch) | |
tree | 43cc572ba067417c7341db81f71ae7cc6e0fcc3e /chromium/base/files/file.h | |
parent | f61ab1ac7f855cd281809255c0aedbb1895e1823 (diff) |
BASELINE: Update chromium to 45.0.2454.40
Change-Id: Id2121d9f11a8fc633677236c65a3e41feef589e4
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'chromium/base/files/file.h')
-rw-r--r-- | chromium/base/files/file.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/chromium/base/files/file.h b/chromium/base/files/file.h index b21b15972bc..cba43536356 100644 --- a/chromium/base/files/file.h +++ b/chromium/base/files/file.h @@ -176,6 +176,9 @@ class BASE_EXPORT File { ~File(); + // Takes ownership of |platform_file|. + static File CreateForAsyncHandle(PlatformFile platform_file); + // Move operator= for C++03 move emulation of this type. File& operator=(RValue other); @@ -352,9 +355,9 @@ class BASE_EXPORT File { }; #endif - // Creates or opens the given file. Only called if |path_| has no + // Creates or opens the given file. Only called if |path| has no // traversal ('..') components. - void DoInitialize(uint32 flags); + void DoInitialize(const FilePath& path, uint32 flags); // TODO(tnagel): Reintegrate into Flush() once histogram isn't needed anymore, // cf. issue 473337. @@ -368,8 +371,9 @@ class BASE_EXPORT File { MemoryCheckingScopedFD file_; #endif - // Path that |Initialize()| was called with. Only set if safe (i.e. no '..'). - FilePath path_; + // A path to use for tracing purposes. Set if file tracing is enabled during + // |Initialize()|. + FilePath tracing_path_; // Object tied to the lifetime of |this| that enables/disables tracing. FileTracing::ScopedEnabler trace_enabler_; |