[Native File System] Create FileSystemFileWriterImpl to mirror the renderer side
This is the initial cl of the refactor of NativeFileSystemFileHandleImpl to
mirror the split on the renderer side with the handle and the writer as
two separate entities.
It is the initial implementation for FileSystemFileWriterImpl. It includes
only one no-op method for now: close().
This sets the stage for atomic writes as close() will be the explicit
termination of a write, which allows us to do the atomic operation.
Bug: 968550
Change-Id: I0af81efa46789f18c4a8b0bca3ab89c5703b798c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1662709
Commit-Queue: Olivier Yiptong <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Reviewed-by: Marijn Kruisselbrink <[email protected]>
Auto-Submit: Olivier Yiptong <[email protected]>
Cr-Commit-Position: refs/heads/master@{#671539}
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
index 518027c0..cb30b4fb 100644
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -1338,6 +1338,8 @@
"native_file_system/native_file_system_directory_handle_impl.h",
"native_file_system/native_file_system_file_handle_impl.cc",
"native_file_system/native_file_system_file_handle_impl.h",
+ "native_file_system/native_file_system_file_writer_impl.cc",
+ "native_file_system/native_file_system_file_writer_impl.h",
"native_file_system/native_file_system_handle_base.cc",
"native_file_system/native_file_system_handle_base.h",
"native_file_system/native_file_system_manager_impl.cc",