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 #include "chrome/browser/browsing_data/browsing_data_quota_helper_impl.h" | 5 #include "chrome/browser/browsing_data/browsing_data_quota_helper_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 return; | 48 return; |
49 } | 49 } |
50 | 50 |
51 quota_manager_->SetPersistentHostQuota( | 51 quota_manager_->SetPersistentHostQuota( |
52 host, 0, | 52 host, 0, |
53 base::Bind(&BrowsingDataQuotaHelperImpl::DidRevokeHostQuota, | 53 base::Bind(&BrowsingDataQuotaHelperImpl::DidRevokeHostQuota, |
54 weak_factory_.GetWeakPtr())); | 54 weak_factory_.GetWeakPtr())); |
55 } | 55 } |
56 | 56 |
57 BrowsingDataQuotaHelperImpl::BrowsingDataQuotaHelperImpl( | 57 BrowsingDataQuotaHelperImpl::BrowsingDataQuotaHelperImpl( |
58 base::MessageLoopProxy* ui_thread, | 58 base::SingleThreadTaskRunner* ui_thread, |
59 base::MessageLoopProxy* io_thread, | 59 base::SingleThreadTaskRunner* io_thread, |
60 storage::QuotaManager* quota_manager) | 60 storage::QuotaManager* quota_manager) |
61 : BrowsingDataQuotaHelper(io_thread), | 61 : BrowsingDataQuotaHelper(io_thread), |
62 quota_manager_(quota_manager), | 62 quota_manager_(quota_manager), |
63 is_fetching_(false), | 63 is_fetching_(false), |
64 ui_thread_(ui_thread), | 64 ui_thread_(ui_thread), |
65 io_thread_(io_thread), | 65 io_thread_(io_thread), |
66 weak_factory_(this) { | 66 weak_factory_(this) { |
67 DCHECK(quota_manager); | 67 DCHECK(quota_manager); |
68 } | 68 } |
69 | 69 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 } | 183 } |
184 | 184 |
185 callback_.Run(result); | 185 callback_.Run(result); |
186 callback_.Reset(); | 186 callback_.Reset(); |
187 } | 187 } |
188 | 188 |
189 void BrowsingDataQuotaHelperImpl::DidRevokeHostQuota( | 189 void BrowsingDataQuotaHelperImpl::DidRevokeHostQuota( |
190 storage::QuotaStatusCode status_unused, | 190 storage::QuotaStatusCode status_unused, |
191 int64 quota_unused) { | 191 int64 quota_unused) { |
192 } | 192 } |
OLD | NEW |