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 #ifndef WEBKIT_GLUE_WEB_INTENT_DATA_H_ | 5 #ifndef WEBKIT_GLUE_WEB_INTENT_DATA_H_ |
6 #define WEBKIT_GLUE_WEB_INTENT_DATA_H_ | 6 #define WEBKIT_GLUE_WEB_INTENT_DATA_H_ |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
| 9 #include "webkit/glue/webkit_glue_export.h" |
9 | 10 |
10 namespace webkit_glue { | 11 namespace webkit_glue { |
11 | 12 |
12 // Representation of the Web Intent data being initiated or delivered. | 13 // Representation of the Web Intent data being initiated or delivered. |
13 struct WebIntentData { | 14 struct WEBKIT_GLUE_EXPORT WebIntentData { |
14 // The action of the intent. | 15 // The action of the intent. |
15 string16 action; | 16 string16 action; |
16 // The MIME type of data in this intent payload. | 17 // The MIME type of data in this intent payload. |
17 string16 type; | 18 string16 type; |
18 // The representation of the payload data. Wire format is from | 19 // The representation of the payload data. Wire format is from |
19 // SerializedScriptObject. | 20 // SerializedScriptObject. |
20 string16 data; | 21 string16 data; |
21 | 22 |
22 WebIntentData(); | 23 WebIntentData(); |
23 WebIntentData(const WebIntentData& other); | 24 WebIntentData(const WebIntentData& other); |
24 ~WebIntentData(); | 25 ~WebIntentData(); |
25 }; | 26 }; |
26 | 27 |
27 } // namespace webkit_glue | 28 } // namespace webkit_glue |
28 | 29 |
29 #endif // WEBKIT_GLUE_WEB_INTENT_DATA_H_ | 30 #endif // WEBKIT_GLUE_WEB_INTENT_DATA_H_ |
OLD | NEW |