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

Side by Side Diff: webkit/quota/quota_temporary_storage_evictor.h

Issue 8070001: Use base::Callback in Quota related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « webkit/quota/quota_manager_unittest.cc ('k') | webkit/quota/quota_temporary_storage_evictor.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ 5 #ifndef WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_
6 #define WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ 6 #define WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "base/memory/scoped_callback_factory.h"
13 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
14 #include "base/threading/non_thread_safe.h" 13 #include "base/threading/non_thread_safe.h"
15 #include "base/timer.h" 14 #include "base/timer.h"
16 #include "webkit/quota/quota_types.h" 15 #include "webkit/quota/quota_types.h"
17 16
18 class GURL; 17 class GURL;
19 18
20 namespace base { 19 namespace base {
21 class MessageLoopProxy; 20 class MessageLoopProxy;
22 } 21 }
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 Statistics previous_statistics_; 124 Statistics previous_statistics_;
126 EvictionRoundStatistics round_statistics_; 125 EvictionRoundStatistics round_statistics_;
127 base::Time time_of_end_of_last_nonskipped_round_; 126 base::Time time_of_end_of_last_nonskipped_round_;
128 base::Time time_of_end_of_last_round_; 127 base::Time time_of_end_of_last_round_;
129 128
130 int64 interval_ms_; 129 int64 interval_ms_;
131 bool repeated_eviction_; 130 bool repeated_eviction_;
132 131
133 base::OneShotTimer<QuotaTemporaryStorageEvictor> eviction_timer_; 132 base::OneShotTimer<QuotaTemporaryStorageEvictor> eviction_timer_;
134 base::RepeatingTimer<QuotaTemporaryStorageEvictor> histogram_timer_; 133 base::RepeatingTimer<QuotaTemporaryStorageEvictor> histogram_timer_;
135
136 base::ScopedCallbackFactory<QuotaTemporaryStorageEvictor> callback_factory_;
137 base::WeakPtrFactory<QuotaTemporaryStorageEvictor> weak_factory_; 134 base::WeakPtrFactory<QuotaTemporaryStorageEvictor> weak_factory_;
138 135
139 DISALLOW_COPY_AND_ASSIGN(QuotaTemporaryStorageEvictor); 136 DISALLOW_COPY_AND_ASSIGN(QuotaTemporaryStorageEvictor);
140 }; 137 };
141 138
142 } // namespace quota 139 } // namespace quota
143 140
144 #endif // WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ 141 #endif // WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_
OLDNEW
« no previous file with comments | « webkit/quota/quota_manager_unittest.cc ('k') | webkit/quota/quota_temporary_storage_evictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698