Chromium Code Reviews| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 40 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBTransactionMode, | 40 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBTransactionMode, |
| 41 blink::WebIDBTransactionModeLast) | 41 blink::WebIDBTransactionModeLast) |
| 42 | 42 |
| 43 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBDataLoss, blink::WebIDBDataLossTotal) | 43 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBDataLoss, blink::WebIDBDataLossTotal) |
| 44 | 44 |
| 45 // Used to enumerate indexed databases. | 45 // Used to enumerate indexed databases. |
| 46 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params) | 46 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params) |
| 47 // The response should have these ids. | 47 // The response should have these ids. |
| 48 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) | 48 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) |
| 49 IPC_STRUCT_MEMBER(int32_t, ipc_callbacks_id) | 49 IPC_STRUCT_MEMBER(int32_t, ipc_callbacks_id) |
| 50 // The string id of the origin doing the initiating. | 50 // The origin doing the initiating. |
| 51 IPC_STRUCT_MEMBER(std::string, database_identifier) | 51 IPC_STRUCT_MEMBER(GURL, origin) |
|
Mike West
2016/03/03 05:49:08
I think I'm missing something here... If you're ch
jsbell
2016/03/08 17:17:11
On the content/browser side ("back end") this is u
| |
| 52 IPC_STRUCT_END() | 52 IPC_STRUCT_END() |
| 53 | 53 |
| 54 // Used to open an indexed database. | 54 // Used to open an indexed database. |
| 55 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) | 55 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) |
| 56 // The response should have these ids. | 56 // The response should have these ids. |
| 57 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) | 57 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) |
| 58 // Identifier of the request | 58 // Identifier of the request |
| 59 IPC_STRUCT_MEMBER(int32_t, ipc_callbacks_id) | 59 IPC_STRUCT_MEMBER(int32_t, ipc_callbacks_id) |
| 60 // Identifier for database callbacks | 60 // Identifier for database callbacks |
| 61 IPC_STRUCT_MEMBER(int32_t, ipc_database_callbacks_id) | 61 IPC_STRUCT_MEMBER(int32_t, ipc_database_callbacks_id) |
| 62 // The string id of the origin doing the initiating. | 62 // The origin doing the initiating. |
| 63 IPC_STRUCT_MEMBER(std::string, database_identifier) | 63 IPC_STRUCT_MEMBER(GURL, origin) |
| 64 // The name of the database. | 64 // The name of the database. |
| 65 IPC_STRUCT_MEMBER(base::string16, name) | 65 IPC_STRUCT_MEMBER(base::string16, name) |
| 66 // The transaction id used if a database upgrade is needed. | 66 // The transaction id used if a database upgrade is needed. |
| 67 IPC_STRUCT_MEMBER(int64_t, transaction_id) | 67 IPC_STRUCT_MEMBER(int64_t, transaction_id) |
| 68 // The requested version of the database. | 68 // The requested version of the database. |
| 69 IPC_STRUCT_MEMBER(int64_t, version) | 69 IPC_STRUCT_MEMBER(int64_t, version) |
| 70 IPC_STRUCT_END() | 70 IPC_STRUCT_END() |
| 71 | 71 |
| 72 // Used to delete an indexed database. | 72 // Used to delete an indexed database. |
| 73 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params) | 73 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params) |
| 74 // The response should have these ids. | 74 // The response should have these ids. |
| 75 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) | 75 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) |
| 76 IPC_STRUCT_MEMBER(int32_t, ipc_callbacks_id) | 76 IPC_STRUCT_MEMBER(int32_t, ipc_callbacks_id) |
| 77 // The string id of the origin doing the initiating. | 77 // The origin doing the initiating. |
| 78 IPC_STRUCT_MEMBER(std::string, database_identifier) | 78 IPC_STRUCT_MEMBER(GURL, origin) |
| 79 // The name of the database. | 79 // The name of the database. |
| 80 IPC_STRUCT_MEMBER(base::string16, name) | 80 IPC_STRUCT_MEMBER(base::string16, name) |
| 81 IPC_STRUCT_END() | 81 IPC_STRUCT_END() |
| 82 | 82 |
| 83 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateTransaction_Params) | 83 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateTransaction_Params) |
| 84 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) | 84 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) |
| 85 // The database the object store belongs to. | 85 // The database the object store belongs to. |
| 86 IPC_STRUCT_MEMBER(int32_t, ipc_database_id) | 86 IPC_STRUCT_MEMBER(int32_t, ipc_database_id) |
| 87 // The transaction id as minted by the frontend. | 87 // The transaction id as minted by the frontend. |
| 88 IPC_STRUCT_MEMBER(int64_t, transaction_id) | 88 IPC_STRUCT_MEMBER(int64_t, transaction_id) |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 570 int64_t) /* transaction_id */ | 570 int64_t) /* transaction_id */ |
| 571 | 571 |
| 572 // WebIDBDatabase::commit() message. | 572 // WebIDBDatabase::commit() message. |
| 573 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, | 573 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, |
| 574 int32_t, /* ipc_database_id */ | 574 int32_t, /* ipc_database_id */ |
| 575 int64_t) /* transaction_id */ | 575 int64_t) /* transaction_id */ |
| 576 | 576 |
| 577 // WebIDBDatabase::~WebIDBCursor() message. | 577 // WebIDBDatabase::~WebIDBCursor() message. |
| 578 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, | 578 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, |
| 579 int32_t /* ipc_cursor_id */) | 579 int32_t /* ipc_cursor_id */) |
| OLD | NEW |