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

Unified Diff: content/browser/indexed_db/indexed_db_thread.h

Issue 17518004: Move IndexedDB from WEBKIT_DEPRECATED to dedicated thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing files Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698