| 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 "net/disk_cache/blockfile/backend_impl.h" | 5 #include "net/disk_cache/blockfile/backend_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/file_util.h" | |
| 10 #include "base/files/file.h" | 9 #include "base/files/file.h" |
| 11 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/files/file_util.h" |
| 12 #include "base/hash.h" | 12 #include "base/hash.h" |
| 13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 14 #include "base/metrics/field_trial.h" | 14 #include "base/metrics/field_trial.h" |
| 15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
| 16 #include "base/metrics/stats_counters.h" | 16 #include "base/metrics/stats_counters.h" |
| 17 #include "base/rand_util.h" | 17 #include "base/rand_util.h" |
| 18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
| 19 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
| 20 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
| 21 #include "base/sys_info.h" | 21 #include "base/sys_info.h" |
| (...skipping 2073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2095 if (total_memory > kMaxBuffersSize || total_memory <= 0) | 2095 if (total_memory > kMaxBuffersSize || total_memory <= 0) |
| 2096 total_memory = kMaxBuffersSize; | 2096 total_memory = kMaxBuffersSize; |
| 2097 | 2097 |
| 2098 done = true; | 2098 done = true; |
| 2099 } | 2099 } |
| 2100 | 2100 |
| 2101 return static_cast<int>(total_memory); | 2101 return static_cast<int>(total_memory); |
| 2102 } | 2102 } |
| 2103 | 2103 |
| 2104 } // namespace disk_cache | 2104 } // namespace disk_cache |
| OLD | NEW |