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

Side by Side Diff: net/disk_cache/storage_block.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/sparse_control.cc ('k') | net/disk_cache/trace.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-2008 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 // See net/disk_cache/disk_cache.h for the public interface. 5 // See net/disk_cache/disk_cache.h for the public interface.
6 6
7 #ifndef NET_DISK_CACHE_STORAGE_BLOCK_H__ 7 #ifndef NET_DISK_CACHE_STORAGE_BLOCK_H__
8 #define NET_DISK_CACHE_STORAGE_BLOCK_H__ 8 #define NET_DISK_CACHE_STORAGE_BLOCK_H__
9 9
10 #include "net/disk_cache/addr.h" 10 #include "net/disk_cache/addr.h"
11 #include "net/disk_cache/mapped_file.h" 11 #include "net/disk_cache/mapped_file.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void AllocateData(); 75 void AllocateData();
76 void DeleteData(); 76 void DeleteData();
77 77
78 T* data_; 78 T* data_;
79 MappedFile* file_; 79 MappedFile* file_;
80 Addr address_; 80 Addr address_;
81 bool modified_; 81 bool modified_;
82 bool own_data_; // Is data_ owned by this object or shared with someone else. 82 bool own_data_; // Is data_ owned by this object or shared with someone else.
83 bool extended_; // Used to store an entry of more than one block. 83 bool extended_; // Used to store an entry of more than one block.
84 84
85 DISALLOW_EVIL_CONSTRUCTORS(StorageBlock); 85 DISALLOW_COPY_AND_ASSIGN(StorageBlock);
86 }; 86 };
87 87
88 typedef StorageBlock<EntryStore> CacheEntryBlock; 88 typedef StorageBlock<EntryStore> CacheEntryBlock;
89 typedef StorageBlock<RankingsNode> CacheRankingsBlock; 89 typedef StorageBlock<RankingsNode> CacheRankingsBlock;
90 90
91 } // namespace disk_cache 91 } // namespace disk_cache
92 92
93 #endif // NET_DISK_CACHE_STORAGE_BLOCK_H__ 93 #endif // NET_DISK_CACHE_STORAGE_BLOCK_H__
OLDNEW
« no previous file with comments | « net/disk_cache/sparse_control.cc ('k') | net/disk_cache/trace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698