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> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/message_loop_proxy.h" | 17 #include "base/message_loop_proxy.h" |
18 #include "base/task.h" | |
19 #include "webkit/appcache/appcache_database.h" | 18 #include "webkit/appcache/appcache_database.h" |
20 #include "webkit/appcache/appcache_disk_cache.h" | 19 #include "webkit/appcache/appcache_disk_cache.h" |
21 #include "webkit/appcache/appcache_export.h" | 20 #include "webkit/appcache/appcache_export.h" |
22 #include "webkit/appcache/appcache_storage.h" | 21 #include "webkit/appcache/appcache_storage.h" |
23 | 22 |
24 namespace appcache { | 23 namespace appcache { |
25 | 24 |
26 class AppCacheStorageImpl : public AppCacheStorage { | 25 class AppCacheStorageImpl : public AppCacheStorage { |
27 public: | 26 public: |
28 explicit AppCacheStorageImpl(AppCacheService* service); | 27 explicit AppCacheStorageImpl(AppCacheService* service); |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // any tasks on the background database thread. | 166 // any tasks on the background database thread. |
168 std::deque<base::Closure> pending_simple_tasks_; | 167 std::deque<base::Closure> pending_simple_tasks_; |
169 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; | 168 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; |
170 | 169 |
171 friend class ChromeAppCacheServiceTest; | 170 friend class ChromeAppCacheServiceTest; |
172 }; | 171 }; |
173 | 172 |
174 } // namespace appcache | 173 } // namespace appcache |
175 | 174 |
176 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 175 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
OLD | NEW |