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(); |
}; |