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 11 matching lines...) Expand all Loading... |
22 #include "content/common/content_export.h" | 22 #include "content/common/content_export.h" |
23 #include "content/common/indexed_db/indexed_db_constants.h" | 23 #include "content/common/indexed_db/indexed_db_constants.h" |
24 #include "content/public/child/worker_thread.h" | 24 #include "content/public/child/worker_thread.h" |
25 #include "ipc/ipc_sync_message_filter.h" | 25 #include "ipc/ipc_sync_message_filter.h" |
26 #include "third_party/WebKit/public/platform/WebBlobInfo.h" | 26 #include "third_party/WebKit/public/platform/WebBlobInfo.h" |
27 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h
" | 27 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h
" |
28 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBObserver.h" | 28 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBObserver.h" |
29 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" | 29 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" |
30 #include "url/origin.h" | 30 #include "url/origin.h" |
31 | 31 |
32 struct IndexedDBDatabaseMetadata; | |
33 struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params; | 32 struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params; |
34 struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params; | 33 struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params; |
35 struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params; | 34 struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params; |
36 struct IndexedDBMsg_CallbacksSuccessArray_Params; | 35 struct IndexedDBMsg_CallbacksSuccessArray_Params; |
37 struct IndexedDBMsg_CallbacksSuccessValue_Params; | 36 struct IndexedDBMsg_CallbacksSuccessValue_Params; |
38 struct IndexedDBMsg_CallbacksUpgradeNeeded_Params; | |
39 struct IndexedDBMsg_Observation; | 37 struct IndexedDBMsg_Observation; |
40 struct IndexedDBMsg_ObserverChanges; | 38 struct IndexedDBMsg_ObserverChanges; |
41 | 39 |
42 namespace blink { | 40 namespace blink { |
43 class WebData; | 41 class WebData; |
44 struct WebIDBObservation; | 42 struct WebIDBObservation; |
45 } | 43 } |
46 | 44 |
47 namespace content { | 45 namespace content { |
48 class IndexedDBKey; | 46 class IndexedDBKey; |
49 class IndexedDBKeyPath; | |
50 class IndexedDBKeyRange; | 47 class IndexedDBKeyRange; |
51 class WebIDBCursorImpl; | 48 class WebIDBCursorImpl; |
52 class WebIDBDatabaseImpl; | 49 class WebIDBDatabaseImpl; |
53 class ThreadSafeSender; | 50 class ThreadSafeSender; |
54 | 51 |
55 // Handle the indexed db related communication for this context thread - the | 52 // Handle the indexed db related communication for this context thread - the |
56 // main thread and each worker thread have their own copies. | 53 // main thread and each worker thread have their own copies. |
57 class CONTENT_EXPORT IndexedDBDispatcher : public WorkerThread::Observer { | 54 class CONTENT_EXPORT IndexedDBDispatcher : public WorkerThread::Observer { |
58 public: | 55 public: |
59 // Constructor made public to allow RenderThreadImpl to own a copy without | 56 // Constructor made public to allow RenderThreadImpl to own a copy without |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 std::map<int32_t, WebIDBCursorImpl*> cursors_; | 271 std::map<int32_t, WebIDBCursorImpl*> cursors_; |
275 | 272 |
276 std::map<int32_t, WebIDBDatabaseImpl*> databases_; | 273 std::map<int32_t, WebIDBDatabaseImpl*> databases_; |
277 | 274 |
278 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 275 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
279 }; | 276 }; |
280 | 277 |
281 } // namespace content | 278 } // namespace content |
282 | 279 |
283 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 280 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
OLD | NEW |