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" |
(...skipping 16 matching lines...) Expand all Loading... |
27 int32_t ipc_thread_id, | 27 int32_t ipc_thread_id, |
28 ::indexed_db::mojom::DatabaseCallbacksAssociatedPtrInfo callbacks_info); | 28 ::indexed_db::mojom::DatabaseCallbacksAssociatedPtrInfo callbacks_info); |
29 | 29 |
30 virtual void OnForcedClose(); | 30 virtual void OnForcedClose(); |
31 virtual void OnVersionChange(int64_t old_version, int64_t new_version); | 31 virtual void OnVersionChange(int64_t old_version, int64_t new_version); |
32 | 32 |
33 virtual void OnAbort(int64_t host_transaction_id, | 33 virtual void OnAbort(int64_t host_transaction_id, |
34 const IndexedDBDatabaseError& error); | 34 const IndexedDBDatabaseError& error); |
35 virtual void OnComplete(int64_t host_transaction_id); | 35 virtual void OnComplete(int64_t host_transaction_id); |
36 virtual void OnDatabaseChange( | 36 virtual void OnDatabaseChange( |
37 int32_t ipc_database_id, | |
38 std::unique_ptr<IndexedDBObserverChanges> changes); | 37 std::unique_ptr<IndexedDBObserverChanges> changes); |
39 | 38 |
40 protected: | 39 protected: |
41 virtual ~IndexedDBDatabaseCallbacks(); | 40 virtual ~IndexedDBDatabaseCallbacks(); |
42 | 41 |
43 private: | 42 private: |
44 friend class base::RefCounted<IndexedDBDatabaseCallbacks>; | 43 friend class base::RefCounted<IndexedDBDatabaseCallbacks>; |
45 | 44 |
46 class IOThreadHelper; | 45 class IOThreadHelper; |
47 | 46 |
48 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; | 47 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; |
49 int32_t ipc_thread_id_; | 48 int32_t ipc_thread_id_; |
50 std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_; | 49 std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_; |
51 base::ThreadChecker thread_checker_; | 50 base::ThreadChecker thread_checker_; |
52 | 51 |
53 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabaseCallbacks); | 52 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabaseCallbacks); |
54 }; | 53 }; |
55 | 54 |
56 } // namespace content | 55 } // namespace content |
57 | 56 |
58 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_ | 57 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_ |
OLD | NEW |