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

Side by Side Diff: net/disk_cache/backend_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/base/upload_data_stream.h ('k') | net/disk_cache/backend_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-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 of the cache. 5 // See net/disk_cache/disk_cache.h for the public interface of the cache.
6 6
7 #ifndef NET_DISK_CACHE_BACKEND_IMPL_H_ 7 #ifndef NET_DISK_CACHE_BACKEND_IMPL_H_
8 #define NET_DISK_CACHE_BACKEND_IMPL_H_ 8 #define NET_DISK_CACHE_BACKEND_IMPL_H_
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/hash_tables.h" 11 #include "base/hash_tables.h"
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 bool read_only_; // Prevents updates of the rankings data (used by tools). 296 bool read_only_; // Prevents updates of the rankings data (used by tools).
297 bool disabled_; 297 bool disabled_;
298 bool new_eviction_; // What eviction algorithm should be used. 298 bool new_eviction_; // What eviction algorithm should be used.
299 bool first_timer_; // True if the timer has not been called. 299 bool first_timer_; // True if the timer has not been called.
300 300
301 Stats stats_; // Usage statistcs. 301 Stats stats_; // Usage statistcs.
302 base::RepeatingTimer<BackendImpl> timer_; // Usage timer. 302 base::RepeatingTimer<BackendImpl> timer_; // Usage timer.
303 scoped_refptr<TraceObject> trace_object_; // Inits internal tracing. 303 scoped_refptr<TraceObject> trace_object_; // Inits internal tracing.
304 ScopedRunnableMethodFactory<BackendImpl> factory_; 304 ScopedRunnableMethodFactory<BackendImpl> factory_;
305 305
306 DISALLOW_EVIL_CONSTRUCTORS(BackendImpl); 306 DISALLOW_COPY_AND_ASSIGN(BackendImpl);
307 }; 307 };
308 308
309 // Returns the prefered max cache size given the available disk space. 309 // Returns the prefered max cache size given the available disk space.
310 int PreferedCacheSize(int64 available); 310 int PreferedCacheSize(int64 available);
311 311
312 } // namespace disk_cache 312 } // namespace disk_cache
313 313
314 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_ 314 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_
OLDNEW
« no previous file with comments | « net/base/upload_data_stream.h ('k') | net/disk_cache/backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698