| Index: net/disk_cache/backend_impl.h
|
| ===================================================================
|
| --- net/disk_cache/backend_impl.h (revision 21362)
|
| +++ net/disk_cache/backend_impl.h (working copy)
|
| @@ -35,13 +35,15 @@
|
| : path_(path), block_files_(path), mask_(0), max_size_(0),
|
| cache_type_(net::DISK_CACHE), uma_report_(0), user_flags_(0),
|
| init_(false), restarted_(false), unit_test_(false), read_only_(false),
|
| - new_eviction_(false), first_timer_(true) {}
|
| + new_eviction_(false), first_timer_(true),
|
| + ALLOW_THIS_IN_INITIALIZER_LIST(factory_(this)) {}
|
| // mask can be used to limit the usable size of the hash table, for testing.
|
| BackendImpl(const std::wstring& path, uint32 mask)
|
| : path_(path), block_files_(path), mask_(mask), max_size_(0),
|
| cache_type_(net::DISK_CACHE), uma_report_(0), user_flags_(kMask),
|
| init_(false), restarted_(false), unit_test_(false), read_only_(false),
|
| - new_eviction_(false), first_timer_(true) {}
|
| + new_eviction_(false), first_timer_(true),
|
| + ALLOW_THIS_IN_INITIALIZER_LIST(factory_(this)) {}
|
| ~BackendImpl();
|
|
|
| // Performs general initialization for this current instance of the cache.
|
| @@ -272,6 +274,7 @@
|
| Stats stats_; // Usage statistcs.
|
| base::RepeatingTimer<BackendImpl> timer_; // Usage timer.
|
| scoped_refptr<TraceObject> trace_object_; // Inits internal tracing.
|
| + ScopedRunnableMethodFactory<BackendImpl> factory_;
|
|
|
| DISALLOW_EVIL_CONSTRUCTORS(BackendImpl);
|
| };
|
|
|