| OLD | NEW |
| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 virtual void NotifyOriginInUse(const GURL& origin); | 193 virtual void NotifyOriginInUse(const GURL& origin); |
| 194 virtual void NotifyOriginNoLongerInUse(const GURL& origin); | 194 virtual void NotifyOriginNoLongerInUse(const GURL& origin); |
| 195 | 195 |
| 196 // This method may only be called on the IO thread. | 196 // This method may only be called on the IO thread. |
| 197 // It may return NULL if the manager has already been deleted. | 197 // It may return NULL if the manager has already been deleted. |
| 198 QuotaManager* quota_manager() const; | 198 QuotaManager* quota_manager() const; |
| 199 | 199 |
| 200 protected: | 200 protected: |
| 201 friend class QuotaManager; | 201 friend class QuotaManager; |
| 202 friend class base::RefCountedThreadSafe<QuotaManagerProxy>; | 202 friend class base::RefCountedThreadSafe<QuotaManagerProxy>; |
| 203 |
| 203 QuotaManagerProxy(QuotaManager* manager, base::MessageLoopProxy* io_thread); | 204 QuotaManagerProxy(QuotaManager* manager, base::MessageLoopProxy* io_thread); |
| 204 ~QuotaManagerProxy(); | 205 virtual ~QuotaManagerProxy(); |
| 205 | 206 |
| 206 QuotaManager* manager_; // only accessed on the io thread | 207 QuotaManager* manager_; // only accessed on the io thread |
| 207 scoped_refptr<base::MessageLoopProxy> io_thread_; | 208 scoped_refptr<base::MessageLoopProxy> io_thread_; |
| 208 | 209 |
| 209 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); | 210 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); |
| 210 }; | 211 }; |
| 211 | 212 |
| 212 | 213 |
| 213 } // namespace quota | 214 } // namespace quota |
| 214 | 215 |
| 215 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ | 216 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ |
| OLD | NEW |