summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_thread.h
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-29 22:46:55 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-29 22:46:55 +0000
commit35f2094cd0ac27018aff2646445f44c3f9ee8d36 (patch)
tree0f4892fb2f6bcf9d5f044e70c1cf1ed0d42bb882 /webkit/appcache/appcache_thread.h
parent6d38a7fc2594f14cbb87e28389c81965381b64e8 (diff)
downloadchromium_src-35f2094cd0ac27018aff2646445f44c3f9ee8d36.zip
chromium_src-35f2094cd0ac27018aff2646445f44c3f9ee8d36.tar.gz
chromium_src-35f2094cd0ac27018aff2646445f44c3f9ee8d36.tar.bz2
AppCacheDatabase and SQL based AppCacheStorageImpl.
Still nothing is being written to disk with this CL, in-memory SQLite and DiskCaches are being utilized. Responses are not yet being removed from the DiskCasche when the should be. Once that's done (in the next CL), we'll start saving things on disk. BUG=none TEST=appcache_database_unittest.cc, appcache_storage_impl_unittest.cc Review URL: http://codereview.chromium.org/518020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35354 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_thread.h')
-rw-r--r--webkit/appcache/appcache_thread.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/webkit/appcache/appcache_thread.h b/webkit/appcache/appcache_thread.h
index 9f14b1c..7224d23 100644
--- a/webkit/appcache/appcache_thread.h
+++ b/webkit/appcache/appcache_thread.h
@@ -5,10 +5,11 @@
#ifndef WEBKIT_APPCACHE_APPCACHE_THREAD_H_
#define WEBKIT_APPCACHE_APPCACHE_THREAD_H_
+#include "base/task.h"
+
namespace tracked_objects {
class Location;
}
-class Task;
namespace appcache {
@@ -31,6 +32,13 @@ class AppCacheThread {
Task* task);
static bool CurrentlyOn(int id);
+ template <class T>
+ static bool DeleteSoon(int id,
+ const tracked_objects::Location& from_here,
+ T* object) {
+ return PostTask(id, from_here, new DeleteTask<T>(object));
+ }
+
private:
AppCacheThread();
~AppCacheThread();