Chromium Code Reviews| Index: webkit/glue/web_intent_data.h |
| diff --git a/webkit/glue/web_intent_data.h b/webkit/glue/web_intent_data.h |
| index 78972de59c6496dc7c311ed2567cefdfa88f527b..367b0ea88becb5d4d67d3cf08a25d0ba44eaf166 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" |
| @@ -23,14 +25,22 @@ struct WEBKIT_GLUE_EXPORT WebIntentData { |
| // The representation of the payload data. Wire format is from |
| // SerializedScriptObject. |
|
darin (slow to review)
2012/04/02 16:35:43
nit: SerializedScriptObject -> WebSerializedScript
Greg Billock
2012/04/02 17:49:44
Done.
|
| string16 data; |
| + // Any extra key-value pair metadata. (Not serialized.) |
|
darin (slow to review)
2012/04/02 16:35:43
what does "Not serialized" mean?
Greg Billock
2012/04/02 17:49:44
Meaning the raw string values. I added a note that
|
| + std::map<string16, string16> extra_data; |
| // String payload data. |
| string16 unserialized_data; |
| + // The filename of a payload blob. |
| + std::string blob_file; |
|
darin (slow to review)
2012/04/02 16:35:43
Is this the blob URL? Should you be using GURL in
Greg Billock
2012/04/02 17:49:44
Right. Fixing... (for some reason I assumed FilePa
|
| + // Length of the blob. |
| + int64 blob_length; |
|
darin (slow to review)
2012/04/02 16:35:43
this is a byte count?
Greg Billock
2012/04/02 17:49:44
Yes. Basically this and the above are WebBlob::cre
|
| + |
| // 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|. |
| + SERIALIZED = 0, // The payload is serialized in |data|. |
| + UNSERIALIZED = 1, // The payload is unserialized in |unserialized_data|. |
| + BLOB = 2 // The payload is a blob |
| }; |
| // Which data payload to use when delivering the intent. |
| DataType data_type; |
| @@ -40,6 +50,10 @@ struct WEBKIT_GLUE_EXPORT WebIntentData { |
| 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(); |
| }; |