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

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

Issue 2657005: Get rid of DISALLOW_EVIL_CONSTRUCTORS macro usage in our code base. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: added the macro back Created 10 years, 6 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
« no previous file with comments | « net/disk_cache/mem_backend_impl.h ('k') | net/disk_cache/mem_rankings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ 5 #ifndef NET_DISK_CACHE_MEM_ENTRY_IMPL_H_
6 #define NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ 6 #define NET_DISK_CACHE_MEM_ENTRY_IMPL_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "net/disk_cache/disk_cache.h" 10 #include "net/disk_cache/disk_cache.h"
11 #include "testing/gtest/include/gtest/gtest_prod.h" 11 #include "testing/gtest/include/gtest/gtest_prod.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 MemEntryImpl* next_; // Pointers for the LRU list. 152 MemEntryImpl* next_; // Pointers for the LRU list.
153 MemEntryImpl* prev_; 153 MemEntryImpl* prev_;
154 MemEntryImpl* parent_; // Pointer to the parent entry. 154 MemEntryImpl* parent_; // Pointer to the parent entry.
155 scoped_ptr<EntryMap> children_; 155 scoped_ptr<EntryMap> children_;
156 156
157 base::Time last_modified_; // LRU information. 157 base::Time last_modified_; // LRU information.
158 base::Time last_used_; 158 base::Time last_used_;
159 MemBackendImpl* backend_; // Back pointer to the cache. 159 MemBackendImpl* backend_; // Back pointer to the cache.
160 bool doomed_; // True if this entry was removed from the cache. 160 bool doomed_; // True if this entry was removed from the cache.
161 161
162 DISALLOW_EVIL_CONSTRUCTORS(MemEntryImpl); 162 DISALLOW_COPY_AND_ASSIGN(MemEntryImpl);
163 }; 163 };
164 164
165 } // namespace disk_cache 165 } // namespace disk_cache
166 166
167 #endif // NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ 167 #endif // NET_DISK_CACHE_MEM_ENTRY_IMPL_H_
OLDNEW
« no previous file with comments | « net/disk_cache/mem_backend_impl.h ('k') | net/disk_cache/mem_rankings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698