| 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 <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 typedef std::map<int32_t, std::vector<int32_t>> ObservationIndex; | 32 typedef std::map<int32_t, std::vector<int32_t>> ObservationIndex; |
| 33 | 33 |
| 34 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGES_H_ | 34 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGES_H_ |
| 35 | 35 |
| 36 #undef IPC_MESSAGE_EXPORT | 36 #undef IPC_MESSAGE_EXPORT |
| 37 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 37 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 38 #define IPC_MESSAGE_START IndexedDBMsgStart | 38 #define IPC_MESSAGE_START IndexedDBMsgStart |
| 39 | 39 |
| 40 // Argument structures used in messages | 40 // Argument structures used in messages |
| 41 | 41 |
| 42 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBCursorDirection, | |
| 43 blink::WebIDBCursorDirectionLast) | |
| 44 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBPutMode, blink::WebIDBPutModeLast) | |
| 45 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBTaskType, blink::WebIDBTaskTypeLast) | |
| 46 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBTransactionMode, | |
| 47 blink::WebIDBTransactionModeLast) | |
| 48 | |
| 49 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBDataLoss, blink::WebIDBDataLossTotal) | |
| 50 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBOperationType, | 42 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBOperationType, |
| 51 blink::WebIDBOperationTypeLast) | 43 blink::WebIDBOperationTypeLast) |
| 52 | 44 |
| 53 IPC_STRUCT_BEGIN(IndexedDBMsg_Observation) | 45 IPC_STRUCT_BEGIN(IndexedDBMsg_Observation) |
| 54 IPC_STRUCT_MEMBER(int64_t, object_store_id) | 46 IPC_STRUCT_MEMBER(int64_t, object_store_id) |
| 55 IPC_STRUCT_MEMBER(blink::WebIDBOperationType, type) | 47 IPC_STRUCT_MEMBER(blink::WebIDBOperationType, type) |
| 56 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range) | 48 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range) |
| 57 IPC_STRUCT_END() | 49 IPC_STRUCT_END() |
| 58 | 50 |
| 59 IPC_STRUCT_BEGIN(IndexedDBMsg_ObserverChanges) | 51 IPC_STRUCT_BEGIN(IndexedDBMsg_ObserverChanges) |
| 60 IPC_STRUCT_MEMBER(ObservationIndex, observation_index) | 52 IPC_STRUCT_MEMBER(ObservationIndex, observation_index) |
| 61 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_Observation>, observations) | 53 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_Observation>, observations) |
| 62 IPC_STRUCT_END() | 54 IPC_STRUCT_END() |
| 63 | 55 |
| 64 // Indexed DB messages sent from the browser to the renderer. | 56 // Indexed DB messages sent from the browser to the renderer. |
| 65 | 57 |
| 66 // The thread_id needs to be the first parameter in these messages. In the IO | 58 // The thread_id needs to be the first parameter in these messages. In the IO |
| 67 // thread on the renderer/client process, an IDB message filter assumes the | 59 // thread on the renderer/client process, an IDB message filter assumes the |
| 68 // thread_id is the first int. | 60 // thread_id is the first int. |
| 69 | 61 |
| 70 // IDBDatabaseCallback message handlers | 62 // IDBDatabaseCallback message handlers |
| 71 IPC_MESSAGE_CONTROL2(IndexedDBMsg_DatabaseCallbacksChanges, | 63 IPC_MESSAGE_CONTROL2(IndexedDBMsg_DatabaseCallbacksChanges, |
| 72 int32_t, /* ipc_thread_id */ | 64 int32_t, /* ipc_thread_id */ |
| 73 IndexedDBMsg_ObserverChanges) | 65 IndexedDBMsg_ObserverChanges) |
| OLD | NEW |