Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: chrome/browser/ui/webui/quota_internals/quota_internals_proxy.cc

Issue 1782053004: Change how the quota system computes the total poolsize for temporary storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: poolSize Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698