| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/backend_impl.h" | 5 #include "net/disk_cache/backend_impl.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
| 15 #include "base/sys_info.h" | 15 #include "base/sys_info.h" |
| 16 #include "base/threading/worker_pool.h" | 16 #include "base/threading/worker_pool.h" |
| 17 #include "base/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
| 18 #include "base/time.h" | 18 #include "base/time.h" |
| 19 #include "base/timer.h" | 19 #include "base/timer.h" |
| 20 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
| 21 #include "net/disk_cache/cache_util.h" | 21 #include "net/disk_cache/cache_util.h" |
| 22 #include "net/disk_cache/entry_impl.h" | 22 #include "net/disk_cache/entry_impl.h" |
| 23 #include "net/disk_cache/errors.h" | 23 #include "net/disk_cache/errors.h" |
| 24 #include "net/disk_cache/experiments.h" | 24 #include "net/disk_cache/experiments.h" |
| 25 #include "net/disk_cache/file.h" | 25 #include "net/disk_cache/file.h" |
| 26 #include "net/disk_cache/hash.h" | 26 #include "net/disk_cache/hash.h" |
| 27 #include "net/disk_cache/mem_backend_impl.h" | 27 #include "net/disk_cache/mem_backend_impl.h" |
| (...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2067 if (total_memory > kMaxBuffersSize || total_memory <= 0) | 2067 if (total_memory > kMaxBuffersSize || total_memory <= 0) |
| 2068 total_memory = kMaxBuffersSize; | 2068 total_memory = kMaxBuffersSize; |
| 2069 | 2069 |
| 2070 done = true; | 2070 done = true; |
| 2071 } | 2071 } |
| 2072 | 2072 |
| 2073 return static_cast<int>(total_memory); | 2073 return static_cast<int>(total_memory); |
| 2074 } | 2074 } |
| 2075 | 2075 |
| 2076 } // namespace disk_cache | 2076 } // namespace disk_cache |
| OLD | NEW |