| 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 // Multiply-included message file, no traditional include guard. | 5 // Multiply-included message file, no traditional include guard. |
| 6 #include "base/shared_memory.h" |
| 6 #include "content/public/common/common_param_traits.h" | 7 #include "content/public/common/common_param_traits.h" |
| 7 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 8 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
| 9 #include "ipc/ipc_param_traits.h" | 10 #include "ipc/ipc_param_traits.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.h" |
| 11 #include "webkit/dom_storage/dom_storage_types.h" | 12 #include "webkit/dom_storage/dom_storage_types.h" |
| 12 | 13 |
| 13 #define IPC_MESSAGE_START DOMStorageMsgStart | 14 #define IPC_MESSAGE_START DOMStorageMsgStart |
| 14 | 15 |
| 15 // Signals a local storage event. | 16 // Signals a local storage event. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 int /* connection_id */, | 78 int /* connection_id */, |
| 78 unsigned /* length */) | 79 unsigned /* length */) |
| 79 | 80 |
| 80 // Get a the ith key within a storage area. | 81 // Get a the ith key within a storage area. |
| 81 IPC_SYNC_MESSAGE_CONTROL2_1(DOMStorageHostMsg_Key, | 82 IPC_SYNC_MESSAGE_CONTROL2_1(DOMStorageHostMsg_Key, |
| 82 int /* connection_id */, | 83 int /* connection_id */, |
| 83 unsigned /* index */, | 84 unsigned /* index */, |
| 84 NullableString16 /* key */) | 85 NullableString16 /* key */) |
| 85 | 86 |
| 86 // Get a value based on a key from a storage area. | 87 // Get a value based on a key from a storage area. |
| 87 IPC_SYNC_MESSAGE_CONTROL2_1(DOMStorageHostMsg_GetItem, | 88 IPC_SYNC_MESSAGE_CONTROL2_4(DOMStorageHostMsg_GetItem, |
| 88 int /* connection_id */, | 89 int /* connection_id */, |
| 89 string16 /* key */, | 90 string16 /* key */, |
| 91 int /*IPC mode flag*/, |
| 92 base::SharedMemoryHandle /*shm handle*/, |
| 93 unsigned /* value length*/, |
| 90 NullableString16 /* value */) | 94 NullableString16 /* value */) |
| 91 | 95 |
| 92 // TODO(michaeln): after the old sync IPC message have been deleted, | 96 // TODO(michaeln): after the old sync IPC message have been deleted, |
| 93 // rename the Async ones to no longer have the Async suffix. | 97 // rename the Async ones to no longer have the Async suffix. |
| 94 | 98 |
| 95 // Set a value that's associated with a key in a storage area. | 99 // Set a value that's associated with a key in a storage area. |
| 96 IPC_SYNC_MESSAGE_CONTROL4_2(DOMStorageHostMsg_SetItem, | 100 IPC_SYNC_MESSAGE_CONTROL4_2(DOMStorageHostMsg_SetItem, |
| 97 int /* connection_id */, | 101 int /* connection_id */, |
| 98 string16 /* key */, | 102 string16 /* key */, |
| 99 string16 /* value */, | 103 string16 /* value */, |
| 100 GURL /* page_url */, | 104 GURL /* page_url */, |
| 101 WebKit::WebStorageArea::Result /* result */, | 105 WebKit::WebStorageArea::Result /* result */, |
| 102 NullableString16 /* old_value */) | 106 NullableString16 /* old_value */) |
| 103 | 107 |
| 104 // Set a value that's associated with a key in a storage area. | 108 // Set a value that's associated with a key in a storage area. |
| 109 IPC_SYNC_MESSAGE_CONTROL5_2(DOMStorageHostMsg_SetItemOpt, |
| 110 int /* connection_id */, |
| 111 string16 /* key */, |
| 112 int /*value length*/, |
| 113 base::SharedMemoryHandle /* value */, |
| 114 GURL /* page_url */, |
| 115 WebKit::WebStorageArea::Result /* result */, |
| 116 NullableString16 /* old_value */) |
| 117 |
| 118 // Set a value that's associated with a key in a storage area. |
| 105 // A completion notification is sent in response. | 119 // A completion notification is sent in response. |
| 106 IPC_MESSAGE_CONTROL5(DOMStorageHostMsg_SetItemAsync, | 120 IPC_MESSAGE_CONTROL5(DOMStorageHostMsg_SetItemAsync, |
| 107 int /* connection_id */, | 121 int /* connection_id */, |
| 108 int /* operation_id */, | 122 int /* operation_id */, |
| 109 string16 /* key */, | 123 string16 /* key */, |
| 110 string16 /* value */, | 124 string16 /* value */, |
| 111 GURL /* page_url */) | 125 GURL /* page_url */) |
| 112 | 126 |
| 113 // Remove the value associated with a key in a storage area. | 127 // Remove the value associated with a key in a storage area. |
| 114 IPC_SYNC_MESSAGE_CONTROL3_1(DOMStorageHostMsg_RemoveItem, | 128 IPC_SYNC_MESSAGE_CONTROL3_1(DOMStorageHostMsg_RemoveItem, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 129 IPC_SYNC_MESSAGE_CONTROL2_1(DOMStorageHostMsg_Clear, | 143 IPC_SYNC_MESSAGE_CONTROL2_1(DOMStorageHostMsg_Clear, |
| 130 int /* connection_id */, | 144 int /* connection_id */, |
| 131 GURL /* page_url */, | 145 GURL /* page_url */, |
| 132 bool /* something_cleared */) | 146 bool /* something_cleared */) |
| 133 | 147 |
| 134 // Clear the storage area. A completion notification is sent in response. | 148 // Clear the storage area. A completion notification is sent in response. |
| 135 IPC_MESSAGE_CONTROL3(DOMStorageHostMsg_ClearAsync, | 149 IPC_MESSAGE_CONTROL3(DOMStorageHostMsg_ClearAsync, |
| 136 int /* connection_id */, | 150 int /* connection_id */, |
| 137 int /* operation_id */, | 151 int /* operation_id */, |
| 138 GURL /* page_url */) | 152 GURL /* page_url */) |
| OLD | NEW |