| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/threading/thread_checker.h" |
| 12 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 13 #include "content/common/indexed_db/indexed_db.mojom.h" | 14 #include "content/common/indexed_db/indexed_db.mojom.h" |
| 14 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 class IndexedDBDatabaseError; | 18 class IndexedDBDatabaseError; |
| 18 class IndexedDBDispatcherHost; | 19 class IndexedDBDispatcherHost; |
| 19 class IndexedDBObserverChanges; | 20 class IndexedDBObserverChanges; |
| 20 | 21 |
| 21 class CONTENT_EXPORT IndexedDBDatabaseCallbacks | 22 class CONTENT_EXPORT IndexedDBDatabaseCallbacks |
| (...skipping 18 matching lines...) Expand all Loading... |
| 40 virtual ~IndexedDBDatabaseCallbacks(); | 41 virtual ~IndexedDBDatabaseCallbacks(); |
| 41 | 42 |
| 42 private: | 43 private: |
| 43 friend class base::RefCounted<IndexedDBDatabaseCallbacks>; | 44 friend class base::RefCounted<IndexedDBDatabaseCallbacks>; |
| 44 | 45 |
| 45 class IOThreadHelper; | 46 class IOThreadHelper; |
| 46 | 47 |
| 47 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; | 48 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; |
| 48 int32_t ipc_thread_id_; | 49 int32_t ipc_thread_id_; |
| 49 std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_; | 50 std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_; |
| 51 base::ThreadChecker thread_checker_; |
| 50 | 52 |
| 51 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabaseCallbacks); | 53 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabaseCallbacks); |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 } // namespace content | 56 } // namespace content |
| 55 | 57 |
| 56 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_ | 58 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_ |
| OLD | NEW |