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

Unified Diff: webkit/glue/web_intent_data.cc

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 | « 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 7b3406a3e329cfe7cee7614ac11d1d9f57a4cc73..31d709095c5ddfc39d89d301685501043079b464 100644
--- a/webkit/glue/web_intent_data.cc
+++ b/webkit/glue/web_intent_data.cc
@@ -8,7 +8,8 @@
namespace webkit_glue {
-WebIntentData::WebIntentData() {
+WebIntentData::WebIntentData()
+ : data_type(SERIALIZED) {
}
WebIntentData::~WebIntentData() {
@@ -17,7 +18,17 @@ WebIntentData::~WebIntentData() {
WebIntentData::WebIntentData(const WebKit::WebIntent& intent)
: action(intent.action()),
type(intent.type()),
- data(intent.data()) {
+ data(intent.data()),
+ data_type(SERIALIZED) {
+}
+
+WebIntentData::WebIntentData(const string16& action_in,
+ const string16& type_in,
+ const string16& unserialized_data_in)
+ : action(action_in),
+ type(type_in),
+ unserialized_data(unserialized_data_in),
+ data_type(UNSERIALIZED) {
}
} // 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