Chromium Code Reviews| Index: content/browser/indexed_db/indexed_db_database_callbacks.h |
| diff --git a/content/browser/indexed_db/indexed_db_database_callbacks.h b/content/browser/indexed_db/indexed_db_database_callbacks.h |
| index 1978d720bf7f3a414e671adb6af3645e66ae690c..50f14a619a103cbe720e7ec3cf45c568403d3aae 100644 |
| --- a/content/browser/indexed_db/indexed_db_database_callbacks.h |
| +++ b/content/browser/indexed_db/indexed_db_database_callbacks.h |
| @@ -8,22 +8,23 @@ |
| #include <stdint.h> |
| #include "base/macros.h" |
| -#include "base/memory/ref_counted.h" |
| +#include "base/memory/weak_ptr.h" |
| #include "base/threading/thread_checker.h" |
| #include "content/common/content_export.h" |
| #include "content/common/indexed_db/indexed_db.mojom.h" |
| #include "content/public/browser/browser_thread.h" |
| namespace content { |
| +class IndexedDBContextImpl; |
| class IndexedDBDatabaseError; |
| -class IndexedDBDispatcherHost; |
| class IndexedDBTransaction; |
| +// Expected to be constructed on IO thread and called/deleted from IDB thread. |
| class CONTENT_EXPORT IndexedDBDatabaseCallbacks |
| : public base::RefCounted<IndexedDBDatabaseCallbacks> { |
| public: |
| IndexedDBDatabaseCallbacks( |
| - scoped_refptr<IndexedDBDispatcherHost> dispatcher_host, |
| + scoped_refptr<IndexedDBContextImpl> context, |
| ::indexed_db::mojom::DatabaseCallbacksAssociatedPtrInfo callbacks_info); |
| virtual void OnForcedClose(); |
| @@ -43,7 +44,8 @@ class CONTENT_EXPORT IndexedDBDatabaseCallbacks |
| class IOThreadHelper; |
| - scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; |
| + bool closed = false; |
|
jsbell
2017/04/11 16:58:04
Shouldn't this be: closed_
dmurph
2017/04/11 19:32:49
Done.
|
| + scoped_refptr<IndexedDBContextImpl> indexed_db_context_; |
| std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_; |
| base::ThreadChecker thread_checker_; |