| 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 CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 const GURL& url, | 57 const GURL& url, |
| 58 AppCacheEntry* found_entry, | 58 AppCacheEntry* found_entry, |
| 59 AppCacheEntry* found_fallback_entry, | 59 AppCacheEntry* found_fallback_entry, |
| 60 bool* found_network_namespace) override; | 60 bool* found_network_namespace) override; |
| 61 void MarkEntryAsForeign(const GURL& entry_url, int64_t cache_id) override; | 61 void MarkEntryAsForeign(const GURL& entry_url, int64_t cache_id) override; |
| 62 void MakeGroupObsolete(AppCacheGroup* group, | 62 void MakeGroupObsolete(AppCacheGroup* group, |
| 63 Delegate* delegate, | 63 Delegate* delegate, |
| 64 int response_code) override; | 64 int response_code) override; |
| 65 void StoreEvictionTimes(AppCacheGroup* group) override; | 65 void StoreEvictionTimes(AppCacheGroup* group) override; |
| 66 AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url, | 66 AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url, |
| 67 int64_t group_id, | |
| 68 int64_t response_id) override; | 67 int64_t response_id) override; |
| 69 AppCacheResponseWriter* CreateResponseWriter(const GURL& manifest_url, | 68 AppCacheResponseWriter* CreateResponseWriter( |
| 70 int64_t group_id) override; | 69 const GURL& manifest_url) override; |
| 71 AppCacheResponseMetadataWriter* CreateResponseMetadataWriter( | 70 AppCacheResponseMetadataWriter* CreateResponseMetadataWriter( |
| 72 int64_t group_id, | |
| 73 int64_t response_id) override; | 71 int64_t response_id) override; |
| 74 void DoomResponses(const GURL& manifest_url, | 72 void DoomResponses(const GURL& manifest_url, |
| 75 const std::vector<int64_t>& response_ids) override; | 73 const std::vector<int64_t>& response_ids) override; |
| 76 void DeleteResponses(const GURL& manifest_url, | 74 void DeleteResponses(const GURL& manifest_url, |
| 77 const std::vector<int64_t>& response_ids) override; | 75 const std::vector<int64_t>& response_ids) override; |
| 78 | 76 |
| 79 private: | 77 private: |
| 80 // The AppCacheStorageImpl class methods and datamembers may only be | 78 // The AppCacheStorageImpl class methods and datamembers may only be |
| 81 // accessed on the IO thread. This class manufactures seperate DatabaseTasks | 79 // accessed on the IO thread. This class manufactures seperate DatabaseTasks |
| 82 // which access the DB on a seperate background thread. | 80 // which access the DB on a seperate background thread. |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 std::deque<base::Closure> pending_simple_tasks_; | 186 std::deque<base::Closure> pending_simple_tasks_; |
| 189 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; | 187 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; |
| 190 | 188 |
| 191 friend class content::AppCacheStorageImplTest; | 189 friend class content::AppCacheStorageImplTest; |
| 192 friend class content::ChromeAppCacheServiceTest; | 190 friend class content::ChromeAppCacheServiceTest; |
| 193 }; | 191 }; |
| 194 | 192 |
| 195 } // namespace content | 193 } // namespace content |
| 196 | 194 |
| 197 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 195 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
| OLD | NEW |