Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: webkit/appcache/appcache_storage_impl.h

Issue 7210006: AppCaches which belong to hosted apps are not protected from deletion (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Moving test helpers to webkit/appcache. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/appcache/appcache_service.cc ('k') | webkit/appcache/appcache_storage_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 bool is_disabled_; 151 bool is_disabled_;
152 152
153 // TODO(michaeln): use a disk_cache per group (manifest or group_id). 153 // TODO(michaeln): use a disk_cache per group (manifest or group_id).
154 scoped_ptr<AppCacheDiskCache> disk_cache_; 154 scoped_ptr<AppCacheDiskCache> disk_cache_;
155 155
156 // Used to short-circuit certain operations without having to schedule 156 // Used to short-circuit certain operations without having to schedule
157 // any tasks on the background database thread. 157 // any tasks on the background database thread.
158 std::deque<Task*> pending_simple_tasks_; 158 std::deque<Task*> pending_simple_tasks_;
159 ScopedRunnableMethodFactory<AppCacheStorageImpl> method_factory_; 159 ScopedRunnableMethodFactory<AppCacheStorageImpl> method_factory_;
160 160
161 FRIEND_TEST_ALL_PREFIXES(ChromeAppCacheServiceTest, KeepOnDestruction); 161 friend class ChromeAppCacheServiceTest;
162 FRIEND_TEST_ALL_PREFIXES(ChromeAppCacheServiceTest, RemoveOnDestruction);
163 }; 162 };
164 163
165 } // namespace appcache 164 } // namespace appcache
166 165
167 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 166 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_service.cc ('k') | webkit/appcache/appcache_storage_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698