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 <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 start - last_write_to_disk_); | 463 start - last_write_to_disk_); |
464 } else { | 464 } else { |
465 SIMPLE_CACHE_UMA(MEDIUM_TIMES, | 465 SIMPLE_CACHE_UMA(MEDIUM_TIMES, |
466 "IndexWriteInterval.Foreground", cache_type_, | 466 "IndexWriteInterval.Foreground", cache_type_, |
467 start - last_write_to_disk_); | 467 start - last_write_to_disk_); |
468 } | 468 } |
469 } | 469 } |
470 last_write_to_disk_ = start; | 470 last_write_to_disk_ = start; |
471 | 471 |
472 index_file_->WriteToDisk(entries_set_, cache_size_, | 472 index_file_->WriteToDisk(entries_set_, cache_size_, |
473 start, app_on_background_); | 473 start, app_on_background_, base::Closure()); |
474 } | 474 } |
475 | 475 |
476 } // namespace disk_cache | 476 } // namespace disk_cache |
OLD | NEW |