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

Side by Side Diff: net/disk_cache/file_win.cc

Issue 137483004: Merge 243495 "Disk Cache: Use the old WorkerPool for Async IO on..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 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 | « net/disk_cache/file_posix.cc ('k') | net/net.gyp » ('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 "net/disk_cache/file.h" 5 #include "net/disk_cache/file.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // Static. 260 // Static.
261 void File::WaitForPendingIO(int* num_pending_io) { 261 void File::WaitForPendingIO(int* num_pending_io) {
262 while (*num_pending_io) { 262 while (*num_pending_io) {
263 // Asynchronous IO operations may be in flight and the completion may end 263 // Asynchronous IO operations may be in flight and the completion may end
264 // up calling us back so let's wait for them. 264 // up calling us back so let's wait for them.
265 base::MessageLoopForIO::IOHandler* handler = g_completion_handler.Pointer(); 265 base::MessageLoopForIO::IOHandler* handler = g_completion_handler.Pointer();
266 base::MessageLoopForIO::current()->WaitForIOCompletion(100, handler); 266 base::MessageLoopForIO::current()->WaitForIOCompletion(100, handler);
267 } 267 }
268 } 268 }
269 269
270 // Static.
271 void File::DropPendingIO() {
272 }
273
270 } // namespace disk_cache 274 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/file_posix.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698