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" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
14 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 14 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
15 #include "content/public/browser/browser_context.h" | 15 #include "content/public/browser/browser_context.h" |
| 16 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/storage_partition.h" | 17 #include "content/public/browser/storage_partition.h" |
17 #include "webkit/quota/quota_manager.h" | 18 #include "webkit/quota/quota_manager.h" |
18 | 19 |
19 using content::BrowserThread; | 20 using content::BrowserThread; |
20 using content::BrowserContext; | 21 using content::BrowserContext; |
21 | 22 |
22 // static | 23 // static |
23 BrowsingDataQuotaHelper* BrowsingDataQuotaHelper::Create(Profile* profile) { | 24 BrowsingDataQuotaHelper* BrowsingDataQuotaHelper::Create(Profile* profile) { |
24 return new BrowsingDataQuotaHelperImpl( | 25 return new BrowsingDataQuotaHelperImpl( |
25 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), | 26 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 } | 171 } |
171 | 172 |
172 callback_.Run(result); | 173 callback_.Run(result); |
173 callback_.Reset(); | 174 callback_.Reset(); |
174 } | 175 } |
175 | 176 |
176 void BrowsingDataQuotaHelperImpl::DidRevokeHostQuota( | 177 void BrowsingDataQuotaHelperImpl::DidRevokeHostQuota( |
177 quota::QuotaStatusCode status_unused, | 178 quota::QuotaStatusCode status_unused, |
178 int64 quota_unused) { | 179 int64 quota_unused) { |
179 } | 180 } |
OLD | NEW |