summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_thread.cc
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 20:40:57 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 20:40:57 +0000
commit8a4892d8d5ef84d8be7c47ac5e1b5e601f2a77b7 (patch)
treedd56c3b7fb32d93154b58616e4e8368cc2702341 /webkit/appcache/appcache_thread.cc
parentd6b7266a83b8fffe30fd79c9ebe7c155cb5b687d (diff)
downloadchromium_src-8a4892d8d5ef84d8be7c47ac5e1b5e601f2a77b7.zip
chromium_src-8a4892d8d5ef84d8be7c47ac5e1b5e601f2a77b7.tar.gz
chromium_src-8a4892d8d5ef84d8be7c47ac5e1b5e601f2a77b7.tar.bz2
The appcache system uses two threads, an IO thread and a DB thread.
It does not create these threads, the embedder is responsible for providing them to the appcache library by implementing the class declared in appcache_thread.h. Also in this CL are two implementations, one for Chrome and another for test_shell. TEST=none BUG=none Review URL: http://codereview.chromium.org/409005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_thread.cc')
-rw-r--r--webkit/appcache/appcache_thread.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_thread.cc b/webkit/appcache/appcache_thread.cc
new file mode 100644
index 0000000..579cb53
--- /dev/null
+++ b/webkit/appcache/appcache_thread.cc
@@ -0,0 +1,13 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "webkit/appcache/appcache_thread.h"
+
+namespace appcache {
+
+// static
+int AppCacheThread::db_;
+int AppCacheThread::io_;
+
+} // namespace appcache