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

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

Issue 7003021: Added DeleteOriginData to QuotaClient (Closed)
Patch Set: '' Created 9 years, 7 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) 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 int64 temporary_global_quota_; 143 int64 temporary_global_quota_;
144 QuotaCallbackQueue temporary_global_quota_callbacks_; 144 QuotaCallbackQueue temporary_global_quota_callbacks_;
145 145
146 std::map<std::string, int64> persistent_host_quota_; 146 std::map<std::string, int64> persistent_host_quota_;
147 HostQuotaCallbackMap persistent_host_quota_callbacks_; 147 HostQuotaCallbackMap persistent_host_quota_callbacks_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(QuotaManager); 149 DISALLOW_COPY_AND_ASSIGN(QuotaManager);
150 }; 150 };
151 151
152 struct QuotaManagerDeleter { 152 struct QuotaManagerDeleter {
153 static void Destruct(const QuotaManager* manager) { 153 static void Destruct(const QuotaManager* manager) {
michaeln 2011/05/13 01:04:24 looks like a stray edit
tzik (google) 2011/05/13 06:10:36 Done.
154 manager->DeleteOnCorrectThread(); 154 manager->DeleteOnCorrectThread();
155 } 155 }
156 }; 156 };
157 157
158 // The proxy may be called and finally released on any thread. 158 // The proxy may be called and finally released on any thread.
159 class QuotaManagerProxy 159 class QuotaManagerProxy
160 : public base::RefCountedThreadSafe<QuotaManagerProxy> { 160 : public base::RefCountedThreadSafe<QuotaManagerProxy> {
161 public: 161 public:
162 void GetUsageAndQuota(const GURL& origin, 162 void GetUsageAndQuota(const GURL& origin,
163 StorageType type, 163 StorageType type,
(...skipping 12 matching lines...) Expand all
176 QuotaManager* manager_; // only accessed on the io thread 176 QuotaManager* manager_; // only accessed on the io thread
177 scoped_refptr<base::MessageLoopProxy> io_thread_; 177 scoped_refptr<base::MessageLoopProxy> io_thread_;
178 178
179 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); 179 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy);
180 }; 180 };
181 181
182 182
183 } // namespace quota 183 } // namespace quota
184 184
185 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ 185 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698