| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/common/dom_storage_common.h" | 6 #include "content/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/Source/WebKit/chromium/public/WebStorageArea.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.h" |
| 11 | 11 |
| 12 #define IPC_MESSAGE_START DOMStorageMsgStart | 12 #define IPC_MESSAGE_START DOMStorageMsgStart |
| 13 | 13 |
| 14 // Signals a storage event. | 14 // Signals a storage event. |
| 15 IPC_STRUCT_BEGIN(DOMStorageMsg_Event_Params) | 15 IPC_STRUCT_BEGIN(DOMStorageMsg_Event_Params) |
| 16 // The key that generated the storage event. Null if clear() was called. | 16 // The key that generated the storage event. Null if clear() was called. |
| 17 IPC_STRUCT_MEMBER(NullableString16, key) | 17 IPC_STRUCT_MEMBER(NullableString16, key) |
| 18 | 18 |
| 19 // The old value of this key. Null on clear() or if it didn't have a value. | 19 // The old value of this key. Null on clear() or if it didn't have a value. |
| 20 IPC_STRUCT_MEMBER(NullableString16, old_value) | 20 IPC_STRUCT_MEMBER(NullableString16, old_value) |
| 21 | 21 |
| 22 // The new value of this key. Null on removeItem() or clear(). | 22 // The new value of this key. Null on removeItem() or clear(). |
| 23 IPC_STRUCT_MEMBER(NullableString16, new_value) | 23 IPC_STRUCT_MEMBER(NullableString16, new_value) |
| 24 | 24 |
| 25 // The origin this is associated with. | 25 // The origin this is associated with. |
| 26 IPC_STRUCT_MEMBER(string16, origin) | 26 IPC_STRUCT_MEMBER(string16, origin) |
| 27 | 27 |
| 28 // The URL of the page that caused the storage event. | 28 // The URL of the page that caused the storage event. |
| 29 IPC_STRUCT_MEMBER(GURL, url) | 29 IPC_STRUCT_MEMBER(GURL, url) |
| 30 | 30 |
| 31 // The storage type of this event. | 31 // The storage type of this event. |
| 32 IPC_STRUCT_MEMBER(DOMStorageType, storage_type) | 32 IPC_STRUCT_MEMBER(DOMStorageType, storage_type) |
| 33 IPC_STRUCT_END() | 33 IPC_STRUCT_END() |
| 34 | 34 |
| 35 IPC_ENUM_TRAITS(DOMStorageType) | |
| 36 IPC_ENUM_TRAITS(WebKit::WebStorageArea::Result) | 35 IPC_ENUM_TRAITS(WebKit::WebStorageArea::Result) |
| 37 | 36 |
| 38 // DOM Storage messages sent from the browser to the renderer. | 37 // DOM Storage messages sent from the browser to the renderer. |
| 39 | 38 |
| 40 // Storage events are broadcast to renderer processes. | 39 // Storage events are broadcast to renderer processes. |
| 41 IPC_MESSAGE_CONTROL1(DOMStorageMsg_Event, | 40 IPC_MESSAGE_CONTROL1(DOMStorageMsg_Event, |
| 42 DOMStorageMsg_Event_Params) | 41 DOMStorageMsg_Event_Params) |
| 43 | 42 |
| 44 | 43 |
| 45 // DOM Storage messages sent from the renderer to the browser. | 44 // DOM Storage messages sent from the renderer to the browser. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 string16 /* key */, | 83 string16 /* key */, |
| 85 GURL /* url */, | 84 GURL /* url */, |
| 86 NullableString16 /* old_value */) | 85 NullableString16 /* old_value */) |
| 87 | 86 |
| 88 // Clear the storage area. | 87 // Clear the storage area. |
| 89 IPC_SYNC_MESSAGE_CONTROL2_1(DOMStorageHostMsg_Clear, | 88 IPC_SYNC_MESSAGE_CONTROL2_1(DOMStorageHostMsg_Clear, |
| 90 int64 /* storage_area_id */, | 89 int64 /* storage_area_id */, |
| 91 GURL /* url */, | 90 GURL /* url */, |
| 92 bool /* something_cleared */) | 91 bool /* something_cleared */) |
| 93 | 92 |
| OLD | NEW |