Index: content/browser/indexed_db/indexed_db_thread.h |
diff --git a/content/browser/indexed_db/indexed_db_thread.h b/content/browser/indexed_db/indexed_db_thread.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bcb585eacc7595e6c0ac217dcf474f732df89fa6 |
--- /dev/null |
+++ b/content/browser/indexed_db/indexed_db_thread.h |
@@ -0,0 +1,32 @@ |
+// Copyright (c) 2013 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. |
+ |
+#ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_THREAD_H_ |
+#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_THREAD_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "base/threading/thread.h" |
+#include "content/browser/browser_thread_impl.h" |
+#include "content/common/content_export.h" |
+ |
+namespace content { |
+ |
+class CONTENT_EXPORT IndexedDBThread { |
jam
2013/06/21 16:00:50
why do we need this wrapper class?
jsbell
2013/06/21 16:34:16
At this point I don't - more logic lived here at o
|
+ public: |
+ // Called from the UI thread. |
+ IndexedDBThread(); |
+ ~IndexedDBThread(); |
+ |
+ base::Thread* thread() { return thread_.get(); } |
+ |
+ private: |
+ scoped_ptr<base::Thread> thread_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(IndexedDBThread); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_THREAD_H_ |