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

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

Issue 10759012: Chromium side of plumbing for passing renderer-generated keys through IPC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Include unit tests too Created 8 years, 5 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 (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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 IPC_STRUCT_MEMBER(int32, idb_object_store_id) 103 IPC_STRUCT_MEMBER(int32, idb_object_store_id)
104 // The id any response should contain. 104 // The id any response should contain.
105 IPC_STRUCT_MEMBER(int32, thread_id) 105 IPC_STRUCT_MEMBER(int32, thread_id)
106 IPC_STRUCT_MEMBER(int32, response_id) 106 IPC_STRUCT_MEMBER(int32, response_id)
107 // The value to set. 107 // The value to set.
108 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) 108 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value)
109 // The key to set it on (may not be "valid"/set in some cases). 109 // The key to set it on (may not be "valid"/set in some cases).
110 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) 110 IPC_STRUCT_MEMBER(content::IndexedDBKey, key)
111 // Whether this is an add or a put. 111 // Whether this is an add or a put.
112 IPC_STRUCT_MEMBER(WebKit::WebIDBObjectStore::PutMode, put_mode) 112 IPC_STRUCT_MEMBER(WebKit::WebIDBObjectStore::PutMode, put_mode)
113 // The names of the indexes used below.
114 IPC_STRUCT_MEMBER(std::vector<string16>, index_names)
115 // The keys for each index, such that each inner vector corresponds
116 // to each index named in index_names, respectively.
117 IPC_STRUCT_MEMBER(std::vector<std::vector<content::IndexedDBKey> >,
118 index_keys)
113 // The transaction it's associated with. 119 // The transaction it's associated with.
114 IPC_STRUCT_MEMBER(int, transaction_id) 120 IPC_STRUCT_MEMBER(int, transaction_id)
115 IPC_STRUCT_END() 121 IPC_STRUCT_END()
116 122
117 // Used to create an index. 123 // Used to create an index.
118 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreCreateIndex_Params) 124 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreCreateIndex_Params)
119 // The name of the index. 125 // The name of the index.
120 IPC_STRUCT_MEMBER(string16, name) 126 IPC_STRUCT_MEMBER(string16, name)
121 // The keyPath of the index. 127 // The keyPath of the index.
122 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path) 128 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path)
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, 518 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort,
513 int32 /* idb_transaction_id */) 519 int32 /* idb_transaction_id */)
514 520
515 // IDBTransaction::DidCompleteTaskEvents() message. 521 // IDBTransaction::DidCompleteTaskEvents() message.
516 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, 522 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents,
517 int32 /* idb_transaction_id */) 523 int32 /* idb_transaction_id */)
518 524
519 // WebIDBTransaction::~WebIDBTransaction() message. 525 // WebIDBTransaction::~WebIDBTransaction() message.
520 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, 526 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed,
521 int32 /* idb_transaction_id */) 527 int32 /* idb_transaction_id */)
OLDNEW
« no previous file with comments | « content/common/indexed_db/indexed_db_dispatcher_unittest.cc ('k') | content/common/indexed_db/proxy_webidbobjectstore_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698