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/files/file_enumerator.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/metrics/field_trial.h" | 15 #include "base/metrics/field_trial.h" |
16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
17 #include "base/pickle.h" | 17 #include "base/pickle.h" |
18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
19 #include "base/strings/string_tokenizer.h" | 19 #include "base/strings/string_tokenizer.h" |
20 #include "base/task_runner.h" | 20 #include "base/task_runner.h" |
21 #include "base/threading/worker_pool.h" | 21 #include "base/threading/worker_pool.h" |
22 #include "base/time.h" | 22 #include "base/time/time.h" |
23 #include "net/base/net_errors.h" | 23 #include "net/base/net_errors.h" |
24 #include "net/disk_cache/simple/simple_entry_format.h" | 24 #include "net/disk_cache/simple/simple_entry_format.h" |
25 #include "net/disk_cache/simple/simple_index_file.h" | 25 #include "net/disk_cache/simple/simple_index_file.h" |
26 #include "net/disk_cache/simple/simple_synchronous_entry.h" | 26 #include "net/disk_cache/simple/simple_synchronous_entry.h" |
27 #include "net/disk_cache/simple/simple_util.h" | 27 #include "net/disk_cache/simple/simple_util.h" |
28 | 28 |
29 #if defined(OS_POSIX) | 29 #if defined(OS_POSIX) |
30 #include <sys/stat.h> | 30 #include <sys/stat.h> |
31 #include <sys/time.h> | 31 #include <sys/time.h> |
32 #endif | 32 #endif |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 start - last_write_to_disk_); | 427 start - last_write_to_disk_); |
428 } | 428 } |
429 } | 429 } |
430 last_write_to_disk_ = start; | 430 last_write_to_disk_ = start; |
431 | 431 |
432 index_file_->WriteToDisk(entries_set_, cache_size_, | 432 index_file_->WriteToDisk(entries_set_, cache_size_, |
433 start, app_on_background_); | 433 start, app_on_background_); |
434 } | 434 } |
435 | 435 |
436 } // namespace disk_cache | 436 } // namespace disk_cache |
OLD | NEW |