OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/Platform/chromium/public/WebString.h" | 7 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
8 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" |
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntent.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntent.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 const string16& unserialized_data_in) | 54 const string16& unserialized_data_in) |
55 : action(action_in), | 55 : action(action_in), |
56 type(type_in), | 56 type(type_in), |
57 unserialized_data(unserialized_data_in), | 57 unserialized_data(unserialized_data_in), |
58 blob_length(0), | 58 blob_length(0), |
59 data_type(UNSERIALIZED) { | 59 data_type(UNSERIALIZED) { |
60 } | 60 } |
61 | 61 |
62 WebIntentData::WebIntentData(const string16& action_in, | 62 WebIntentData::WebIntentData(const string16& action_in, |
63 const string16& type_in, | 63 const string16& type_in, |
64 const FilePath& blob_file_in, | 64 const base::FilePath& blob_file_in, |
65 int64 blob_length_in) | 65 int64 blob_length_in) |
66 : action(action_in), | 66 : action(action_in), |
67 type(type_in), | 67 type(type_in), |
68 blob_file(blob_file_in), | 68 blob_file(blob_file_in), |
69 blob_length(blob_length_in), | 69 blob_length(blob_length_in), |
70 data_type(BLOB) { | 70 data_type(BLOB) { |
71 } | 71 } |
72 | 72 |
73 WebIntentData::WebIntentData(const string16& action_in, | 73 WebIntentData::WebIntentData(const string16& action_in, |
74 const string16& type_in, | 74 const string16& type_in, |
(...skipping 22 matching lines...) Expand all Loading... |
97 filesystem_id(intent_data.filesystem_id), | 97 filesystem_id(intent_data.filesystem_id), |
98 data_type(intent_data.data_type) { | 98 data_type(intent_data.data_type) { |
99 for (size_t i = 0; i < intent_data.mime_data.GetSize(); ++i) { | 99 for (size_t i = 0; i < intent_data.mime_data.GetSize(); ++i) { |
100 const DictionaryValue* dict = NULL; | 100 const DictionaryValue* dict = NULL; |
101 if (!intent_data.mime_data.GetDictionary(i, &dict)) continue; | 101 if (!intent_data.mime_data.GetDictionary(i, &dict)) continue; |
102 mime_data.Append(dict->DeepCopy()); | 102 mime_data.Append(dict->DeepCopy()); |
103 } | 103 } |
104 } | 104 } |
105 | 105 |
106 } // namespace webkit_glue | 106 } // namespace webkit_glue |
OLD | NEW |