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

Unified Diff: webkit/glue/web_intent_data.h

Issue 9692017: An internal intents dispatcher useful for initiating an intent from the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add CONTENT_EXPORT Created 8 years, 9 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 | « content/renderer/web_intents_host.cc ('k') | webkit/glue/web_intent_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/web_intent_data.h
diff --git a/webkit/glue/web_intent_data.h b/webkit/glue/web_intent_data.h
index 540cd159a30eae7c275757d45218c92e948f1add..f7cfb23d7b36ccacdbadbe6c38cfc68cb9c7d72d 100644
--- a/webkit/glue/web_intent_data.h
+++ b/webkit/glue/web_intent_data.h
@@ -24,8 +24,22 @@ struct WEBKIT_GLUE_EXPORT WebIntentData {
// SerializedScriptObject.
string16 data;
+ // String payload data.
+ string16 unserialized_data;
+
+ // These enum values indicate which payload data type should be used.
+ enum DataType {
+ SERIALIZED = 0, // The payload is serialized in |data|.
+ UNSERIALIZED = 1 // The payload is unseriazed in |unserialized_data|.
+ };
+ // Which data payload to use when delivering the intent.
+ DataType data_type;
+
WebIntentData();
WebIntentData(const WebKit::WebIntent& intent);
+ WebIntentData(const string16& action_in,
+ const string16& type_in,
+ const string16& unserialized_data_in);
~WebIntentData();
};
« no previous file with comments | « content/renderer/web_intents_host.cc ('k') | webkit/glue/web_intent_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698