| 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 #ifndef WEBKIT_GLUE_WEB_INTENT_REPLY_DATA_H_ | 5 #ifndef WEBKIT_GLUE_WEB_INTENT_REPLY_DATA_H_ |
| 6 #define WEBKIT_GLUE_WEB_INTENT_REPLY_DATA_H_ | 6 #define WEBKIT_GLUE_WEB_INTENT_REPLY_DATA_H_ |
| 7 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "webkit/glue/webkit_glue_export.h" | 10 #include "webkit/glue/webkit_glue_export.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 // Sent if the service contents is closed without any response being sent. | 29 // Sent if the service contents is closed without any response being sent. |
| 30 WEB_INTENT_SERVICE_CONTENTS_CLOSED, | 30 WEB_INTENT_SERVICE_CONTENTS_CLOSED, |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 struct WEBKIT_GLUE_EXPORT WebIntentReply { | 33 struct WEBKIT_GLUE_EXPORT WebIntentReply { |
| 34 WebIntentReply(); | 34 WebIntentReply(); |
| 35 WebIntentReply(WebIntentReplyType type, string16 data); | 35 WebIntentReply(WebIntentReplyType type, string16 data); |
| 36 WebIntentReply( | 36 WebIntentReply( |
| 37 WebIntentReplyType type, | 37 WebIntentReplyType type, |
| 38 FilePath data_file, | 38 base::FilePath data_file, |
| 39 int64 data_file_size); | 39 int64 data_file_size); |
| 40 | 40 |
| 41 bool operator==(const WebIntentReply& other) const; | 41 bool operator==(const WebIntentReply& other) const; |
| 42 | 42 |
| 43 // Response type. Default value is WEB_INTENT_REPLY_INVALID. | 43 // Response type. Default value is WEB_INTENT_REPLY_INVALID. |
| 44 WebIntentReplyType type; | 44 WebIntentReplyType type; |
| 45 | 45 |
| 46 // Serialized data. Default value is empty. | 46 // Serialized data. Default value is empty. |
| 47 string16 data; | 47 string16 data; |
| 48 | 48 |
| 49 // FilePath to the data to be delivered. Default value is empty. | 49 // FilePath to the data to be delivered. Default value is empty. |
| 50 FilePath data_file; | 50 base::FilePath data_file; |
| 51 | 51 |
| 52 // Length of data_path. | 52 // Length of data_path. |
| 53 int64 data_file_size; | 53 int64 data_file_size; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace webkit_glue | 56 } // namespace webkit_glue |
| 57 | 57 |
| 58 #endif // WEBKIT_GLUE_WEB_INTENT_REPLY_DATA_H_ | 58 #endif // WEBKIT_GLUE_WEB_INTENT_REPLY_DATA_H_ |
| OLD | NEW |