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/Source/Platform/chromium/public/WebStorageArea.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebStorageArea.h" |
(...skipping 18 matching lines...) Expand all Loading... |
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) |
35 | 35 |
36 // The non-zero session namespace_id associated with the event or 0 if | 36 // The non-zero session namespace_id associated with the event or 0 if |
37 // this is a local storage event. | 37 // this is a local storage event. |
38 IPC_STRUCT_MEMBER(int64, namespace_id) | 38 IPC_STRUCT_MEMBER(int64, namespace_id) |
| 39 |
| 40 IPC_STRUCT_MEMBER(int64, storage_size) |
39 IPC_STRUCT_END() | 41 IPC_STRUCT_END() |
40 | 42 |
41 IPC_ENUM_TRAITS(WebKit::WebStorageArea::Result) | 43 IPC_ENUM_TRAITS(WebKit::WebStorageArea::Result) |
42 | 44 |
43 // DOM Storage messages sent from the browser to the renderer. | 45 // DOM Storage messages sent from the browser to the renderer. |
44 | 46 |
45 // Storage events are broadcast to all renderer processes. | 47 // Storage events are broadcast to all renderer processes. |
46 IPC_MESSAGE_CONTROL1(DOMStorageMsg_Event, | 48 IPC_MESSAGE_CONTROL1(DOMStorageMsg_Event, |
47 DOMStorageMsg_Event_Params) | 49 DOMStorageMsg_Event_Params) |
48 | 50 |
49 // Completion notification sent in response to each async | 51 // Completion notification sent in response to each async |
50 // load, set, remove, and clear operation. | 52 // load, set, remove, and clear operation. |
51 // Used to maintain the integrity of the renderer-side cache. | 53 // Used to maintain the integrity of the renderer-side cache. |
52 IPC_MESSAGE_CONTROL1(DOMStorageMsg_AsyncOperationComplete, | 54 IPC_MESSAGE_CONTROL1(DOMStorageMsg_AsyncOperationComplete, |
53 bool /* success */) | 55 bool /* success */) |
54 | 56 |
55 // DOM Storage messages sent from the renderer to the browser. | 57 // DOM Storage messages sent from the renderer to the browser. |
56 // Note: The 'connection_id' must be the first parameter in these message. | 58 // Note: The 'connection_id' must be the first parameter in these message. |
57 | 59 |
58 // Open the storage area for a particular origin within a namespace. | 60 // Open the storage area for a particular origin within a namespace. |
59 IPC_MESSAGE_CONTROL3(DOMStorageHostMsg_OpenStorageArea, | 61 IPC_SYNC_MESSAGE_CONTROL3_1(DOMStorageHostMsg_OpenStorageArea, |
60 int /* connection_id */, | 62 int /* connection_id */, |
61 int64 /* namespace_id */, | 63 int64 /* namespace_id */, |
62 GURL /* origin */) | 64 GURL /* origin */, |
| 65 int64 /* storage_size (out) */) |
63 | 66 |
64 // Close a previously opened storage area. | 67 // Close a previously opened storage area. |
65 IPC_MESSAGE_CONTROL1(DOMStorageHostMsg_CloseStorageArea, | 68 IPC_MESSAGE_CONTROL1(DOMStorageHostMsg_CloseStorageArea, |
66 int /* connection_id */) | 69 int /* connection_id */) |
67 | 70 |
68 // Retrieves the set of key/value pairs for the area. Used to prime | 71 // Retrieves the set of key/value pairs for the area. Used to prime |
69 // the renderer-side cache. A completion notification is sent in response. | 72 // the renderer-side cache. A completion notification is sent in response. |
70 IPC_SYNC_MESSAGE_CONTROL1_1(DOMStorageHostMsg_LoadStorageArea, | 73 IPC_SYNC_MESSAGE_CONTROL1_1(DOMStorageHostMsg_LoadStorageArea, |
71 int /* connection_id */, | 74 int /* connection_id */, |
72 dom_storage::ValuesMap) | 75 dom_storage::ValuesMap) |
(...skipping 13 matching lines...) Expand all Loading... |
86 string16 /* key */, | 89 string16 /* key */, |
87 GURL /* page_url */) | 90 GURL /* page_url */) |
88 | 91 |
89 // Clear the storage area. A completion notification is sent in response. | 92 // Clear the storage area. A completion notification is sent in response. |
90 IPC_MESSAGE_CONTROL2(DOMStorageHostMsg_Clear, | 93 IPC_MESSAGE_CONTROL2(DOMStorageHostMsg_Clear, |
91 int /* connection_id */, | 94 int /* connection_id */, |
92 GURL /* page_url */) | 95 GURL /* page_url */) |
93 | 96 |
94 // Used to flush the ipc message queue. | 97 // Used to flush the ipc message queue. |
95 IPC_SYNC_MESSAGE_CONTROL0_0(DOMStorageHostMsg_FlushMessages) | 98 IPC_SYNC_MESSAGE_CONTROL0_0(DOMStorageHostMsg_FlushMessages) |
OLD | NEW |