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

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

Issue 7879006: Delete Tracked, and move Location to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 3 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/dns/watching_file_reader.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/in_flight_io.h"
6 6
7 #include "base/location.h"
7 #include "base/logging.h" 8 #include "base/logging.h"
8 9
9 namespace disk_cache { 10 namespace disk_cache {
10 11
11 BackgroundIO::BackgroundIO(InFlightIO* controller) 12 BackgroundIO::BackgroundIO(InFlightIO* controller)
12 : controller_(controller), result_(-1), io_completed_(true, false) { 13 : controller_(controller), result_(-1), io_completed_(true, false) {
13 } 14 }
14 15
15 // Runs on the primary thread. 16 // Runs on the primary thread.
16 void BackgroundIO::OnIOSignalled() { 17 void BackgroundIO::OnIOSignalled() {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 OnOperationComplete(operation, cancel_task); 79 OnOperationComplete(operation, cancel_task);
79 } 80 }
80 81
81 // Runs on the primary thread. 82 // Runs on the primary thread.
82 void InFlightIO::OnOperationPosted(BackgroundIO* operation) { 83 void InFlightIO::OnOperationPosted(BackgroundIO* operation) {
83 DCHECK(callback_thread_->BelongsToCurrentThread()); 84 DCHECK(callback_thread_->BelongsToCurrentThread());
84 io_list_.insert(make_scoped_refptr(operation)); 85 io_list_.insert(make_scoped_refptr(operation));
85 } 86 }
86 87
87 } // namespace disk_cache 88 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/file_posix.cc ('k') | net/dns/watching_file_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698