Chromium Code Reviews| 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_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ |
| 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h" | 16 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h" |
| 17 #include "webkit/quota/quota_types.h" | 17 #include "webkit/common/quota/quota_types.h" |
| 18 | 18 |
| 19 class GURL; | 19 class GURL; |
| 20 | 20 |
| 21 class GURL; | |
|
kinuko
2013/05/28 15:19:28
not needed
tzik
2013/05/28 15:35:31
Done.
Thanks! This is a rebase failure.
| |
| 22 | |
| 21 namespace quota { | 23 namespace quota { |
| 22 class QuotaManager; | 24 class QuotaManager; |
| 23 } | 25 } |
| 24 | 26 |
| 25 // Implementation of BrowsingDataQuotaHelper. Since a client of | 27 // Implementation of BrowsingDataQuotaHelper. Since a client of |
| 26 // BrowsingDataQuotaHelper should live in UI thread and QuotaManager lives in | 28 // BrowsingDataQuotaHelper should live in UI thread and QuotaManager lives in |
| 27 // IO thread, we have to communicate over thread using PostTask. | 29 // IO thread, we have to communicate over thread using PostTask. |
| 28 class BrowsingDataQuotaHelperImpl : public BrowsingDataQuotaHelper { | 30 class BrowsingDataQuotaHelperImpl : public BrowsingDataQuotaHelper { |
| 29 public: | 31 public: |
| 30 virtual void StartFetching(const FetchResultCallback& callback) OVERRIDE; | 32 virtual void StartFetching(const FetchResultCallback& callback) OVERRIDE; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 scoped_refptr<base::MessageLoopProxy> io_thread_; | 67 scoped_refptr<base::MessageLoopProxy> io_thread_; |
| 66 base::WeakPtrFactory<BrowsingDataQuotaHelperImpl> weak_factory_; | 68 base::WeakPtrFactory<BrowsingDataQuotaHelperImpl> weak_factory_; |
| 67 | 69 |
| 68 friend class BrowsingDataQuotaHelper; | 70 friend class BrowsingDataQuotaHelper; |
| 69 friend class BrowsingDataQuotaHelperTest; | 71 friend class BrowsingDataQuotaHelperTest; |
| 70 | 72 |
| 71 DISALLOW_COPY_AND_ASSIGN(BrowsingDataQuotaHelperImpl); | 73 DISALLOW_COPY_AND_ASSIGN(BrowsingDataQuotaHelperImpl); |
| 72 }; | 74 }; |
| 73 | 75 |
| 74 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ | 76 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ |
| OLD | NEW |