| 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 "content/public/common/common_param_traits.h" | 6 #include "content/public/common/common_param_traits.h" |
| 7 #include "googleurl/src/gurl.h" | 7 #include "googleurl/src/gurl.h" |
| 8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
| 9 #include "ipc/ipc_param_traits.h" | 9 #include "ipc/ipc_param_traits.h" |
| 10 #include "third_party/WebKit/public/platform/WebStorageArea.h" | 10 #include "third_party/WebKit/public/platform/WebStorageArea.h" |
| 11 #include "webkit/common/dom_storage/dom_storage_types.h" | 11 #include "webkit/common/dom_storage/dom_storage_types.h" |
| 12 | 12 |
| 13 #define IPC_MESSAGE_START DOMStorageMsgStart | 13 #define IPC_MESSAGE_START DOMStorageMsgStart |
| 14 | 14 |
| 15 // Signals a local storage event. | 15 // Signals a local storage event. |
| 16 IPC_STRUCT_BEGIN(DOMStorageMsg_Event_Params) | 16 IPC_STRUCT_BEGIN(DOMStorageMsg_Event_Params) |
| 17 // The key that generated the storage event. Null if clear() was called. | 17 // The key that generated the storage event. Null if clear() was called. |
| 18 IPC_STRUCT_MEMBER(NullableString16, key) | 18 IPC_STRUCT_MEMBER(base::NullableString16, key) |
| 19 | 19 |
| 20 // The old value of this key. Null on clear() or if it didn't have a value. | 20 // The old value of this key. Null on clear() or if it didn't have a value. |
| 21 IPC_STRUCT_MEMBER(NullableString16, old_value) | 21 IPC_STRUCT_MEMBER(base::NullableString16, old_value) |
| 22 | 22 |
| 23 // The new value of this key. Null on removeItem() or clear(). | 23 // The new value of this key. Null on removeItem() or clear(). |
| 24 IPC_STRUCT_MEMBER(NullableString16, new_value) | 24 IPC_STRUCT_MEMBER(base::NullableString16, new_value) |
| 25 | 25 |
| 26 // The origin this is associated with. | 26 // The origin this is associated with. |
| 27 IPC_STRUCT_MEMBER(GURL, origin) | 27 IPC_STRUCT_MEMBER(GURL, origin) |
| 28 | 28 |
| 29 // The URL of the page that caused the storage event. | 29 // The URL of the page that caused the storage event. |
| 30 IPC_STRUCT_MEMBER(GURL, page_url) | 30 IPC_STRUCT_MEMBER(GURL, page_url) |
| 31 | 31 |
| 32 // The non-zero connection_id which caused the event or 0 if the event | 32 // The non-zero connection_id which caused the event or 0 if the event |
| 33 // was not caused by the target renderer process. | 33 // was not caused by the target renderer process. |
| 34 IPC_STRUCT_MEMBER(int, connection_id) | 34 IPC_STRUCT_MEMBER(int, connection_id) |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 string16 /* key */, | 86 string16 /* key */, |
| 87 GURL /* page_url */) | 87 GURL /* page_url */) |
| 88 | 88 |
| 89 // Clear the storage area. A completion notification is sent in response. | 89 // Clear the storage area. A completion notification is sent in response. |
| 90 IPC_MESSAGE_CONTROL2(DOMStorageHostMsg_Clear, | 90 IPC_MESSAGE_CONTROL2(DOMStorageHostMsg_Clear, |
| 91 int /* connection_id */, | 91 int /* connection_id */, |
| 92 GURL /* page_url */) | 92 GURL /* page_url */) |
| 93 | 93 |
| 94 // Used to flush the ipc message queue. | 94 // Used to flush the ipc message queue. |
| 95 IPC_SYNC_MESSAGE_CONTROL0_0(DOMStorageHostMsg_FlushMessages) | 95 IPC_SYNC_MESSAGE_CONTROL0_0(DOMStorageHostMsg_FlushMessages) |
| OLD | NEW |