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

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

Issue 12035111: Move file_util_proxy to base/files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/file_util_helper.h ('k') | webkit/fileapi/local_file_util.cc » ('j') | 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/file_writer_delegate.h" 5 #include "webkit/fileapi/file_writer_delegate.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/file_util_proxy.h" 9 #include "base/files/file_util_proxy.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/message_loop_proxy.h" 11 #include "base/message_loop_proxy.h"
12 #include "base/sequenced_task_runner.h" 12 #include "base/sequenced_task_runner.h"
13 #include "base/threading/thread_restrictions.h" 13 #include "base/threading/thread_restrictions.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 #include "webkit/fileapi/file_stream_writer.h" 15 #include "webkit/fileapi/file_stream_writer.h"
16 #include "webkit/fileapi/file_system_context.h" 16 #include "webkit/fileapi/file_system_context.h"
17 17
18 namespace fileapi { 18 namespace fileapi {
19 19
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 if (error == base::PLATFORM_FILE_OK && flush_error != net::OK) { 242 if (error == base::PLATFORM_FILE_OK && flush_error != net::OK) {
243 // If the Flush introduced an error, overwrite the status. 243 // If the Flush introduced an error, overwrite the status.
244 // Otherwise, keep the original error status. 244 // Otherwise, keep the original error status.
245 error = NetErrorToPlatformFileError(flush_error); 245 error = NetErrorToPlatformFileError(flush_error);
246 progress_status = GetCompletionStatusOnError(); 246 progress_status = GetCompletionStatusOnError();
247 } 247 }
248 write_callback_.Run(error, bytes_written, progress_status); 248 write_callback_.Run(error, bytes_written, progress_status);
249 } 249 }
250 250
251 } // namespace fileapi 251 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/file_util_helper.h ('k') | webkit/fileapi/local_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698