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/ui/webui/quota_internals/quota_internals_proxy.h" | 5 #include "chrome/browser/ui/webui/quota_internals/quota_internals_proxy.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 BrowserThread::PostTask( | 29 BrowserThread::PostTask( |
30 BrowserThread::IO, FROM_HERE, | 30 BrowserThread::IO, FROM_HERE, |
31 base::Bind(&QuotaInternalsProxy::RequestInfo, this, quota_manager)); | 31 base::Bind(&QuotaInternalsProxy::RequestInfo, this, quota_manager)); |
32 return; | 32 return; |
33 } | 33 } |
34 quota_manager_ = quota_manager; | 34 quota_manager_ = quota_manager; |
35 { | 35 { |
36 // crbug.com/349708 | 36 // crbug.com/349708 |
37 TRACE_EVENT0("io", "QuotaInternalsProxy::RequestInfo"); | 37 TRACE_EVENT0("io", "QuotaInternalsProxy::RequestInfo"); |
38 | 38 |
39 quota_manager_->GetAvailableSpace( | 39 quota_manager_->xGetAvailableSpace( |
40 base::Bind(&QuotaInternalsProxy::DidGetAvailableSpace, | 40 base::Bind(&QuotaInternalsProxy::DidGetAvailableSpace, |
41 weak_factory_.GetWeakPtr())); | 41 weak_factory_.GetWeakPtr())); |
42 } | 42 } |
43 | 43 |
44 quota_manager_->GetTemporaryGlobalQuota( | 44 quota_manager_->GetTemporaryGlobalQuota( |
45 base::Bind(&QuotaInternalsProxy::DidGetGlobalQuota, | 45 base::Bind(&QuotaInternalsProxy::DidGetGlobalQuota, |
46 weak_factory_.GetWeakPtr(), | 46 weak_factory_.GetWeakPtr(), |
47 storage::kStorageTypeTemporary)); | 47 storage::kStorageTypeTemporary)); |
48 | 48 |
49 quota_manager_->GetGlobalUsage( | 49 quota_manager_->GetGlobalUsage( |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 DCHECK(quota_manager_.get()); | 229 DCHECK(quota_manager_.get()); |
230 quota_manager_->GetHostUsage(host, | 230 quota_manager_->GetHostUsage(host, |
231 type, | 231 type, |
232 base::Bind(&QuotaInternalsProxy::DidGetHostUsage, | 232 base::Bind(&QuotaInternalsProxy::DidGetHostUsage, |
233 weak_factory_.GetWeakPtr(), | 233 weak_factory_.GetWeakPtr(), |
234 host, | 234 host, |
235 type)); | 235 type)); |
236 } | 236 } |
237 | 237 |
238 } // namespace quota_internals | 238 } // namespace quota_internals |
OLD | NEW |