| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/id_map.h" | 13 #include "base/id_map.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/strings/nullable_string16.h" | 15 #include "base/strings/nullable_string16.h" |
| 16 #include "content/child/worker_task_runner.h" | 16 #include "content/child/worker_task_runner.h" |
| 17 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
| 18 #include "ipc/ipc_sync_message_filter.h" | 18 #include "ipc/ipc_sync_message_filter.h" |
| 19 #include "third_party/WebKit/public/platform/WebBlobInfo.h" | 19 #include "third_party/WebKit/public/platform/WebBlobInfo.h" |
| 20 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" | 20 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" |
| 21 #include "third_party/WebKit/public/platform/WebIDBCursor.h" | |
| 22 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" | |
| 23 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h" | 21 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h" |
| 22 #include "third_party/WebKit/public/platform/WebIDBTypes.h" |
| 24 | 23 |
| 25 struct IndexedDBDatabaseMetadata; | 24 struct IndexedDBDatabaseMetadata; |
| 26 struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params; | 25 struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params; |
| 27 struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params; | 26 struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params; |
| 28 struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params; | 27 struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params; |
| 29 struct IndexedDBMsg_CallbacksSuccessValue_Params; | 28 struct IndexedDBMsg_CallbacksSuccessValue_Params; |
| 30 struct IndexedDBMsg_CallbacksSuccessValueWithKey_Params; | 29 struct IndexedDBMsg_CallbacksSuccessValueWithKey_Params; |
| 31 struct IndexedDBMsg_CallbacksUpgradeNeeded_Params; | 30 struct IndexedDBMsg_CallbacksUpgradeNeeded_Params; |
| 32 | 31 |
| 33 namespace blink { | 32 namespace blink { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 int32 ipc_cursor_id); | 110 int32 ipc_cursor_id); |
| 112 | 111 |
| 113 void RequestIDBDatabaseClose(int32 ipc_database_id, | 112 void RequestIDBDatabaseClose(int32 ipc_database_id, |
| 114 int32 ipc_database_callbacks_id); | 113 int32 ipc_database_callbacks_id); |
| 115 | 114 |
| 116 void RequestIDBDatabaseCreateTransaction( | 115 void RequestIDBDatabaseCreateTransaction( |
| 117 int32 ipc_database_id, | 116 int32 ipc_database_id, |
| 118 int64 transaction_id, | 117 int64 transaction_id, |
| 119 blink::WebIDBDatabaseCallbacks* database_callbacks_ptr, | 118 blink::WebIDBDatabaseCallbacks* database_callbacks_ptr, |
| 120 blink::WebVector<long long> object_store_ids, | 119 blink::WebVector<long long> object_store_ids, |
| 121 blink::WebIDBDatabase::TransactionMode mode); | 120 blink::WebIDBTransactionMode mode); |
| 122 | 121 |
| 123 void RequestIDBDatabaseGet(int32 ipc_database_id, | 122 void RequestIDBDatabaseGet(int32 ipc_database_id, |
| 124 int64 transaction_id, | 123 int64 transaction_id, |
| 125 int64 object_store_id, | 124 int64 object_store_id, |
| 126 int64 index_id, | 125 int64 index_id, |
| 127 const IndexedDBKeyRange& key_range, | 126 const IndexedDBKeyRange& key_range, |
| 128 bool key_only, | 127 bool key_only, |
| 129 blink::WebIDBCallbacks* callbacks); | 128 blink::WebIDBCallbacks* callbacks); |
| 130 | 129 |
| 131 void RequestIDBDatabasePut( | 130 void RequestIDBDatabasePut( |
| 132 int32 ipc_database_id, | 131 int32 ipc_database_id, |
| 133 int64 transaction_id, | 132 int64 transaction_id, |
| 134 int64 object_store_id, | 133 int64 object_store_id, |
| 135 const blink::WebData& value, | 134 const blink::WebData& value, |
| 136 const blink::WebVector<blink::WebBlobInfo>& web_blob_info, | 135 const blink::WebVector<blink::WebBlobInfo>& web_blob_info, |
| 137 const IndexedDBKey& key, | 136 const IndexedDBKey& key, |
| 138 blink::WebIDBDatabase::PutMode put_mode, | 137 blink::WebIDBPutMode put_mode, |
| 139 blink::WebIDBCallbacks* callbacks, | 138 blink::WebIDBCallbacks* callbacks, |
| 140 const blink::WebVector<long long>& index_ids, | 139 const blink::WebVector<long long>& index_ids, |
| 141 const blink::WebVector<blink::WebVector<blink::WebIDBKey> >& index_keys); | 140 const blink::WebVector<blink::WebVector<blink::WebIDBKey> >& index_keys); |
| 142 | 141 |
| 143 void RequestIDBDatabaseOpenCursor(int32 ipc_database_id, | 142 void RequestIDBDatabaseOpenCursor(int32 ipc_database_id, |
| 144 int64 transaction_id, | 143 int64 transaction_id, |
| 145 int64 object_store_id, | 144 int64 object_store_id, |
| 146 int64 index_id, | 145 int64 index_id, |
| 147 const IndexedDBKeyRange& key_range, | 146 const IndexedDBKeyRange& key_range, |
| 148 blink::WebIDBCursor::Direction direction, | 147 blink::WebIDBCursorDirection direction, |
| 149 bool key_only, | 148 bool key_only, |
| 150 blink::WebIDBDatabase::TaskType task_type, | 149 blink::WebIDBTaskType task_type, |
| 151 blink::WebIDBCallbacks* callbacks); | 150 blink::WebIDBCallbacks* callbacks); |
| 152 | 151 |
| 153 void RequestIDBDatabaseCount(int32 ipc_database_id, | 152 void RequestIDBDatabaseCount(int32 ipc_database_id, |
| 154 int64 transaction_id, | 153 int64 transaction_id, |
| 155 int64 object_store_id, | 154 int64 object_store_id, |
| 156 int64 index_id, | 155 int64 index_id, |
| 157 const IndexedDBKeyRange& key_range, | 156 const IndexedDBKeyRange& key_range, |
| 158 blink::WebIDBCallbacks* callbacks); | 157 blink::WebIDBCallbacks* callbacks); |
| 159 | 158 |
| 160 void RequestIDBDatabaseDeleteRange(int32 ipc_database_id, | 159 void RequestIDBDatabaseDeleteRange(int32 ipc_database_id, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 std::map<int32, WebIDBCursorImpl*> cursors_; | 257 std::map<int32, WebIDBCursorImpl*> cursors_; |
| 259 | 258 |
| 260 std::map<int32, WebIDBDatabaseImpl*> databases_; | 259 std::map<int32, WebIDBDatabaseImpl*> databases_; |
| 261 | 260 |
| 262 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 261 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
| 263 }; | 262 }; |
| 264 | 263 |
| 265 } // namespace content | 264 } // namespace content |
| 266 | 265 |
| 267 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 266 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
| OLD | NEW |