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

Side by Side Diff: storage/browser/quota/quota_temporary_storage_evictor.h

Issue 1429333002: Deprecate STORAGE_EXPORT_PRIVATE macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix rebase error Created 5 years, 1 month 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 | « storage/browser/quota/quota_database.h ('k') | storage/browser/quota/storage_monitor.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 STORAGE_BROWSER_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ 5 #ifndef STORAGE_BROWSER_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_
6 #define STORAGE_BROWSER_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ 6 #define STORAGE_BROWSER_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/threading/non_thread_safe.h" 12 #include "base/threading/non_thread_safe.h"
13 #include "base/timer/timer.h" 13 #include "base/timer/timer.h"
14 #include "storage/browser/storage_browser_export.h" 14 #include "storage/browser/storage_browser_export.h"
15 #include "storage/common/quota/quota_types.h" 15 #include "storage/common/quota/quota_types.h"
16 16
17 class GURL; 17 class GURL;
18 18
19 namespace content { 19 namespace content {
20 class QuotaTemporaryStorageEvictorTest; 20 class QuotaTemporaryStorageEvictorTest;
21 } 21 }
22 22
23 namespace storage { 23 namespace storage {
24 24
25 class QuotaEvictionHandler; 25 class QuotaEvictionHandler;
26 struct UsageAndQuota; 26 struct UsageAndQuota;
27 27
28 class STORAGE_EXPORT_PRIVATE QuotaTemporaryStorageEvictor 28 class STORAGE_EXPORT QuotaTemporaryStorageEvictor : public base::NonThreadSafe {
29 : public base::NonThreadSafe {
30 public: 29 public:
31 struct Statistics { 30 struct Statistics {
32 Statistics() 31 Statistics()
33 : num_errors_on_evicting_origin(0), 32 : num_errors_on_evicting_origin(0),
34 num_errors_on_getting_usage_and_quota(0), 33 num_errors_on_getting_usage_and_quota(0),
35 num_evicted_origins(0), 34 num_evicted_origins(0),
36 num_eviction_rounds(0), 35 num_eviction_rounds(0),
37 num_skipped_eviction_rounds(0) {} 36 num_skipped_eviction_rounds(0) {}
38 int64 num_errors_on_evicting_origin; 37 int64 num_errors_on_evicting_origin;
39 int64 num_errors_on_getting_usage_and_quota; 38 int64 num_errors_on_getting_usage_and_quota;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 base::OneShotTimer eviction_timer_; 124 base::OneShotTimer eviction_timer_;
126 base::RepeatingTimer histogram_timer_; 125 base::RepeatingTimer histogram_timer_;
127 base::WeakPtrFactory<QuotaTemporaryStorageEvictor> weak_factory_; 126 base::WeakPtrFactory<QuotaTemporaryStorageEvictor> weak_factory_;
128 127
129 DISALLOW_COPY_AND_ASSIGN(QuotaTemporaryStorageEvictor); 128 DISALLOW_COPY_AND_ASSIGN(QuotaTemporaryStorageEvictor);
130 }; 129 };
131 130
132 } // namespace storage 131 } // namespace storage
133 132
134 #endif // STORAGE_BROWSER_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ 133 #endif // STORAGE_BROWSER_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_
OLDNEW
« no previous file with comments | « storage/browser/quota/quota_database.h ('k') | storage/browser/quota/storage_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698