OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 void OnDeletedOneResponse(int rv); | 100 void OnDeletedOneResponse(int rv); |
101 void OnDiskCacheInitialized(int rv); | 101 void OnDiskCacheInitialized(int rv); |
102 | 102 |
103 // Sometimes we can respond without having to query the database. | 103 // Sometimes we can respond without having to query the database. |
104 void DeliverShortCircuitedFindMainResponse( | 104 void DeliverShortCircuitedFindMainResponse( |
105 const GURL& url, AppCacheEntry found_entry, | 105 const GURL& url, AppCacheEntry found_entry, |
106 scoped_refptr<AppCacheGroup> group, scoped_refptr<AppCache> newest_cache, | 106 scoped_refptr<AppCacheGroup> group, scoped_refptr<AppCache> newest_cache, |
107 scoped_refptr<DelegateReference> delegate_ref); | 107 scoped_refptr<DelegateReference> delegate_ref); |
108 | 108 |
109 void CheckPolicyAndCallOnMainResponseFound( | 109 void CheckPolicyAndCallOnMainResponseFound( |
110 DelegateReferenceVector* delegates, const GURL& url, | 110 DelegateReferenceVector* delegates, |
111 const AppCacheEntry& entry, const AppCacheEntry& fallback_entry, | 111 const GURL& url, const AppCacheEntry& entry, |
| 112 const GURL& fallback_url, const AppCacheEntry& fallback_entry, |
112 int64 cache_id, const GURL& manifest_url); | 113 int64 cache_id, const GURL& manifest_url); |
113 | 114 |
114 AppCacheDiskCache* disk_cache(); | 115 AppCacheDiskCache* disk_cache(); |
115 | 116 |
116 // The directory in which we place files in the file system. | 117 // The directory in which we place files in the file system. |
117 FilePath cache_directory_; | 118 FilePath cache_directory_; |
118 scoped_refptr<base::MessageLoopProxy> cache_thread_; | 119 scoped_refptr<base::MessageLoopProxy> cache_thread_; |
119 bool is_incognito_; | 120 bool is_incognito_; |
120 | 121 |
121 // Structures to keep track of DatabaseTasks that are in-flight. | 122 // Structures to keep track of DatabaseTasks that are in-flight. |
(...skipping 26 matching lines...) Expand all Loading... |
148 // Used to short-circuit certain operations without having to schedule | 149 // Used to short-circuit certain operations without having to schedule |
149 // any tasks on the background database thread. | 150 // any tasks on the background database thread. |
150 std::set<GURL> origins_with_groups_; | 151 std::set<GURL> origins_with_groups_; |
151 std::deque<Task*> pending_simple_tasks_; | 152 std::deque<Task*> pending_simple_tasks_; |
152 ScopedRunnableMethodFactory<AppCacheStorageImpl> method_factory_; | 153 ScopedRunnableMethodFactory<AppCacheStorageImpl> method_factory_; |
153 }; | 154 }; |
154 | 155 |
155 } // namespace appcache | 156 } // namespace appcache |
156 | 157 |
157 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 158 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
OLD | NEW |