Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5599)

Unified Diff: chrome/common/render_messages_internal.h

Issue 155845: DOM Storage: Add browser-process IPC code + tweak the WebKit Thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages_internal.h
===================================================================
--- chrome/common/render_messages_internal.h (revision 21342)
+++ chrome/common/render_messages_internal.h (working copy)
@@ -1472,6 +1472,77 @@
IPC_MESSAGE_CONTROL1(ViewHostMsg_SetCacheMode,
bool /* enabled */)
+ // There's one LocalStorage namespace per profile and one SessionStorage
+ // namespace per tab. This will find or create the proper namespace.
+ IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageNamespaceId,
+ bool /* is_local_storage */,
+ int64 /* new_namespace_id */)
+
+ // Used by SessionStorage to clone a namespace per the spec.
+ IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageCloneNamespaceId,
+ int64 /* namespace_id to clone */,
+ int64 /* new_namespace_id */)
+
+ // Explicitly drop a reference to a namespace. This is done implicitly
+ // for all namespaces owned by a renderer process when it dies.
+ IPC_MESSAGE_CONTROL1(ViewHostMsg_DOMStorageDerefNamespaceId,
+ int64 /* namespace_id */)
+
+ // Get the storage area id for a particular origin within a namespace.
+ IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageStorageAreaId,
+ int64 /* namespace_id */,
+ string16 /* origin */,
+ int64 /* storage_area_id */)
+
+ // Lock a particular origin (per the DOM Storage spec).
+ IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_DOMStorageLock,
+ int64 /* storage_area_id */,
+ bool /* invalidate_cache */,
+ size_t /* bytes_left_in_quota */)
+
+ // Release the lock on a particular storage area. This should happen
+ // whenever we exit a script region, do something synchronous, or
+ // explicitly drop the lock via navigator.releaseLock().
+ IPC_MESSAGE_CONTROL1(ViewHostMsg_DOMStorageUnlock,
+ int64 /* storage_area_id */)
+
+ // Get the length of a storage area.
+ IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageLength,
+ int64 /* storage_area_id */,
+ unsigned /* length */)
+
+ // Get a the ith key within a storage area.
+ IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_DOMStorageKey,
+ int64 /* storage_area_id */,
+ unsigned /* index */,
+ bool /* key_exception */,
+ string16 /* key */)
+
+ // Get a value based on a key from a storage area.
+ // TODO(jorlow): Convert value + value_is_null over to a NullableString16
+ // once http://crbug.com/17343 is completed.
+ IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_DOMStorageGetItem,
+ int64 /* storage_area_id */,
+ string16 /* key */,
+ string16 /* value */,
+ bool /* value_is_null */)
+
+ // Set a value that's associated with a key in a storage area.
+ IPC_MESSAGE_CONTROL3(ViewHostMsg_DOMStorageSetItem,
+ int64 /* storage_area_id */,
+ string16 /* key */,
+ string16 /* value */)
+
+ // Remove the value associated with a key in a storage area.
+ IPC_MESSAGE_CONTROL2(ViewHostMsg_DOMStorageRemoveItem,
+ int64 /* storage_area_id */,
+ string16 /* key */)
+
+ // Clear the storage area.
+ IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageClear,
+ int64 /* storage_area_id */,
+ size_t /* bytes_left_in_quota */)
+
// Get file size in bytes. Set result to -1 if failed to get the file size.
IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileSize,
FilePath /* path */,
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698