OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/memory/weak_ptr.h" |
17 #include "base/time.h" | 18 #include "base/time.h" |
18 #include "chrome/browser/browsing_data_quota_helper.h" | 19 #include "chrome/browser/browsing_data_quota_helper.h" |
19 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
20 #include "webkit/quota/quota_types.h" | 21 #include "webkit/quota/quota_types.h" |
21 | 22 |
22 namespace quota { | 23 namespace quota { |
23 class QuotaManager; | 24 class QuotaManager; |
24 } | 25 } |
25 | 26 |
26 // Implementation of BrowsingDataQuotaHelper. Since a client of | 27 // Implementation of BrowsingDataQuotaHelper. Since a client of |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 scoped_refptr<base::MessageLoopProxy> io_thread_; | 71 scoped_refptr<base::MessageLoopProxy> io_thread_; |
71 base::WeakPtrFactory<BrowsingDataQuotaHelperImpl> weak_factory_; | 72 base::WeakPtrFactory<BrowsingDataQuotaHelperImpl> weak_factory_; |
72 | 73 |
73 friend class BrowsingDataQuotaHelper; | 74 friend class BrowsingDataQuotaHelper; |
74 friend class BrowsingDataQuotaHelperTest; | 75 friend class BrowsingDataQuotaHelperTest; |
75 | 76 |
76 DISALLOW_COPY_AND_ASSIGN(BrowsingDataQuotaHelperImpl); | 77 DISALLOW_COPY_AND_ASSIGN(BrowsingDataQuotaHelperImpl); |
77 }; | 78 }; |
78 | 79 |
79 #endif // CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ | 80 #endif // CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ |
OLD | NEW |