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_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 5 #ifndef WEBKIT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 6 #define WEBKIT_BROWSER_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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 virtual void FindResponseForMainRequest(const GURL& url, | 48 virtual void FindResponseForMainRequest(const GURL& url, |
49 const GURL& preferred_manifest_url, | 49 const GURL& preferred_manifest_url, |
50 Delegate* delegate) OVERRIDE; | 50 Delegate* delegate) OVERRIDE; |
51 virtual void FindResponseForSubRequest( | 51 virtual void FindResponseForSubRequest( |
52 AppCache* cache, const GURL& url, | 52 AppCache* cache, const GURL& url, |
53 AppCacheEntry* found_entry, AppCacheEntry* found_fallback_entry, | 53 AppCacheEntry* found_entry, AppCacheEntry* found_fallback_entry, |
54 bool* found_network_namespace) OVERRIDE; | 54 bool* found_network_namespace) OVERRIDE; |
55 virtual void MarkEntryAsForeign(const GURL& entry_url, | 55 virtual void MarkEntryAsForeign(const GURL& entry_url, |
56 int64 cache_id) OVERRIDE; | 56 int64 cache_id) OVERRIDE; |
57 virtual void MakeGroupObsolete(AppCacheGroup* group, | 57 virtual void MakeGroupObsolete(AppCacheGroup* group, |
58 Delegate* delegate) OVERRIDE; | 58 Delegate* delegate, |
| 59 int response_code) OVERRIDE; |
59 virtual AppCacheResponseReader* CreateResponseReader( | 60 virtual AppCacheResponseReader* CreateResponseReader( |
60 const GURL& manifest_url, int64 group_id, int64 response_id) OVERRIDE; | 61 const GURL& manifest_url, int64 group_id, int64 response_id) OVERRIDE; |
61 virtual AppCacheResponseWriter* CreateResponseWriter( | 62 virtual AppCacheResponseWriter* CreateResponseWriter( |
62 const GURL& manifest_url, int64 group_id) OVERRIDE; | 63 const GURL& manifest_url, int64 group_id) OVERRIDE; |
63 virtual void DoomResponses(const GURL& manifest_url, | 64 virtual void DoomResponses(const GURL& manifest_url, |
64 const std::vector<int64>& response_ids) OVERRIDE; | 65 const std::vector<int64>& response_ids) OVERRIDE; |
65 virtual void DeleteResponses(const GURL& manifest_url, | 66 virtual void DeleteResponses(const GURL& manifest_url, |
66 const std::vector<int64>& response_ids) OVERRIDE; | 67 const std::vector<int64>& response_ids) OVERRIDE; |
67 | 68 |
68 private: | 69 private: |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 std::deque<base::Closure> pending_simple_tasks_; | 171 std::deque<base::Closure> pending_simple_tasks_; |
171 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; | 172 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; |
172 | 173 |
173 friend class AppCacheStorageImplTest; | 174 friend class AppCacheStorageImplTest; |
174 friend class content::ChromeAppCacheServiceTest; | 175 friend class content::ChromeAppCacheServiceTest; |
175 }; | 176 }; |
176 | 177 |
177 } // namespace appcache | 178 } // namespace appcache |
178 | 179 |
179 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 180 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
OLD | NEW |