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

Side by Side Diff: webkit/browser/fileapi/local_file_stream_writer.cc

Issue 19633002: Use a direct include of the message_loop header in webkit/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
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/browser/fileapi/local_file_stream_writer.h" 5 #include "webkit/browser/fileapi/local_file_stream_writer.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "net/base/file_stream.h" 9 #include "net/base/file_stream.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 12
13 namespace fileapi { 13 namespace fileapi {
14 14
15 namespace { 15 namespace {
16 16
17 const int kOpenFlagsForWrite = base::PLATFORM_FILE_OPEN | 17 const int kOpenFlagsForWrite = base::PLATFORM_FILE_OPEN |
18 base::PLATFORM_FILE_WRITE | 18 base::PLATFORM_FILE_WRITE |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 return false; 224 return false;
225 225
226 net::CompletionCallback pending_cancel = cancel_callback_; 226 net::CompletionCallback pending_cancel = cancel_callback_;
227 has_pending_operation_ = false; 227 has_pending_operation_ = false;
228 cancel_callback_.Reset(); 228 cancel_callback_.Reset();
229 pending_cancel.Run(net::OK); 229 pending_cancel.Run(net::OK);
230 return true; 230 return true;
231 } 231 }
232 232
233 } // namespace fileapi 233 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/isolated_file_util_unittest.cc ('k') | webkit/browser/fileapi/local_file_stream_writer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698