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

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

Issue 1969043002: Fix include path for moved thread_task_runner_handle.h header in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 years, 7 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
« no previous file with comments | « net/disk_cache/blockfile/eviction.cc ('k') | net/disk_cache/blockfile/sparse_control.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 "net/disk_cache/blockfile/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/profiler/scoped_tracker.h" 10 #include "base/profiler/scoped_tracker.h"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
12 #include "base/task_runner.h" 12 #include "base/task_runner.h"
13 #include "base/thread_task_runner_handle.h"
14 #include "base/threading/thread_restrictions.h" 13 #include "base/threading/thread_restrictions.h"
14 #include "base/threading/thread_task_runner_handle.h"
15 #include "base/trace_event/trace_event.h" 15 #include "base/trace_event/trace_event.h"
16 16
17 namespace disk_cache { 17 namespace disk_cache {
18 18
19 BackgroundIO::BackgroundIO(InFlightIO* controller) 19 BackgroundIO::BackgroundIO(InFlightIO* controller)
20 : result_(-1), io_completed_(true, false), controller_(controller) { 20 : result_(-1), io_completed_(true, false), controller_(controller) {
21 } 21 }
22 22
23 // Runs on the primary thread. 23 // Runs on the primary thread.
24 void BackgroundIO::OnIOSignalled() { 24 void BackgroundIO::OnIOSignalled() {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 OnOperationComplete(operation, cancel_task); 110 OnOperationComplete(operation, cancel_task);
111 } 111 }
112 112
113 // Runs on the primary thread. 113 // Runs on the primary thread.
114 void InFlightIO::OnOperationPosted(BackgroundIO* operation) { 114 void InFlightIO::OnOperationPosted(BackgroundIO* operation) {
115 DCHECK(callback_task_runner_->RunsTasksOnCurrentThread()); 115 DCHECK(callback_task_runner_->RunsTasksOnCurrentThread());
116 io_list_.insert(make_scoped_refptr(operation)); 116 io_list_.insert(make_scoped_refptr(operation));
117 } 117 }
118 118
119 } // namespace disk_cache 119 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/eviction.cc ('k') | net/disk_cache/blockfile/sparse_control.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698