| 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_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ |
| 6 #define WEBKIT_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 APPCACHE_EXPORT void NotifyAppCacheDestroyed(); | 71 APPCACHE_EXPORT void NotifyAppCacheDestroyed(); |
| 72 | 72 |
| 73 // Prior to appcache service being ready, we have to queue | 73 // Prior to appcache service being ready, we have to queue |
| 74 // up reqeusts and defer acting on them until we're ready. | 74 // up reqeusts and defer acting on them until we're ready. |
| 75 RequestQueue pending_batch_requests_; | 75 RequestQueue pending_batch_requests_; |
| 76 RequestQueue pending_serial_requests_; | 76 RequestQueue pending_serial_requests_; |
| 77 | 77 |
| 78 // And once it's ready, we can only handle one delete request at a time, | 78 // And once it's ready, we can only handle one delete request at a time, |
| 79 // so we queue up additional requests while one is in already in progress. | 79 // so we queue up additional requests while one is in already in progress. |
| 80 DeletionCallback current_delete_request_callback_; | 80 DeletionCallback current_delete_request_callback_; |
| 81 scoped_refptr<net::CancelableOldCompletionCallback<AppCacheQuotaClient> > | 81 net::CancelableCompletionCallback service_delete_callback_; |
| 82 service_delete_callback_; | |
| 83 | 82 |
| 84 AppCacheService* service_; | 83 AppCacheService* service_; |
| 85 bool appcache_is_ready_; | 84 bool appcache_is_ready_; |
| 86 bool quota_manager_is_destroyed_; | 85 bool quota_manager_is_destroyed_; |
| 87 | 86 |
| 88 DISALLOW_COPY_AND_ASSIGN(AppCacheQuotaClient); | 87 DISALLOW_COPY_AND_ASSIGN(AppCacheQuotaClient); |
| 89 }; | 88 }; |
| 90 | 89 |
| 91 } // namespace appcache | 90 } // namespace appcache |
| 92 | 91 |
| 93 #endif // WEBKIT_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ | 92 #endif // WEBKIT_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ |
| OLD | NEW |