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

Side by Side Diff: content/common/indexed_db/indexed_db_messages.h

Issue 12217049: Proxy WebData-based WebIDBDatabase::put (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update to use explicit &front() Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Message definition file, included multiple times, hence no include guard. 5 // Message definition file, included multiple times, hence no include guard.
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "content/common/indexed_db/indexed_db_key.h" 9 #include "content/common/indexed_db/indexed_db_key.h"
10 #include "content/common/indexed_db/indexed_db_key_path.h" 10 #include "content/common/indexed_db/indexed_db_key_path.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 IPC_STRUCT_MEMBER(int64, object_store_id) 106 IPC_STRUCT_MEMBER(int64, object_store_id)
107 // The index's id. 107 // The index's id.
108 IPC_STRUCT_MEMBER(int64, index_id) 108 IPC_STRUCT_MEMBER(int64, index_id)
109 // The serialized key range. 109 // The serialized key range.
110 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range) 110 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range)
111 // If this is just retrieving the key 111 // If this is just retrieving the key
112 IPC_STRUCT_MEMBER(bool, key_only) 112 IPC_STRUCT_MEMBER(bool, key_only)
113 IPC_STRUCT_END() 113 IPC_STRUCT_END()
114 114
115 // Used to set a value in an object store. 115 // Used to set a value in an object store.
116 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabasePutOld_Params)
117 // The id any response should contain.
118 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
119 IPC_STRUCT_MEMBER(int32, ipc_response_id)
120 // The database the object store belongs to.
121 IPC_STRUCT_MEMBER(int32, ipc_database_id)
122 // The transaction it's associated with.
123 IPC_STRUCT_MEMBER(int64, transaction_id)
124 // The object store's id.
125 IPC_STRUCT_MEMBER(int64, object_store_id)
126 // The index's id.
127 IPC_STRUCT_MEMBER(int64, index_id)
128 // The value to set.
129 IPC_STRUCT_MEMBER(std::vector<char>, value)
130 // The key to set it on (may not be "valid"/set in some cases).
131 IPC_STRUCT_MEMBER(content::IndexedDBKey, key)
132 // Whether this is an add or a put.
133 IPC_STRUCT_MEMBER(WebKit::WebIDBDatabase::PutMode, put_mode)
134 // The names of the indexes used below.
135 IPC_STRUCT_MEMBER(std::vector<int64>, index_ids)
136 // The keys for each index, such that each inner vector corresponds
137 // to each index named in index_names, respectively.
138 IPC_STRUCT_MEMBER(std::vector<std::vector<content::IndexedDBKey> >,
139 index_keys)
140 IPC_STRUCT_END()
141
142 // Used to set a value in an object store.
116 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabasePut_Params) 143 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabasePut_Params)
117 // The id any response should contain. 144 // The id any response should contain.
118 IPC_STRUCT_MEMBER(int32, ipc_thread_id) 145 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
119 IPC_STRUCT_MEMBER(int32, ipc_response_id) 146 IPC_STRUCT_MEMBER(int32, ipc_response_id)
120 // The database the object store belongs to. 147 // The database the object store belongs to.
121 IPC_STRUCT_MEMBER(int32, ipc_database_id) 148 IPC_STRUCT_MEMBER(int32, ipc_database_id)
122 // The transaction it's associated with. 149 // The transaction it's associated with.
123 IPC_STRUCT_MEMBER(int64, transaction_id) 150 IPC_STRUCT_MEMBER(int64, transaction_id)
124 // The object store's id. 151 // The object store's id.
125 IPC_STRUCT_MEMBER(int64, object_store_id) 152 IPC_STRUCT_MEMBER(int64, object_store_id)
126 // The index's id. 153 // The index's id.
127 IPC_STRUCT_MEMBER(int64, index_id) 154 IPC_STRUCT_MEMBER(int64, index_id)
128 // The value to set. 155 // The value to set.
129 IPC_STRUCT_MEMBER(std::vector<uint8>, value) 156 IPC_STRUCT_MEMBER(std::vector<char>, value)
130 // The key to set it on (may not be "valid"/set in some cases). 157 // The key to set it on (may not be "valid"/set in some cases).
131 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) 158 IPC_STRUCT_MEMBER(content::IndexedDBKey, key)
132 // Whether this is an add or a put. 159 // Whether this is an add or a put.
133 IPC_STRUCT_MEMBER(WebKit::WebIDBDatabase::PutMode, put_mode) 160 IPC_STRUCT_MEMBER(WebKit::WebIDBDatabase::PutMode, put_mode)
134 // The names of the indexes used below. 161 // The names of the indexes used below.
135 IPC_STRUCT_MEMBER(std::vector<int64>, index_ids) 162 IPC_STRUCT_MEMBER(std::vector<int64>, index_ids)
136 // The keys for each index, such that each inner vector corresponds 163 // The keys for each index, such that each inner vector corresponds
137 // to each index named in index_names, respectively. 164 // to each index named in index_names, respectively.
138 IPC_STRUCT_MEMBER(std::vector<std::vector<content::IndexedDBKey> >, 165 IPC_STRUCT_MEMBER(std::vector<std::vector<content::IndexedDBKey> >,
139 index_keys) 166 index_keys)
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 470
444 // WebIDBDatabase::~WebIDBDatabase() message. 471 // WebIDBDatabase::~WebIDBDatabase() message.
445 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed, 472 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed,
446 int32 /* ipc_database_id */) 473 int32 /* ipc_database_id */)
447 474
448 // WebIDBDatabase::get() message. 475 // WebIDBDatabase::get() message.
449 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseGet, 476 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseGet,
450 IndexedDBHostMsg_DatabaseGet_Params) 477 IndexedDBHostMsg_DatabaseGet_Params)
451 478
452 // WebIDBDatabase::put() message. 479 // WebIDBDatabase::put() message.
480 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabasePutOld,
481 IndexedDBHostMsg_DatabasePutOld_Params)
482
483 // WebIDBDatabase::put() message.
453 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabasePut, 484 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabasePut,
454 IndexedDBHostMsg_DatabasePut_Params) 485 IndexedDBHostMsg_DatabasePut_Params)
455 486
456 // WebIDBDatabase::setIndexKeys() message. 487 // WebIDBDatabase::setIndexKeys() message.
457 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseSetIndexKeys, 488 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseSetIndexKeys,
458 IndexedDBHostMsg_DatabaseSetIndexKeys_Params) 489 IndexedDBHostMsg_DatabaseSetIndexKeys_Params)
459 490
460 // WebIDBDatabase::setIndexesReady() message. 491 // WebIDBDatabase::setIndexesReady() message.
461 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_DatabaseSetIndexesReady, 492 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_DatabaseSetIndexesReady,
462 int32, /* ipc_database_id */ 493 int32, /* ipc_database_id */
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 533
503 // WebIDBDatabase::commit() message. 534 // WebIDBDatabase::commit() message.
504 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, 535 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit,
505 int32, /* ipc_database_id */ 536 int32, /* ipc_database_id */
506 int64) /* transaction_id */ 537 int64) /* transaction_id */
507 538
508 // WebIDBDatabase::~WebIDBCursor() message. 539 // WebIDBDatabase::~WebIDBCursor() message.
509 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, 540 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed,
510 int32 /* ipc_cursor_id */) 541 int32 /* ipc_cursor_id */)
511 542
OLDNEW
« no previous file with comments | « content/common/indexed_db/indexed_db_dispatcher_unittest.cc ('k') | content/common/indexed_db/proxy_webidbdatabase_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698