| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
| 6 #define CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 6 #define CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 namespace content { | 43 namespace content { |
| 44 class IndexedDBKey; | 44 class IndexedDBKey; |
| 45 class IndexedDBKeyPath; | 45 class IndexedDBKeyPath; |
| 46 class IndexedDBKeyRange; | 46 class IndexedDBKeyRange; |
| 47 class WebIDBCursorImpl; | 47 class WebIDBCursorImpl; |
| 48 class WebIDBDatabaseImpl; | 48 class WebIDBDatabaseImpl; |
| 49 class ThreadSafeSender; | 49 class ThreadSafeSender; |
| 50 | 50 |
| 51 #if 0 |
| 51 // Handle the indexed db related communication for this context thread - the | 52 // Handle the indexed db related communication for this context thread - the |
| 52 // main thread and each worker thread have their own copies. | 53 // main thread and each worker thread have their own copies. |
| 53 class CONTENT_EXPORT IndexedDBDispatcher : public WorkerThread::Observer { | 54 class CONTENT_EXPORT IndexedDBDispatcher : public WorkerThread::Observer { |
| 54 public: | 55 public: |
| 55 // Constructor made public to allow RenderThreadImpl to own a copy without | 56 // Constructor made public to allow RenderThreadImpl to own a copy without |
| 56 // failing a NOTREACHED in ThreadSpecificInstance in tests that instantiate | 57 // failing a NOTREACHED in ThreadSpecificInstance in tests that instantiate |
| 57 // two copies of RenderThreadImpl on the same thread. Everyone else probably | 58 // two copies of RenderThreadImpl on the same thread. Everyone else probably |
| 58 // wants to use ThreadSpecificInstance(). | 59 // wants to use ThreadSpecificInstance(). |
| 59 explicit IndexedDBDispatcher(ThreadSafeSender* thread_safe_sender); | 60 explicit IndexedDBDispatcher(ThreadSafeSender* thread_safe_sender); |
| 60 ~IndexedDBDispatcher() override; | 61 ~IndexedDBDispatcher() override; |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 std::map<int32_t, int64_t> cursor_transaction_ids_; | 289 std::map<int32_t, int64_t> cursor_transaction_ids_; |
| 289 | 290 |
| 290 // Map from cursor id to WebIDBCursorImpl. | 291 // Map from cursor id to WebIDBCursorImpl. |
| 291 std::map<int32_t, WebIDBCursorImpl*> cursors_; | 292 std::map<int32_t, WebIDBCursorImpl*> cursors_; |
| 292 | 293 |
| 293 std::map<int32_t, WebIDBDatabaseImpl*> databases_; | 294 std::map<int32_t, WebIDBDatabaseImpl*> databases_; |
| 294 | 295 |
| 295 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 296 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
| 296 }; | 297 }; |
| 297 | 298 |
| 299 #endif |
| 300 |
| 298 } // namespace content | 301 } // namespace content |
| 299 | 302 |
| 300 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 303 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
| OLD | NEW |