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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url, | 66 AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url, |
67 int64_t response_id) override; | 67 int64_t response_id) override; |
68 AppCacheResponseWriter* CreateResponseWriter( | 68 AppCacheResponseWriter* CreateResponseWriter( |
69 const GURL& manifest_url) override; | 69 const GURL& manifest_url) override; |
70 AppCacheResponseMetadataWriter* CreateResponseMetadataWriter( | 70 AppCacheResponseMetadataWriter* CreateResponseMetadataWriter( |
71 int64_t response_id) override; | 71 int64_t response_id) override; |
72 void DoomResponses(const GURL& manifest_url, | 72 void DoomResponses(const GURL& manifest_url, |
73 const std::vector<int64_t>& response_ids) override; | 73 const std::vector<int64_t>& response_ids) override; |
74 void DeleteResponses(const GURL& manifest_url, | 74 void DeleteResponses(const GURL& manifest_url, |
75 const std::vector<int64_t>& response_ids) override; | 75 const std::vector<int64_t>& response_ids) override; |
| 76 bool IsInitialized() override; |
76 | 77 |
77 private: | 78 private: |
78 // The AppCacheStorageImpl class methods and datamembers may only be | 79 // The AppCacheStorageImpl class methods and datamembers may only be |
79 // accessed on the IO thread. This class manufactures seperate DatabaseTasks | 80 // accessed on the IO thread. This class manufactures seperate DatabaseTasks |
80 // which access the DB on a seperate background thread. | 81 // which access the DB on a seperate background thread. |
81 class DatabaseTask; | 82 class DatabaseTask; |
82 class InitTask; | 83 class InitTask; |
83 class DisableDatabaseTask; | 84 class DisableDatabaseTask; |
84 class GetAllInfoTask; | 85 class GetAllInfoTask; |
85 class StoreOrLoadTask; | 86 class StoreOrLoadTask; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 std::deque<base::Closure> pending_simple_tasks_; | 188 std::deque<base::Closure> pending_simple_tasks_; |
188 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; | 189 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; |
189 | 190 |
190 friend class content::AppCacheStorageImplTest; | 191 friend class content::AppCacheStorageImplTest; |
191 friend class content::ChromeAppCacheServiceTest; | 192 friend class content::ChromeAppCacheServiceTest; |
192 }; | 193 }; |
193 | 194 |
194 } // namespace content | 195 } // namespace content |
195 | 196 |
196 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 197 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
OLD | NEW |