OLD | NEW |
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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // Used to open an indexed database. | 36 // Used to open an indexed database. |
37 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) | 37 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) |
38 // The response should have these ids. | 38 // The response should have these ids. |
39 IPC_STRUCT_MEMBER(int32, thread_id) | 39 IPC_STRUCT_MEMBER(int32, thread_id) |
40 IPC_STRUCT_MEMBER(int32, response_id) | 40 IPC_STRUCT_MEMBER(int32, response_id) |
41 // The origin doing the initiating. | 41 // The origin doing the initiating. |
42 IPC_STRUCT_MEMBER(string16, origin) | 42 IPC_STRUCT_MEMBER(string16, origin) |
43 // The name of the database. | 43 // The name of the database. |
44 IPC_STRUCT_MEMBER(string16, name) | 44 IPC_STRUCT_MEMBER(string16, name) |
| 45 // The requested version of the database. |
| 46 IPC_STRUCT_MEMBER(int64, version) |
45 IPC_STRUCT_END() | 47 IPC_STRUCT_END() |
46 | 48 |
47 // Used to delete an indexed database. | 49 // Used to delete an indexed database. |
48 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params) | 50 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params) |
49 // The response should have these ids. | 51 // The response should have these ids. |
50 IPC_STRUCT_MEMBER(int32, thread_id) | 52 IPC_STRUCT_MEMBER(int32, thread_id) |
51 IPC_STRUCT_MEMBER(int32, response_id) | 53 IPC_STRUCT_MEMBER(int32, response_id) |
52 // The origin doing the initiating. | 54 // The origin doing the initiating. |
53 IPC_STRUCT_MEMBER(string16, origin) | 55 IPC_STRUCT_MEMBER(string16, origin) |
54 // The name of the database. | 56 // The name of the database. |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 int32 /* response_id */, | 240 int32 /* response_id */, |
239 std::vector<string16> /* dom_string_list */) | 241 std::vector<string16> /* dom_string_list */) |
240 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksError, | 242 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksError, |
241 int32 /* thread_id */, | 243 int32 /* thread_id */, |
242 int32 /* response_id */, | 244 int32 /* response_id */, |
243 int /* code */, | 245 int /* code */, |
244 string16 /* message */) | 246 string16 /* message */) |
245 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksBlocked, | 247 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksBlocked, |
246 int32 /* thread_id */, | 248 int32 /* thread_id */, |
247 int32 /* response_id */) | 249 int32 /* response_id */) |
| 250 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksIntBlocked, |
| 251 int32 /* thread_id */, |
| 252 int32 /* response_id */, |
| 253 int64 /* existing_version */) |
| 254 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksUpgradeNeeded, |
| 255 int32, /* thread_id */ |
| 256 int32, /* response_id */ |
| 257 int32, /* transaction_id */ |
| 258 int32, /* database_id */ |
| 259 int64) /* old_version */ |
248 | 260 |
249 // IDBTransactionCallback message handlers. | 261 // IDBTransactionCallback message handlers. |
250 IPC_MESSAGE_CONTROL2(IndexedDBMsg_TransactionCallbacksAbort, | 262 IPC_MESSAGE_CONTROL2(IndexedDBMsg_TransactionCallbacksAbort, |
251 int32 /* thread_id */, | 263 int32 /* thread_id */, |
252 int32 /* transaction_id */) | 264 int32 /* transaction_id */) |
253 IPC_MESSAGE_CONTROL2(IndexedDBMsg_TransactionCallbacksComplete, | 265 IPC_MESSAGE_CONTROL2(IndexedDBMsg_TransactionCallbacksComplete, |
254 int32 /* thread_id */, | 266 int32 /* thread_id */, |
255 int32 /* transaction_id */) | 267 int32 /* transaction_id */) |
256 | 268 |
257 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksVersionChange, | 269 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksVersionChange, |
258 int32, /* thread_id */ | 270 int32, /* thread_id */ |
259 int32, /* database_id */ | 271 int32, /* database_id */ |
260 string16) /* new_version */ | 272 string16) /* new_version */ |
261 | 273 |
| 274 IPC_MESSAGE_CONTROL4(IndexedDBMsg_DatabaseCallbacksIntVersionChange, |
| 275 int32, /* thread_id */ |
| 276 int32, /* database_id */ |
| 277 int64, /* old_version */ |
| 278 int64) /* new_version */ |
| 279 |
262 // Indexed DB messages sent from the renderer to the browser. | 280 // Indexed DB messages sent from the renderer to the browser. |
263 | 281 |
264 // WebIDBCursor::update() message. | 282 // WebIDBCursor::update() message. |
265 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorUpdate, | 283 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorUpdate, |
266 int32, /* idb_cursor_id */ | 284 int32, /* idb_cursor_id */ |
267 int32, /* thread_id */ | 285 int32, /* thread_id */ |
268 int32, /* response_id */ | 286 int32, /* response_id */ |
269 content::SerializedScriptValue, /* value */ | 287 content::SerializedScriptValue, /* value */ |
270 WebKit::WebExceptionCode /* ec */) | 288 WebKit::WebExceptionCode /* ec */) |
271 | 289 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, | 537 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, |
520 int32 /* idb_transaction_id */) | 538 int32 /* idb_transaction_id */) |
521 | 539 |
522 // IDBTransaction::DidCompleteTaskEvents() message. | 540 // IDBTransaction::DidCompleteTaskEvents() message. |
523 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, | 541 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, |
524 int32 /* idb_transaction_id */) | 542 int32 /* idb_transaction_id */) |
525 | 543 |
526 // WebIDBTransaction::~WebIDBTransaction() message. | 544 // WebIDBTransaction::~WebIDBTransaction() message. |
527 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, | 545 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, |
528 int32 /* idb_transaction_id */) | 546 int32 /* idb_transaction_id */) |
OLD | NEW |