Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_THREAD_H_ | |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_THREAD_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "base/threading/thread.h" | |
| 11 #include "content/browser/browser_thread_impl.h" | |
| 12 #include "content/common/content_export.h" | |
| 13 | |
| 14 namespace content { | |
| 15 | |
| 16 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
| |
| 17 public: | |
| 18 // Called from the UI thread. | |
| 19 IndexedDBThread(); | |
| 20 ~IndexedDBThread(); | |
| 21 | |
| 22 base::Thread* thread() { return thread_.get(); } | |
| 23 | |
| 24 private: | |
| 25 scoped_ptr<base::Thread> thread_; | |
| 26 | |
| 27 DISALLOW_COPY_AND_ASSIGN(IndexedDBThread); | |
| 28 }; | |
| 29 | |
| 30 } // namespace content | |
| 31 | |
| 32 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_THREAD_H_ | |
| OLD | NEW |