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

Side by Side Diff: webkit/fileapi/sandbox_file_stream_writer.cc

Issue 11030044: Merge 159454 - Flush at the end of local file writing in FileWriter API. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1271/src/
Patch Set: Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/fileapi/sandbox_file_stream_writer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/file_util_proxy.h" 7 #include "base/file_util_proxy.h"
8 #include "base/platform_file.h" 8 #include "base/platform_file.h"
9 #include "base/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"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 if (cancel_callback_.is_null()) 227 if (cancel_callback_.is_null())
228 return false; 228 return false;
229 229
230 net::CompletionCallback pending_cancel = cancel_callback_; 230 net::CompletionCallback pending_cancel = cancel_callback_;
231 has_pending_operation_ = false; 231 has_pending_operation_ = false;
232 cancel_callback_.Reset(); 232 cancel_callback_.Reset();
233 pending_cancel.Run(net::OK); 233 pending_cancel.Run(net::OK);
234 return true; 234 return true;
235 } 235 }
236 236
237 int SandboxFileStreamWriter::Flush(const net::CompletionCallback& callback) {
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).
240 return net::OK;
241 }
242
237 } // namespace fileapi 243 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/sandbox_file_stream_writer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698