| 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "content/common/indexed_db/indexed_db_key.h" | 13 #include "content/common/indexed_db/indexed_db_key.h" |
| 14 #include "content/common/indexed_db/indexed_db_key_path.h" | 14 #include "content/common/indexed_db/indexed_db_key_path.h" |
| 15 #include "content/common/indexed_db/indexed_db_key_range.h" | 15 #include "content/common/indexed_db/indexed_db_key_range.h" |
| 16 #include "content/common/indexed_db/indexed_db_param_traits.h" | 16 #include "content/common/indexed_db/indexed_db_param_traits.h" |
| 17 #include "ipc/ipc_message_macros.h" | 17 #include "ipc/ipc_message_macros.h" |
| 18 #include "ipc/ipc_param_traits.h" | 18 #include "ipc/ipc_param_traits.h" |
| 19 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" | 19 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" |
| 20 #include "url/origin.h" |
| 20 | 21 |
| 21 // Singly-included section for typedefs in multiply-included file. | 22 // Singly-included section for typedefs in multiply-included file. |
| 22 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGES_H_ | 23 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGES_H_ |
| 23 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGES_H_ | 24 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGES_H_ |
| 24 | 25 |
| 25 // An index id, and corresponding set of keys to insert. | 26 // An index id, and corresponding set of keys to insert. |
| 26 typedef std::pair<int64_t, std::vector<content::IndexedDBKey>> IndexKeys; | 27 typedef std::pair<int64_t, std::vector<content::IndexedDBKey>> IndexKeys; |
| 27 | 28 |
| 28 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGES_H_ | 29 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGES_H_ |
| 29 | 30 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 41 blink::WebIDBTransactionModeLast) | 42 blink::WebIDBTransactionModeLast) |
| 42 | 43 |
| 43 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBDataLoss, blink::WebIDBDataLossTotal) | 44 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBDataLoss, blink::WebIDBDataLossTotal) |
| 44 | 45 |
| 45 // Used to enumerate indexed databases. | 46 // Used to enumerate indexed databases. |
| 46 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params) | 47 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params) |
| 47 // The response should have these ids. | 48 // The response should have these ids. |
| 48 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) | 49 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) |
| 49 IPC_STRUCT_MEMBER(int32_t, ipc_callbacks_id) | 50 IPC_STRUCT_MEMBER(int32_t, ipc_callbacks_id) |
| 50 // The origin doing the initiating. | 51 // The origin doing the initiating. |
| 51 IPC_STRUCT_MEMBER(GURL, origin) | 52 IPC_STRUCT_MEMBER(url::Origin, origin) |
| 52 IPC_STRUCT_END() | 53 IPC_STRUCT_END() |
| 53 | 54 |
| 54 // Used to open an indexed database. | 55 // Used to open an indexed database. |
| 55 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) | 56 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) |
| 56 // The response should have these ids. | 57 // The response should have these ids. |
| 57 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) | 58 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) |
| 58 // Identifier of the request | 59 // Identifier of the request |
| 59 IPC_STRUCT_MEMBER(int32_t, ipc_callbacks_id) | 60 IPC_STRUCT_MEMBER(int32_t, ipc_callbacks_id) |
| 60 // Identifier for database callbacks | 61 // Identifier for database callbacks |
| 61 IPC_STRUCT_MEMBER(int32_t, ipc_database_callbacks_id) | 62 IPC_STRUCT_MEMBER(int32_t, ipc_database_callbacks_id) |
| 62 // The origin doing the initiating. | 63 // The origin doing the initiating. |
| 63 IPC_STRUCT_MEMBER(GURL, origin) | 64 IPC_STRUCT_MEMBER(url::Origin, origin) |
| 64 // The name of the database. | 65 // The name of the database. |
| 65 IPC_STRUCT_MEMBER(base::string16, name) | 66 IPC_STRUCT_MEMBER(base::string16, name) |
| 66 // The transaction id used if a database upgrade is needed. | 67 // The transaction id used if a database upgrade is needed. |
| 67 IPC_STRUCT_MEMBER(int64_t, transaction_id) | 68 IPC_STRUCT_MEMBER(int64_t, transaction_id) |
| 68 // The requested version of the database. | 69 // The requested version of the database. |
| 69 IPC_STRUCT_MEMBER(int64_t, version) | 70 IPC_STRUCT_MEMBER(int64_t, version) |
| 70 IPC_STRUCT_END() | 71 IPC_STRUCT_END() |
| 71 | 72 |
| 72 // Used to delete an indexed database. | 73 // Used to delete an indexed database. |
| 73 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params) | 74 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params) |
| 74 // The response should have these ids. | 75 // The response should have these ids. |
| 75 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) | 76 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) |
| 76 IPC_STRUCT_MEMBER(int32_t, ipc_callbacks_id) | 77 IPC_STRUCT_MEMBER(int32_t, ipc_callbacks_id) |
| 77 // The origin doing the initiating. | 78 // The origin doing the initiating. |
| 78 IPC_STRUCT_MEMBER(GURL, origin) | 79 IPC_STRUCT_MEMBER(url::Origin, origin) |
| 79 // The name of the database. | 80 // The name of the database. |
| 80 IPC_STRUCT_MEMBER(base::string16, name) | 81 IPC_STRUCT_MEMBER(base::string16, name) |
| 81 IPC_STRUCT_END() | 82 IPC_STRUCT_END() |
| 82 | 83 |
| 83 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateTransaction_Params) | 84 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateTransaction_Params) |
| 84 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) | 85 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) |
| 85 // The database the object store belongs to. | 86 // The database the object store belongs to. |
| 86 IPC_STRUCT_MEMBER(int32_t, ipc_database_id) | 87 IPC_STRUCT_MEMBER(int32_t, ipc_database_id) |
| 87 // The transaction id as minted by the frontend. | 88 // The transaction id as minted by the frontend. |
| 88 IPC_STRUCT_MEMBER(int64_t, transaction_id) | 89 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 */ | 571 int64_t) /* transaction_id */ |
| 571 | 572 |
| 572 // WebIDBDatabase::commit() message. | 573 // WebIDBDatabase::commit() message. |
| 573 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, | 574 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, |
| 574 int32_t, /* ipc_database_id */ | 575 int32_t, /* ipc_database_id */ |
| 575 int64_t) /* transaction_id */ | 576 int64_t) /* transaction_id */ |
| 576 | 577 |
| 577 // WebIDBDatabase::~WebIDBCursor() message. | 578 // WebIDBDatabase::~WebIDBCursor() message. |
| 578 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, | 579 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, |
| 579 int32_t /* ipc_cursor_id */) | 580 int32_t /* ipc_cursor_id */) |
| OLD | NEW |