summaryrefslogtreecommitdiffstats
path: root/chromium/base/files/file.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-10-26 13:57:00 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-11-02 11:31:01 +0000
commit1943b3c2a1dcee36c233724fc4ee7613d71b9cf6 (patch)
tree8c1b5f12357025c197da5427ae02cfdc2f3570d6 /chromium/base/files/file.h
parent21ba0c5d4bf8fba15dddd97cd693bad2358b77fd (diff)
BASELINE: Update Chromium to 94.0.4606.111
Change-Id: I924781584def20fc800bedf6ff41fdb96c438193 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/base/files/file.h')
-rw-r--r--chromium/base/files/file.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/chromium/base/files/file.h b/chromium/base/files/file.h
index 5f248d6a4e7..a264d930ded 100644
--- a/chromium/base/files/file.h
+++ b/chromium/base/files/file.h
@@ -18,19 +18,21 @@
#include "base/trace_event/base_tracing_forward.h"
#include "build/build_config.h"
-#if defined(OS_POSIX) || defined(OS_FUCHSIA)
-#include <sys/stat.h>
-#endif
-
-namespace base {
-
#if defined(OS_BSD) || defined(OS_APPLE) || defined(OS_NACL) || \
defined(OS_FUCHSIA) || (defined(OS_ANDROID) && __ANDROID_API__ < 21)
+struct stat;
+namespace base {
typedef struct stat stat_wrapper_t;
+}
#elif defined(OS_POSIX)
+struct stat64;
+namespace base {
typedef struct stat64 stat_wrapper_t;
+}
#endif
+namespace base {
+
// Thin wrapper around an OS-level file.
// Note that this class does not provide any support for asynchronous IO, other
// than the ability to create asynchronous handles on Windows.
@@ -179,8 +181,8 @@ class BASE_EXPORT File {
void Initialize(const FilePath& path, uint32_t flags);
// Returns |true| if the handle / fd wrapped by this object is valid. This
- // method doesn't interact with the file system (and is safe to be called from
- // ThreadRestrictions::SetIOAllowed(false) threads).
+ // method doesn't interact with the file system and is thus safe to be called
+ // from threads that disallow blocking.
bool IsValid() const;
// Returns true if a new file was created (or an old one truncated to zero