Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: content/child/indexed_db/indexed_db_dispatcher.h

Issue 320833002: [IndexedDB] Use consistent enums on both sides of IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/WebBlobInfo.h" 18 #include "third_party/WebKit/public/platform/WebBlobInfo.h"
19 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" 19 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h"
jsbell 2014/06/09 16:38:27 Need to #include "third_party/WebKit/public/platfo
Pritam Nikam 2014/06/11 14:05:16 Done.
20 #include "third_party/WebKit/public/platform/WebIDBCursor.h" 20 #include "third_party/WebKit/public/platform/WebIDBCursor.h"
jsbell 2014/06/09 16:38:27 Can this be removed now?
Pritam Nikam 2014/06/11 14:05:16 Done.
21 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" 21 #include "third_party/WebKit/public/platform/WebIDBDatabase.h"
jsbell 2014/06/09 16:38:27 Can this be removed now?
Pritam Nikam 2014/06/11 14:05:16 Done.
22 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h" 22 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h"
23 23
24 struct IndexedDBDatabaseMetadata; 24 struct IndexedDBDatabaseMetadata;
25 struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params; 25 struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params;
26 struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params; 26 struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params;
27 struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params; 27 struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params;
28 struct IndexedDBMsg_CallbacksSuccessValue_Params; 28 struct IndexedDBMsg_CallbacksSuccessValue_Params;
29 struct IndexedDBMsg_CallbacksSuccessValueWithKey_Params; 29 struct IndexedDBMsg_CallbacksSuccessValueWithKey_Params;
30 struct IndexedDBMsg_CallbacksUpgradeNeeded_Params; 30 struct IndexedDBMsg_CallbacksUpgradeNeeded_Params;
31 31
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 int32 ipc_cursor_id); 110 int32 ipc_cursor_id);
111 111
112 void RequestIDBDatabaseClose(int32 ipc_database_id, 112 void RequestIDBDatabaseClose(int32 ipc_database_id,
113 int32 ipc_database_callbacks_id); 113 int32 ipc_database_callbacks_id);
114 114
115 void RequestIDBDatabaseCreateTransaction( 115 void RequestIDBDatabaseCreateTransaction(
116 int32 ipc_database_id, 116 int32 ipc_database_id,
117 int64 transaction_id, 117 int64 transaction_id,
118 blink::WebIDBDatabaseCallbacks* database_callbacks_ptr, 118 blink::WebIDBDatabaseCallbacks* database_callbacks_ptr,
119 blink::WebVector<long long> object_store_ids, 119 blink::WebVector<long long> object_store_ids,
120 blink::WebIDBDatabase::TransactionMode mode); 120 blink::TransactionMode mode);
121 121
122 void RequestIDBDatabaseGet(int32 ipc_database_id, 122 void RequestIDBDatabaseGet(int32 ipc_database_id,
123 int64 transaction_id, 123 int64 transaction_id,
124 int64 object_store_id, 124 int64 object_store_id,
125 int64 index_id, 125 int64 index_id,
126 const IndexedDBKeyRange& key_range, 126 const IndexedDBKeyRange& key_range,
127 bool key_only, 127 bool key_only,
128 blink::WebIDBCallbacks* callbacks); 128 blink::WebIDBCallbacks* callbacks);
129 129
130 void RequestIDBDatabasePut( 130 void RequestIDBDatabasePut(
131 int32 ipc_database_id, 131 int32 ipc_database_id,
132 int64 transaction_id, 132 int64 transaction_id,
133 int64 object_store_id, 133 int64 object_store_id,
134 const blink::WebData& value, 134 const blink::WebData& value,
135 const blink::WebVector<blink::WebBlobInfo>& web_blob_info, 135 const blink::WebVector<blink::WebBlobInfo>& web_blob_info,
136 const IndexedDBKey& key, 136 const IndexedDBKey& key,
137 blink::WebIDBDatabase::PutMode put_mode, 137 blink::PutMode put_mode,
138 blink::WebIDBCallbacks* callbacks, 138 blink::WebIDBCallbacks* callbacks,
139 const blink::WebVector<long long>& index_ids, 139 const blink::WebVector<long long>& index_ids,
140 const blink::WebVector<blink::WebVector<blink::WebIDBKey> >& index_keys); 140 const blink::WebVector<blink::WebVector<blink::WebIDBKey> >& index_keys);
141 141
142 void RequestIDBDatabaseOpenCursor(int32 ipc_database_id, 142 void RequestIDBDatabaseOpenCursor(int32 ipc_database_id,
143 int64 transaction_id, 143 int64 transaction_id,
144 int64 object_store_id, 144 int64 object_store_id,
145 int64 index_id, 145 int64 index_id,
146 const IndexedDBKeyRange& key_range, 146 const IndexedDBKeyRange& key_range,
147 blink::WebIDBCursor::Direction direction, 147 blink::Direction direction,
148 bool key_only, 148 bool key_only,
149 blink::WebIDBDatabase::TaskType task_type, 149 blink::TaskType task_type,
150 blink::WebIDBCallbacks* callbacks); 150 blink::WebIDBCallbacks* callbacks);
151 151
152 void RequestIDBDatabaseCount(int32 ipc_database_id, 152 void RequestIDBDatabaseCount(int32 ipc_database_id,
153 int64 transaction_id, 153 int64 transaction_id,
154 int64 object_store_id, 154 int64 object_store_id,
155 int64 index_id, 155 int64 index_id,
156 const IndexedDBKeyRange& key_range, 156 const IndexedDBKeyRange& key_range,
157 blink::WebIDBCallbacks* callbacks); 157 blink::WebIDBCallbacks* callbacks);
158 158
159 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
257 std::map<int32, WebIDBCursorImpl*> cursors_; 257 std::map<int32, WebIDBCursorImpl*> cursors_;
258 258
259 std::map<int32, WebIDBDatabaseImpl*> databases_; 259 std::map<int32, WebIDBDatabaseImpl*> databases_;
260 260
261 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 261 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
262 }; 262 };
263 263
264 } // namespace content 264 } // namespace content
265 265
266 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 266 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698