OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/fileapi/sandbox_file_stream_writer.h" | 5 #include "webkit/fileapi/sandbox_file_stream_writer.h" |
6 | 6 |
7 #include "base/files/file_util_proxy.h" | 7 #include "base/files/file_util_proxy.h" |
8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
9 #include "base/task/sequenced_task_runner.h" | 9 #include "base/sequenced_task_runner.h" |
10 #include "net/base/io_buffer.h" | 10 #include "net/base/io_buffer.h" |
11 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
12 #include "webkit/blob/local_file_stream_reader.h" | 12 #include "webkit/blob/local_file_stream_reader.h" |
13 #include "webkit/fileapi/file_observers.h" | 13 #include "webkit/fileapi/file_observers.h" |
14 #include "webkit/fileapi/file_system_context.h" | 14 #include "webkit/fileapi/file_system_context.h" |
15 #include "webkit/fileapi/file_system_operation.h" | 15 #include "webkit/fileapi/file_system_operation.h" |
16 #include "webkit/fileapi/file_system_util.h" | 16 #include "webkit/fileapi/file_system_util.h" |
17 #include "webkit/fileapi/local_file_stream_writer.h" | 17 #include "webkit/fileapi/local_file_stream_writer.h" |
18 #include "webkit/quota/quota_manager.h" | 18 #include "webkit/quota/quota_manager.h" |
19 | 19 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 return true; | 234 return true; |
235 } | 235 } |
236 | 236 |
237 int SandboxFileStreamWriter::Flush(const net::CompletionCallback& callback) { | 237 int SandboxFileStreamWriter::Flush(const net::CompletionCallback& callback) { |
238 // For now, Flush is meaningful only for local native file access. It is no-op | 238 // For now, Flush is meaningful only for local native file access. It is no-op |
239 // for sandboxed filesystem files (see the discussion in crbug.com/144790). | 239 // for sandboxed filesystem files (see the discussion in crbug.com/144790). |
240 return net::OK; | 240 return net::OK; |
241 } | 241 } |
242 | 242 |
243 } // namespace fileapi | 243 } // namespace fileapi |
OLD | NEW |