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

Side by Side Diff: net/disk_cache/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/block_files.h ('k') | net/disk_cache/entry_impl.cc » ('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_ENTRY_IMPL_H_ 5 #ifndef NET_DISK_CACHE_ENTRY_IMPL_H_
6 #define NET_DISK_CACHE_ENTRY_IMPL_H_ 6 #define NET_DISK_CACHE_ENTRY_IMPL_H_
7 7
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "net/disk_cache/disk_cache.h" 9 #include "net/disk_cache/disk_cache.h"
10 #include "net/disk_cache/storage_block.h" 10 #include "net/disk_cache/storage_block.h"
11 #include "net/disk_cache/storage_block-inl.h" 11 #include "net/disk_cache/storage_block-inl.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 BackendImpl* backend_; // Back pointer to the cache. 182 BackendImpl* backend_; // Back pointer to the cache.
183 scoped_array<char> user_buffers_[kNumStreams]; // Store user data. 183 scoped_array<char> user_buffers_[kNumStreams]; // Store user data.
184 // Files to store external user data and key. 184 // Files to store external user data and key.
185 scoped_refptr<File> files_[kNumStreams + 1]; 185 scoped_refptr<File> files_[kNumStreams + 1];
186 // Copy of the file used to store the key. We don't own this object. 186 // Copy of the file used to store the key. We don't own this object.
187 mutable File* key_file_; 187 mutable File* key_file_;
188 int unreported_size_[kNumStreams]; // Bytes not reported yet to the backend. 188 int unreported_size_[kNumStreams]; // Bytes not reported yet to the backend.
189 bool doomed_; // True if this entry was removed from the cache. 189 bool doomed_; // True if this entry was removed from the cache.
190 scoped_ptr<SparseControl> sparse_; // Support for sparse entries. 190 scoped_ptr<SparseControl> sparse_; // Support for sparse entries.
191 191
192 DISALLOW_EVIL_CONSTRUCTORS(EntryImpl); 192 DISALLOW_COPY_AND_ASSIGN(EntryImpl);
193 }; 193 };
194 194
195 } // namespace disk_cache 195 } // namespace disk_cache
196 196
197 #endif // NET_DISK_CACHE_ENTRY_IMPL_H_ 197 #endif // NET_DISK_CACHE_ENTRY_IMPL_H_
OLDNEW
« no previous file with comments | « net/disk_cache/block_files.h ('k') | net/disk_cache/entry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698