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..9845f93e218877a13b064edebedf14636e469248 100644 |
--- a/webkit/glue/web_intent_data.h |
+++ b/webkit/glue/web_intent_data.h |
@@ -5,6 +5,8 @@ |
#ifndef WEBKIT_GLUE_WEB_INTENT_DATA_H_ |
#define WEBKIT_GLUE_WEB_INTENT_DATA_H_ |
+#include <map> |
+ |
#include "base/string16.h" |
#include "webkit/glue/webkit_glue_export.h" |
@@ -24,8 +26,33 @@ struct WEBKIT_GLUE_EXPORT WebIntentData { |
// SerializedScriptObject. |
string16 data; |
+ // Any extra key-value pair metadata. |
+ std::map<string16, string16> extra_data; |
+ |
+ // String payload data. |
+ string16 unserialized_data; |
+ |
+ // The filename containing a payload blob. (UTF8) |
+ std::string blob_file; |
+ // Length of the blob. |
+ int64 blob_length; |
+ |
+ enum { |
+ SERIALIZED = 0, |
+ UNSERIALIZED = 1, |
+ BLOB = 2 |
+ }; |
+ int data_type; |
+ |
WebIntentData(); |
WebIntentData(const WebKit::WebIntent& intent); |
+ WebIntentData(const string16& action_in, |
+ const string16& type_in, |
+ const string16& unserialized_data_in); |
+ WebIntentData(const string16& action_in, |
+ const string16& type_in, |
+ const std::string& blob_file_in, |
+ int64 blob_length_in); |
~WebIntentData(); |
}; |