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

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

Issue 7839029: QuotaManager::DeleteOriginData now allows deletion of specific QuotaClients (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_QUOTA_QUOTA_MANAGER_H_ 5 #ifndef WEBKIT_QUOTA_QUOTA_MANAGER_H_
6 #define WEBKIT_QUOTA_QUOTA_MANAGER_H_ 6 #define WEBKIT_QUOTA_QUOTA_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <list> 10 #include <list>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // to NotifyOriginNoLongerInUse. 124 // to NotifyOriginNoLongerInUse.
125 void NotifyOriginInUse(const GURL& origin); 125 void NotifyOriginInUse(const GURL& origin);
126 void NotifyOriginNoLongerInUse(const GURL& origin); 126 void NotifyOriginNoLongerInUse(const GURL& origin);
127 bool IsOriginInUse(const GURL& origin) const { 127 bool IsOriginInUse(const GURL& origin) const {
128 return origins_in_use_.find(origin) != origins_in_use_.end(); 128 return origins_in_use_.find(origin) != origins_in_use_.end();
129 } 129 }
130 130
131 // Called by UI. 131 // Called by UI.
132 virtual void DeleteOriginData(const GURL& origin, 132 virtual void DeleteOriginData(const GURL& origin,
133 StorageType type, 133 StorageType type,
134 int quota_client_mask,
134 StatusCallback* callback); 135 StatusCallback* callback);
135 136
136 // Called by UI and internal modules. 137 // Called by UI and internal modules.
137 void GetAvailableSpace(AvailableSpaceCallback* callback); 138 void GetAvailableSpace(AvailableSpaceCallback* callback);
138 void GetTemporaryGlobalQuota(QuotaCallback* callback); 139 void GetTemporaryGlobalQuota(QuotaCallback* callback);
139 void SetTemporaryGlobalQuota(int64 new_quota, QuotaCallback* callback); 140 void SetTemporaryGlobalQuota(int64 new_quota, QuotaCallback* callback);
140 void GetPersistentHostQuota(const std::string& host, 141 void GetPersistentHostQuota(const std::string& host,
141 HostQuotaCallback* callback); 142 HostQuotaCallback* callback);
142 void SetPersistentHostQuota(const std::string& host, 143 void SetPersistentHostQuota(const std::string& host,
143 int64 new_quota, 144 int64 new_quota,
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 391
391 QuotaManager* manager_; // only accessed on the io thread 392 QuotaManager* manager_; // only accessed on the io thread
392 scoped_refptr<base::MessageLoopProxy> io_thread_; 393 scoped_refptr<base::MessageLoopProxy> io_thread_;
393 394
394 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); 395 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy);
395 }; 396 };
396 397
397 } // namespace quota 398 } // namespace quota
398 399
399 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ 400 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698