diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-02 19:14:29 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-02 19:14:29 +0000 |
commit | 07c3f84910a6bc63a69d5f7fe0725090cf2af1ce (patch) | |
tree | 6450123619273152c71b984d2565d22565dec244 /net/disk_cache/entry_impl.cc | |
parent | 606843faf131685e7802df12f2ee97efc7cf2f3b (diff) | |
download | chromium_src-07c3f84910a6bc63a69d5f7fe0725090cf2af1ce.zip chromium_src-07c3f84910a6bc63a69d5f7fe0725090cf2af1ce.tar.gz chromium_src-07c3f84910a6bc63a69d5f7fe0725090cf2af1ce.tar.bz2 |
Disk cache: Add a tool to upgrade a set of cache files from one version to
another.
Also moves crash_cache project to the "tools folder" on the solution.
Review URL: http://codereview.chromium.org/12851
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6226 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/entry_impl.cc')
-rw-r--r-- | net/disk_cache/entry_impl.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/disk_cache/entry_impl.cc b/net/disk_cache/entry_impl.cc index 2821540..2e7b8c46 100644 --- a/net/disk_cache/entry_impl.cc +++ b/net/disk_cache/entry_impl.cc @@ -499,6 +499,12 @@ void EntryImpl::DecrementIoCount() { backend_->DecrementIoCount(); } +void EntryImpl::SetTimes(base::Time last_used, base::Time last_modified) { + node_.Data()->last_used = last_used.ToInternalValue(); + node_.Data()->last_modified = last_modified.ToInternalValue(); + node_.set_modified(); +} + bool EntryImpl::CreateDataBlock(int index, int size) { Addr address(entry_.Data()->data_addr[index]); DCHECK(0 == index || 1 == index); |