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

Side by Side Diff: net/disk_cache/simple/simple_backend_impl.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/disk_cache_test_util.cc ('k') | net/disk_cache/simple/simple_entry_impl.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/simple/simple_backend_impl.h" 5 #include "net/disk_cache/simple/simple_backend_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstdlib> 8 #include <cstdlib>
9 #include <functional> 9 #include <functional>
10 10
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 12
13 #if defined(OS_POSIX) 13 #if defined(OS_POSIX)
14 #include <sys/resource.h> 14 #include <sys/resource.h>
15 #endif 15 #endif
16 16
17 #include "base/bind.h" 17 #include "base/bind.h"
18 #include "base/callback.h" 18 #include "base/callback.h"
19 #include "base/files/file_util.h" 19 #include "base/files/file_util.h"
20 #include "base/lazy_instance.h" 20 #include "base/lazy_instance.h"
21 #include "base/location.h" 21 #include "base/location.h"
22 #include "base/macros.h" 22 #include "base/macros.h"
23 #include "base/metrics/field_trial.h" 23 #include "base/metrics/field_trial.h"
24 #include "base/metrics/histogram_macros.h" 24 #include "base/metrics/histogram_macros.h"
25 #include "base/metrics/sparse_histogram.h" 25 #include "base/metrics/sparse_histogram.h"
26 #include "base/single_thread_task_runner.h" 26 #include "base/single_thread_task_runner.h"
27 #include "base/sys_info.h" 27 #include "base/sys_info.h"
28 #include "base/task_runner_util.h" 28 #include "base/task_runner_util.h"
29 #include "base/thread_task_runner_handle.h"
30 #include "base/threading/sequenced_worker_pool.h" 29 #include "base/threading/sequenced_worker_pool.h"
30 #include "base/threading/thread_task_runner_handle.h"
31 #include "base/time/time.h" 31 #include "base/time/time.h"
32 #include "net/base/net_errors.h" 32 #include "net/base/net_errors.h"
33 #include "net/disk_cache/cache_util.h" 33 #include "net/disk_cache/cache_util.h"
34 #include "net/disk_cache/simple/simple_entry_format.h" 34 #include "net/disk_cache/simple/simple_entry_format.h"
35 #include "net/disk_cache/simple/simple_entry_impl.h" 35 #include "net/disk_cache/simple/simple_entry_impl.h"
36 #include "net/disk_cache/simple/simple_histogram_macros.h" 36 #include "net/disk_cache/simple/simple_histogram_macros.h"
37 #include "net/disk_cache/simple/simple_index.h" 37 #include "net/disk_cache/simple/simple_index.h"
38 #include "net/disk_cache/simple/simple_index_file.h" 38 #include "net/disk_cache/simple/simple_index_file.h"
39 #include "net/disk_cache/simple/simple_synchronous_entry.h" 39 #include "net/disk_cache/simple/simple_synchronous_entry.h"
40 #include "net/disk_cache/simple/simple_util.h" 40 #include "net/disk_cache/simple/simple_util.h"
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 } 746 }
747 747
748 // static 748 // static
749 void SimpleBackendImpl::FlushWorkerPoolForTesting() { 749 void SimpleBackendImpl::FlushWorkerPoolForTesting() {
750 // We only need to do this if we there is an active task runner. 750 // We only need to do this if we there is an active task runner.
751 if (base::ThreadTaskRunnerHandle::IsSet()) 751 if (base::ThreadTaskRunnerHandle::IsSet())
752 g_sequenced_worker_pool.Get().FlushForTesting(); 752 g_sequenced_worker_pool.Get().FlushForTesting();
753 } 753 }
754 754
755 } // namespace disk_cache 755 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/disk_cache_test_util.cc ('k') | net/disk_cache/simple/simple_entry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698