OLD | NEW |
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/file_util.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/stringprintf.h" | 7 #include "base/stringprintf.h" |
8 #include "net/base/cache_type.h" | 8 #include "net/base/cache_type.h" |
9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
10 #include "net/disk_cache/backend_impl.h" | 10 #include "net/disk_cache/backend_impl.h" |
11 #include "net/disk_cache/cache_util.h" | 11 #include "net/disk_cache/cache_util.h" |
12 #include "net/disk_cache/mem_backend_impl.h" | 12 #include "net/disk_cache/mem_backend_impl.h" |
13 #include "net/disk_cache/simple/simple_backend_impl.h" | 13 #include "net/disk_cache/simple/simple_backend_impl.h" |
14 | 14 |
15 #ifdef USE_TRACING_CACHE_BACKEND | 15 #ifdef USE_TRACING_CACHE_BACKEND |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 return *backend ? net::OK : net::ERR_FAILED; | 158 return *backend ? net::OK : net::ERR_FAILED; |
159 } | 159 } |
160 DCHECK(thread); | 160 DCHECK(thread); |
161 CacheCreator* creator = new CacheCreator(path, force, max_bytes, type, | 161 CacheCreator* creator = new CacheCreator(path, force, max_bytes, type, |
162 backend_type, kNone, | 162 backend_type, kNone, |
163 thread, net_log, backend, callback); | 163 thread, net_log, backend, callback); |
164 return creator->Run(); | 164 return creator->Run(); |
165 } | 165 } |
166 | 166 |
167 } // namespace disk_cache | 167 } // namespace disk_cache |
OLD | NEW |