| OLD | NEW |
| 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_index.h" | 5 #include "net/disk_cache/simple/simple_index.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/files/file_enumerator.h" |
| 12 #include "base/logging.h" | 13 #include "base/logging.h" |
| 13 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 14 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
| 15 #include "base/pickle.h" | 16 #include "base/pickle.h" |
| 16 #include "base/task_runner.h" | 17 #include "base/task_runner.h" |
| 17 #include "base/threading/worker_pool.h" | 18 #include "base/threading/worker_pool.h" |
| 18 #include "base/time.h" | 19 #include "base/time.h" |
| 19 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
| 20 #include "net/disk_cache/simple/simple_entry_format.h" | 21 #include "net/disk_cache/simple/simple_entry_format.h" |
| 21 #include "net/disk_cache/simple/simple_index_file.h" | 22 #include "net/disk_cache/simple/simple_index_file.h" |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 start - last_write_to_disk_); | 401 start - last_write_to_disk_); |
| 401 } | 402 } |
| 402 } | 403 } |
| 403 last_write_to_disk_ = start; | 404 last_write_to_disk_ = start; |
| 404 | 405 |
| 405 index_file_->WriteToDisk(entries_set_, cache_size_, | 406 index_file_->WriteToDisk(entries_set_, cache_size_, |
| 406 start, app_on_background_); | 407 start, app_on_background_); |
| 407 } | 408 } |
| 408 | 409 |
| 409 } // namespace disk_cache | 410 } // namespace disk_cache |
| OLD | NEW |