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

Unified Diff: content/common/view_messages.h

Issue 332693004: Add a content API for postMessage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address jochen's review Created 6 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
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index d3e5f33228ba7fee0dbadce1fea0d61b555ac008..c520bca26ad1519356c00bd8e8cec06d99c85b87 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -485,9 +485,12 @@ IPC_STRUCT_BEGIN(ViewMsg_New_Params)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params)
+ // Whether the data format is supplied as serialized script value, or as
+ // a simple string. If it is a raw string, must be converted from string to a
+ // WebSerializedScriptValue in renderer.
+ IPC_STRUCT_MEMBER(bool, is_data_raw_string)
// The serialized script value.
IPC_STRUCT_MEMBER(base::string16, data)
-
// When sent to the browser, this is the routing ID of the source frame in
// the source process. The browser replaces it with the routing ID of the
// equivalent (swapped out) frame in the destination process.

Powered by Google App Engine
This is Rietveld 408576698