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

Side by Side Diff: net/disk_cache/blockfile/in_flight_io.cc

Issue 121643003: Reorganize net/disk_cache into backend specific directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ios breakage Created 6 years, 10 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/blockfile/in_flight_io.h ('k') | net/disk_cache/blockfile/index_table_v3.h » ('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/in_flight_io.h" 5 #include "net/disk_cache/blockfile/in_flight_io.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/threading/thread_restrictions.h" 10 #include "base/threading/thread_restrictions.h"
11 11
12 namespace disk_cache { 12 namespace disk_cache {
13 13
14 BackgroundIO::BackgroundIO(InFlightIO* controller) 14 BackgroundIO::BackgroundIO(InFlightIO* controller)
15 : result_(-1), io_completed_(true, false), controller_(controller) { 15 : result_(-1), io_completed_(true, false), controller_(controller) {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 OnOperationComplete(operation, cancel_task); 101 OnOperationComplete(operation, cancel_task);
102 } 102 }
103 103
104 // Runs on the primary thread. 104 // Runs on the primary thread.
105 void InFlightIO::OnOperationPosted(BackgroundIO* operation) { 105 void InFlightIO::OnOperationPosted(BackgroundIO* operation) {
106 DCHECK(callback_thread_->BelongsToCurrentThread()); 106 DCHECK(callback_thread_->BelongsToCurrentThread());
107 io_list_.insert(make_scoped_refptr(operation)); 107 io_list_.insert(make_scoped_refptr(operation));
108 } 108 }
109 109
110 } // namespace disk_cache 110 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/in_flight_io.h ('k') | net/disk_cache/blockfile/index_table_v3.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698