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

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

Issue 544923002: Remove the tracing cache backend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@preventry
Patch Set: Created 6 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
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/tracing/tracing_cache_backend.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 "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/metrics/field_trial.h" 6 #include "base/metrics/field_trial.h"
7 #include "base/single_thread_task_runner.h" 7 #include "base/single_thread_task_runner.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "net/base/cache_type.h" 9 #include "net/base/cache_type.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
11 #include "net/disk_cache/blockfile/backend_impl.h" 11 #include "net/disk_cache/blockfile/backend_impl.h"
12 #include "net/disk_cache/cache_util.h" 12 #include "net/disk_cache/cache_util.h"
13 #include "net/disk_cache/disk_cache.h" 13 #include "net/disk_cache/disk_cache.h"
14 #include "net/disk_cache/memory/mem_backend_impl.h" 14 #include "net/disk_cache/memory/mem_backend_impl.h"
15 #include "net/disk_cache/simple/simple_backend_impl.h" 15 #include "net/disk_cache/simple/simple_backend_impl.h"
16 16
17 #ifdef USE_TRACING_CACHE_BACKEND
18 #include "net/disk_cache/tracing_cache_backend.h"
19 #endif
20
21 namespace { 17 namespace {
22 18
23 // Builds an instance of the backend depending on platform, type, experiments 19 // Builds an instance of the backend depending on platform, type, experiments
24 // etc. Takes care of the retry state. This object will self-destroy when 20 // etc. Takes care of the retry state. This object will self-destroy when
25 // finished. 21 // finished.
26 class CacheCreator { 22 class CacheCreator {
27 public: 23 public:
28 CacheCreator(const base::FilePath& path, 24 CacheCreator(const base::FilePath& path,
29 bool force, 25 bool force,
30 int max_bytes, 26 int max_bytes,
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 backend_type, 182 backend_type,
187 kNone, 183 kNone,
188 thread, 184 thread,
189 net_log, 185 net_log,
190 backend, 186 backend,
191 callback); 187 callback);
192 return creator->Run(); 188 return creator->Run();
193 } 189 }
194 190
195 } // namespace disk_cache 191 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/tracing/tracing_cache_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698