| 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_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 return weak_factory_.GetWeakPtr(); | 75 return weak_factory_.GetWeakPtr(); |
| 76 } | 76 } |
| 77 | 77 |
| 78 // Called by UI thread. Used to kill outstanding bindings and weak pointers | 78 // Called by UI thread. Used to kill outstanding bindings and weak pointers |
| 79 // in callbacks. | 79 // in callbacks. |
| 80 void RenderProcessExited(RenderProcessHost* host, | 80 void RenderProcessExited(RenderProcessHost* host, |
| 81 base::TerminationStatus status, | 81 base::TerminationStatus status, |
| 82 int exit_code) override; | 82 int exit_code) override; |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 class IDBThreadHelper; | 85 class IDBSequenceHelper; |
| 86 // Friends to enable OnDestruct() delegation. | 86 // Friends to enable OnDestruct() delegation. |
| 87 friend class BrowserThread; | 87 friend class BrowserThread; |
| 88 friend class IndexedDBDispatcherHostTest; | 88 friend class IndexedDBDispatcherHostTest; |
| 89 friend class base::DeleteHelper<IndexedDBDispatcherHost>; | 89 friend class base::DeleteHelper<IndexedDBDispatcherHost>; |
| 90 | 90 |
| 91 ~IndexedDBDispatcherHost() override; | 91 ~IndexedDBDispatcherHost() override; |
| 92 | 92 |
| 93 // indexed_db::mojom::Factory implementation: | 93 // indexed_db::mojom::Factory implementation: |
| 94 void GetDatabaseNames( | 94 void GetDatabaseNames( |
| 95 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks_info, | 95 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks_info, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 124 const int ipc_process_id_; | 124 const int ipc_process_id_; |
| 125 | 125 |
| 126 mojo::AssociatedBindingSet<::indexed_db::mojom::Factory> bindings_; | 126 mojo::AssociatedBindingSet<::indexed_db::mojom::Factory> bindings_; |
| 127 | 127 |
| 128 mojo::StrongAssociatedBindingSet<::indexed_db::mojom::Database> | 128 mojo::StrongAssociatedBindingSet<::indexed_db::mojom::Database> |
| 129 database_bindings_; | 129 database_bindings_; |
| 130 | 130 |
| 131 mojo::StrongAssociatedBindingSet<::indexed_db::mojom::Cursor> | 131 mojo::StrongAssociatedBindingSet<::indexed_db::mojom::Cursor> |
| 132 cursor_bindings_; | 132 cursor_bindings_; |
| 133 | 133 |
| 134 IDBThreadHelper* idb_helper_; | 134 IDBSequenceHelper* idb_helper_; |
| 135 | 135 |
| 136 base::WeakPtrFactory<IndexedDBDispatcherHost> weak_factory_; | 136 base::WeakPtrFactory<IndexedDBDispatcherHost> weak_factory_; |
| 137 | 137 |
| 138 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 138 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace content | 141 } // namespace content |
| 142 | 142 |
| 143 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 143 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
| OLD | NEW |