| OLD | NEW |
| 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 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> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 scoped_ptr<FetchResultCallback> callback_; | 56 scoped_ptr<FetchResultCallback> callback_; |
| 57 | 57 |
| 58 typedef std::set<std::pair<std::string, quota::StorageType> > PendingHosts; | 58 typedef std::set<std::pair<std::string, quota::StorageType> > PendingHosts; |
| 59 PendingHosts pending_hosts_; | 59 PendingHosts pending_hosts_; |
| 60 std::map<std::string, QuotaInfo> quota_info_; | 60 std::map<std::string, QuotaInfo> quota_info_; |
| 61 | 61 |
| 62 bool is_fetching_; | 62 bool is_fetching_; |
| 63 | 63 |
| 64 scoped_refptr<base::MessageLoopProxy> ui_thread_; | 64 scoped_refptr<base::MessageLoopProxy> ui_thread_; |
| 65 scoped_refptr<base::MessageLoopProxy> io_thread_; | 65 scoped_refptr<base::MessageLoopProxy> io_thread_; |
| 66 base::ScopedCallbackFactory<BrowsingDataQuotaHelperImpl> callback_factory_; | 66 base::WeakPtrFactory<BrowsingDataQuotaHelperImpl> weak_factory_; |
| 67 | 67 |
| 68 friend class BrowsingDataQuotaHelper; | 68 friend class BrowsingDataQuotaHelper; |
| 69 friend class BrowsingDataQuotaHelperTest; | 69 friend class BrowsingDataQuotaHelperTest; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(BrowsingDataQuotaHelperImpl); | 71 DISALLOW_COPY_AND_ASSIGN(BrowsingDataQuotaHelperImpl); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 #endif // CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ | 74 #endif // CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ |
| OLD | NEW |