OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/glue/web_intent_data.h" | 5 #include "webkit/glue/web_intent_data.h" |
6 | 6 |
7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntent.h" | 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntent.h" |
8 | 8 |
9 namespace webkit_glue { | 9 namespace webkit_glue { |
10 | 10 |
11 WebIntentData::WebIntentData() { | 11 WebIntentData::WebIntentData() { |
12 } | 12 } |
13 | 13 |
14 WebIntentData::~WebIntentData() { | 14 WebIntentData::~WebIntentData() { |
15 } | 15 } |
16 | 16 |
17 WebIntentData::WebIntentData(const WebKit::WebIntent& intent) | 17 WebIntentData::WebIntentData(const WebKit::WebIntent& intent) |
18 : action(intent.action()), | 18 : action(intent.action()), |
19 type(intent.type()), | 19 type(intent.type()), |
20 data(intent.data()) { | 20 data(intent.data()), |
| 21 blob_length(0), |
| 22 data_type(SERIALIZED) { |
| 23 } |
| 24 |
| 25 WebIntentData::WebIntentData(const string16& action_in, |
| 26 const string16& type_in, |
| 27 const string16& unserialized_data_in) |
| 28 : action(action_in), |
| 29 type(type_in), |
| 30 unserialized_data(unserialized_data_in), |
| 31 blob_length(0), |
| 32 data_type(UNSERIALIZED) { |
| 33 } |
| 34 |
| 35 WebIntentData::WebIntentData(const string16& action_in, |
| 36 const string16& type_in, |
| 37 const std::string& blob_file_in, |
| 38 int64 blob_length_in) |
| 39 : action(action_in), |
| 40 type(type_in), |
| 41 blob_file(blob_file_in), |
| 42 blob_length(blob_length_in), |
| 43 data_type(BLOB) { |
21 } | 44 } |
22 | 45 |
23 } // namespace webkit_glue | 46 } // namespace webkit_glue |
OLD | NEW |