OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/dom_storage_types.h" | 6 #include "content/common/dom_storage/dom_storage_types.h" |
7 #include "content/public/common/common_param_traits.h" | 7 #include "content/public/common/common_param_traits.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" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // Storage events are broadcast to all renderer processes. | 46 // Storage events are broadcast to all renderer processes. |
47 IPC_MESSAGE_CONTROL1(DOMStorageMsg_Event, | 47 IPC_MESSAGE_CONTROL1(DOMStorageMsg_Event, |
48 DOMStorageMsg_Event_Params) | 48 DOMStorageMsg_Event_Params) |
49 | 49 |
50 // Completion notification sent in response to each async | 50 // Completion notification sent in response to each async |
51 // load, set, remove, and clear operation. | 51 // load, set, remove, and clear operation. |
52 // Used to maintain the integrity of the renderer-side cache. | 52 // Used to maintain the integrity of the renderer-side cache. |
53 IPC_MESSAGE_CONTROL1(DOMStorageMsg_AsyncOperationComplete, | 53 IPC_MESSAGE_CONTROL1(DOMStorageMsg_AsyncOperationComplete, |
54 bool /* success */) | 54 bool /* success */) |
55 | 55 |
56 // Notification instructing the renderer to refresh all cached values for | |
57 // the given namespace. | |
58 IPC_MESSAGE_CONTROL1(DOMStorageMsg_ResetCachedValues, | |
59 int64 /* namespace_id */) | |
60 | |
61 // DOM Storage messages sent from the renderer to the browser. | 56 // DOM Storage messages sent from the renderer to the browser. |
62 // Note: The 'connection_id' must be the first parameter in these message. | 57 // Note: The 'connection_id' must be the first parameter in these message. |
63 | 58 |
64 // Open the storage area for a particular origin within a namespace. | 59 // Open the storage area for a particular origin within a namespace. |
65 IPC_MESSAGE_CONTROL3(DOMStorageHostMsg_OpenStorageArea, | 60 IPC_MESSAGE_CONTROL3(DOMStorageHostMsg_OpenStorageArea, |
66 int /* connection_id */, | 61 int /* connection_id */, |
67 int64 /* namespace_id */, | 62 int64 /* namespace_id */, |
68 GURL /* origin */) | 63 GURL /* origin */) |
69 | 64 |
70 // Close a previously opened storage area. | 65 // Close a previously opened storage area. |
71 IPC_MESSAGE_CONTROL1(DOMStorageHostMsg_CloseStorageArea, | 66 IPC_MESSAGE_CONTROL1(DOMStorageHostMsg_CloseStorageArea, |
72 int /* connection_id */) | 67 int /* connection_id */) |
73 | 68 |
74 // Retrieves the set of key/value pairs for the area. Used to prime | 69 // Retrieves the set of key/value pairs for the area. Used to prime |
75 // the renderer-side cache. A completion notification is sent in response. | 70 // the renderer-side cache. A completion notification is sent in response. |
76 // The response will also indicate whether the renderer should send | 71 IPC_SYNC_MESSAGE_CONTROL1_1(DOMStorageHostMsg_LoadStorageArea, |
77 // messagse to the browser for get operations for logging purposes. | |
78 IPC_SYNC_MESSAGE_CONTROL1_2(DOMStorageHostMsg_LoadStorageArea, | |
79 int /* connection_id */, | 72 int /* connection_id */, |
80 content::DOMStorageValuesMap, | 73 content::DOMStorageValuesMap) |
81 bool /* send_log_get_messages */) | |
82 | 74 |
83 // Set a value that's associated with a key in a storage area. | 75 // Set a value that's associated with a key in a storage area. |
84 // A completion notification is sent in response. | 76 // A completion notification is sent in response. |
85 IPC_MESSAGE_CONTROL4(DOMStorageHostMsg_SetItem, | 77 IPC_MESSAGE_CONTROL4(DOMStorageHostMsg_SetItem, |
86 int /* connection_id */, | 78 int /* connection_id */, |
87 base::string16 /* key */, | 79 base::string16 /* key */, |
88 base::string16 /* value */, | 80 base::string16 /* value */, |
89 GURL /* page_url */) | 81 GURL /* page_url */) |
90 | 82 |
91 // Logs that a get operation was performed on a key/value pair. | |
92 IPC_MESSAGE_CONTROL3(DOMStorageHostMsg_LogGetItem, | |
93 int /* connection_id */, | |
94 base::string16 /* key */, | |
95 base::NullableString16 /* value */) | |
96 | |
97 // Remove the value associated with a key in a storage area. | 83 // Remove the value associated with a key in a storage area. |
98 // A completion notification is sent in response. | 84 // A completion notification is sent in response. |
99 IPC_MESSAGE_CONTROL3(DOMStorageHostMsg_RemoveItem, | 85 IPC_MESSAGE_CONTROL3(DOMStorageHostMsg_RemoveItem, |
100 int /* connection_id */, | 86 int /* connection_id */, |
101 base::string16 /* key */, | 87 base::string16 /* key */, |
102 GURL /* page_url */) | 88 GURL /* page_url */) |
103 | 89 |
104 // Clear the storage area. A completion notification is sent in response. | 90 // Clear the storage area. A completion notification is sent in response. |
105 IPC_MESSAGE_CONTROL2(DOMStorageHostMsg_Clear, | 91 IPC_MESSAGE_CONTROL2(DOMStorageHostMsg_Clear, |
106 int /* connection_id */, | 92 int /* connection_id */, |
107 GURL /* page_url */) | 93 GURL /* page_url */) |
108 | 94 |
109 // Used to flush the ipc message queue. | 95 // Used to flush the ipc message queue. |
110 IPC_SYNC_MESSAGE_CONTROL0_0(DOMStorageHostMsg_FlushMessages) | 96 IPC_SYNC_MESSAGE_CONTROL0_0(DOMStorageHostMsg_FlushMessages) |
OLD | NEW |