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

Unified Diff: webkit/glue/web_intent_data.cc

Issue 9651020: Pass content-type resources to web intents. Goes through download, then invokes the p… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove includes 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 | « webkit/glue/web_intent_data.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/web_intent_data.cc
diff --git a/webkit/glue/web_intent_data.cc b/webkit/glue/web_intent_data.cc
index 663b9be42fa70056fcf0bf5de3db04750883037d..af85b2f307e0364c557d8773eb54b8dc9f86ef99 100644
--- a/webkit/glue/web_intent_data.cc
+++ b/webkit/glue/web_intent_data.cc
@@ -9,7 +9,8 @@
namespace webkit_glue {
WebIntentData::WebIntentData()
- : data_type(SERIALIZED) {
+ : blob_length(0),
+ data_type(SERIALIZED) {
}
WebIntentData::~WebIntentData() {
@@ -19,6 +20,7 @@ WebIntentData::WebIntentData(const WebKit::WebIntent& intent)
: action(intent.action()),
type(intent.type()),
data(intent.data()),
+ blob_length(0),
data_type(SERIALIZED) {
}
@@ -28,7 +30,19 @@ WebIntentData::WebIntentData(const string16& action_in,
: action(action_in),
type(type_in),
unserialized_data(unserialized_data_in),
+ blob_length(0),
data_type(UNSERIALIZED) {
}
+WebIntentData::WebIntentData(const string16& action_in,
+ const string16& type_in,
+ const FilePath& blob_file_in,
+ int64 blob_length_in)
+ : action(action_in),
+ type(type_in),
+ blob_file(blob_file_in),
+ blob_length(blob_length_in),
+ data_type(BLOB) {
+}
+
} // namespace webkit_glue
« no previous file with comments | « webkit/glue/web_intent_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698