| 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_STORAGE_IMPL_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
| 6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Sometimes we can respond without having to query the database. | 105 // Sometimes we can respond without having to query the database. |
| 106 bool FindResponseForMainRequestInGroup( | 106 bool FindResponseForMainRequestInGroup( |
| 107 AppCacheGroup* group, const GURL& url, Delegate* delegate); | 107 AppCacheGroup* group, const GURL& url, Delegate* delegate); |
| 108 void DeliverShortCircuitedFindMainResponse( | 108 void DeliverShortCircuitedFindMainResponse( |
| 109 const GURL& url, | 109 const GURL& url, |
| 110 const AppCacheEntry& found_entry, | 110 const AppCacheEntry& found_entry, |
| 111 scoped_refptr<AppCacheGroup> group, | 111 scoped_refptr<AppCacheGroup> group, |
| 112 scoped_refptr<AppCache> newest_cache, | 112 scoped_refptr<AppCache> newest_cache, |
| 113 scoped_refptr<DelegateReference> delegate_ref); | 113 scoped_refptr<DelegateReference> delegate_ref); |
| 114 | 114 |
| 115 void CheckPolicyAndCallOnMainResponseFound( | 115 void CallOnMainResponseFound( |
| 116 DelegateReferenceVector* delegates, | 116 DelegateReferenceVector* delegates, |
| 117 const GURL& url, const AppCacheEntry& entry, | 117 const GURL& url, const AppCacheEntry& entry, |
| 118 const GURL& fallback_url, const AppCacheEntry& fallback_entry, | 118 const GURL& fallback_url, const AppCacheEntry& fallback_entry, |
| 119 int64 cache_id, const GURL& manifest_url); | 119 int64 cache_id, const GURL& manifest_url); |
| 120 | 120 |
| 121 AppCacheDiskCache* disk_cache(); | 121 AppCacheDiskCache* disk_cache(); |
| 122 | 122 |
| 123 // The directory in which we place files in the file system. | 123 // The directory in which we place files in the file system. |
| 124 FilePath cache_directory_; | 124 FilePath cache_directory_; |
| 125 scoped_refptr<base::MessageLoopProxy> cache_thread_; | 125 scoped_refptr<base::MessageLoopProxy> cache_thread_; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // any tasks on the background database thread. | 157 // any tasks on the background database thread. |
| 158 std::deque<Task*> pending_simple_tasks_; | 158 std::deque<Task*> pending_simple_tasks_; |
| 159 ScopedRunnableMethodFactory<AppCacheStorageImpl> method_factory_; | 159 ScopedRunnableMethodFactory<AppCacheStorageImpl> method_factory_; |
| 160 | 160 |
| 161 friend class ChromeAppCacheServiceTest; | 161 friend class ChromeAppCacheServiceTest; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace appcache | 164 } // namespace appcache |
| 165 | 165 |
| 166 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 166 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
| OLD | NEW |