| 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 <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/id_map.h" | 12 #include "base/id_map.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/strings/nullable_string16.h" | 14 #include "base/strings/nullable_string16.h" |
| 15 #include "content/child/worker_task_runner.h" | 15 #include "content/child/worker_task_runner.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "ipc/ipc_sync_message_filter.h" | 17 #include "ipc/ipc_sync_message_filter.h" |
| 18 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" | 18 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" |
| 19 #include "third_party/WebKit/public/platform/WebIDBCursor.h" | 19 #include "third_party/WebKit/public/platform/WebIDBCursor.h" |
| 20 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" | 20 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" |
| 21 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h" | 21 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h" |
| 22 | 22 |
| 23 struct IndexedDBDatabaseMetadata; | 23 struct IndexedDBDatabaseMetadata; |
| 24 struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params; | 24 struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params; |
| 25 struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params; | 25 struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params; |
| 26 struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params; | 26 struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params; |
| 27 struct IndexedDBMsg_CallbacksSuccessValue_Params; |
| 28 struct IndexedDBMsg_CallbacksSuccessValueWithKey_Params; |
| 27 struct IndexedDBMsg_CallbacksUpgradeNeeded_Params; | 29 struct IndexedDBMsg_CallbacksUpgradeNeeded_Params; |
| 28 | 30 |
| 29 namespace blink { | 31 namespace blink { |
| 30 class WebData; | 32 class WebData; |
| 31 } | 33 } |
| 32 | 34 |
| 33 namespace content { | 35 namespace content { |
| 34 class IndexedDBKey; | 36 class IndexedDBKey; |
| 35 class IndexedDBKeyPath; | 37 class IndexedDBKeyPath; |
| 36 class IndexedDBKeyRange; | 38 class IndexedDBKeyRange; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 199 |
| 198 void OnSuccessOpenCursor( | 200 void OnSuccessOpenCursor( |
| 199 const IndexedDBMsg_CallbacksSuccessIDBCursor_Params& p); | 201 const IndexedDBMsg_CallbacksSuccessIDBCursor_Params& p); |
| 200 void OnSuccessCursorContinue( | 202 void OnSuccessCursorContinue( |
| 201 const IndexedDBMsg_CallbacksSuccessCursorContinue_Params& p); | 203 const IndexedDBMsg_CallbacksSuccessCursorContinue_Params& p); |
| 202 void OnSuccessCursorPrefetch( | 204 void OnSuccessCursorPrefetch( |
| 203 const IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params& p); | 205 const IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params& p); |
| 204 void OnSuccessStringList(int32 ipc_thread_id, | 206 void OnSuccessStringList(int32 ipc_thread_id, |
| 205 int32 ipc_callbacks_id, | 207 int32 ipc_callbacks_id, |
| 206 const std::vector<base::string16>& value); | 208 const std::vector<base::string16>& value); |
| 207 void OnSuccessValue(int32 ipc_thread_id, | 209 void OnSuccessValue(const IndexedDBMsg_CallbacksSuccessValue_Params& p); |
| 208 int32 ipc_callbacks_id, | 210 void OnSuccessValueWithKey( |
| 209 const std::string& value); | 211 const IndexedDBMsg_CallbacksSuccessValueWithKey_Params& p); |
| 210 void OnSuccessValueWithKey(int32 ipc_thread_id, | |
| 211 int32 ipc_callbacks_id, | |
| 212 const std::string& value, | |
| 213 const IndexedDBKey& primary_key, | |
| 214 const IndexedDBKeyPath& key_path); | |
| 215 void OnSuccessInteger(int32 ipc_thread_id, | 212 void OnSuccessInteger(int32 ipc_thread_id, |
| 216 int32 ipc_callbacks_id, | 213 int32 ipc_callbacks_id, |
| 217 int64 value); | 214 int64 value); |
| 218 void OnSuccessUndefined(int32 ipc_thread_id, int32 ipc_callbacks_id); | 215 void OnSuccessUndefined(int32 ipc_thread_id, int32 ipc_callbacks_id); |
| 219 void OnError(int32 ipc_thread_id, | 216 void OnError(int32 ipc_thread_id, |
| 220 int32 ipc_callbacks_id, | 217 int32 ipc_callbacks_id, |
| 221 int code, | 218 int code, |
| 222 const base::string16& message); | 219 const base::string16& message); |
| 223 void OnIntBlocked(int32 ipc_thread_id, | 220 void OnIntBlocked(int32 ipc_thread_id, |
| 224 int32 ipc_callbacks_id, | 221 int32 ipc_callbacks_id, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 std::map<int32, WebIDBCursorImpl*> cursors_; | 256 std::map<int32, WebIDBCursorImpl*> cursors_; |
| 260 | 257 |
| 261 std::map<int32, WebIDBDatabaseImpl*> databases_; | 258 std::map<int32, WebIDBDatabaseImpl*> databases_; |
| 262 | 259 |
| 263 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 260 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
| 264 }; | 261 }; |
| 265 | 262 |
| 266 } // namespace content | 263 } // namespace content |
| 267 | 264 |
| 268 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 265 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
| OLD | NEW |