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

Side by Side Diff: webkit/browser/quota/quota_manager.h

Issue 23240002: Backend for DevTools quota managements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged. Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_H_ 5 #ifndef WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_H_
6 #define WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_H_ 6 #define WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 const QuotaCallback& callback); 197 const QuotaCallback& callback);
198 198
199 void GetPersistentHostQuota(const std::string& host, 199 void GetPersistentHostQuota(const std::string& host,
200 const QuotaCallback& callback); 200 const QuotaCallback& callback);
201 void SetPersistentHostQuota(const std::string& host, 201 void SetPersistentHostQuota(const std::string& host,
202 int64 new_quota, 202 int64 new_quota,
203 const QuotaCallback& callback); 203 const QuotaCallback& callback);
204 void GetGlobalUsage(StorageType type, const GlobalUsageCallback& callback); 204 void GetGlobalUsage(StorageType type, const GlobalUsageCallback& callback);
205 void GetHostUsage(const std::string& host, StorageType type, 205 void GetHostUsage(const std::string& host, StorageType type,
206 const UsageCallback& callback); 206 const UsageCallback& callback);
207 void GetHostUsage(const std::string& host, StorageType type,
208 QuotaClient::ID client_id, const UsageCallback& callback);
207 209
208 void GetStatistics(std::map<std::string, std::string>* statistics); 210 void GetStatistics(std::map<std::string, std::string>* statistics);
209 211
210 bool IsStorageUnlimited(const GURL& origin, StorageType type) const; 212 bool IsStorageUnlimited(const GURL& origin, StorageType type) const;
211 213
212 bool CanQueryDiskSize(const GURL& origin) const { 214 bool CanQueryDiskSize(const GURL& origin) const {
213 return special_storage_policy_.get() && 215 return special_storage_policy_.get() &&
214 special_storage_policy_->CanQueryDiskSize(origin); 216 special_storage_policy_->CanQueryDiskSize(origin);
215 } 217 }
216 218
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 464
463 QuotaManager* manager_; // only accessed on the io thread 465 QuotaManager* manager_; // only accessed on the io thread
464 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; 466 scoped_refptr<base::SingleThreadTaskRunner> io_thread_;
465 467
466 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); 468 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy);
467 }; 469 };
468 470
469 } // namespace quota 471 } // namespace quota
470 472
471 #endif // WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_H_ 473 #endif // WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698