Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: net/disk_cache/mem_entry_impl.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 #include "net/disk_cache/mem_backend_impl.h" 8 #include "net/disk_cache/mem_backend_impl.h"
9 9
10 using base::Time;
11
10 namespace disk_cache { 12 namespace disk_cache {
11 13
12 MemEntryImpl::MemEntryImpl(MemBackendImpl* backend) { 14 MemEntryImpl::MemEntryImpl(MemBackendImpl* backend) {
13 doomed_ = false; 15 doomed_ = false;
14 backend_ = backend; 16 backend_ = backend;
15 ref_count_ = 0; 17 ref_count_ = 0;
16 data_size_[0] = data_size_[1] = 0; 18 data_size_[0] = data_size_[1] = 0;
17 } 19 }
18 20
19 MemEntryImpl::~MemEntryImpl() { 21 MemEntryImpl::~MemEntryImpl() {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 169
168 if (modified) 170 if (modified)
169 last_modified_ = current; 171 last_modified_ = current;
170 172
171 if (!doomed_) 173 if (!doomed_)
172 backend_->UpdateRank(this); 174 backend_->UpdateRank(this);
173 } 175 }
174 176
175 } // namespace disk_cache 177 } // namespace disk_cache
176 178
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698