OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/mem_entry_impl.h" | 5 #include "net/disk_cache/mem_entry_impl.h" |
6 | 6 |
| 7 #include "base/logging.h" |
7 #include "net/base/io_buffer.h" | 8 #include "net/base/io_buffer.h" |
8 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
9 #include "net/disk_cache/mem_backend_impl.h" | 10 #include "net/disk_cache/mem_backend_impl.h" |
10 | 11 |
11 using base::Time; | 12 using base::Time; |
12 | 13 |
13 namespace disk_cache { | 14 namespace disk_cache { |
14 | 15 |
15 MemEntryImpl::MemEntryImpl(MemBackendImpl* backend) { | 16 MemEntryImpl::MemEntryImpl(MemBackendImpl* backend) { |
16 doomed_ = false; | 17 doomed_ = false; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 last_used_ = current; | 170 last_used_ = current; |
170 | 171 |
171 if (modified) | 172 if (modified) |
172 last_modified_ = current; | 173 last_modified_ = current; |
173 | 174 |
174 if (!doomed_) | 175 if (!doomed_) |
175 backend_->UpdateRank(this); | 176 backend_->UpdateRank(this); |
176 } | 177 } |
177 | 178 |
178 } // namespace disk_cache | 179 } // namespace disk_cache |
OLD | NEW |