| 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_reply_data.h" | 5 #include "webkit/glue/web_intent_reply_data.h" |
| 6 | 6 |
| 7 namespace webkit_glue { | 7 namespace webkit_glue { |
| 8 namespace { | 8 namespace { |
| 9 | 9 |
| 10 const int64 kUnknownFileSize = -1; | 10 const int64 kUnknownFileSize = -1; |
| 11 | 11 |
| 12 } | 12 } |
| 13 | 13 |
| 14 WebIntentReply::WebIntentReply() | 14 WebIntentReply::WebIntentReply() |
| 15 : type(WEB_INTENT_REPLY_INVALID), data_file_size(kUnknownFileSize) {} | 15 : type(WEB_INTENT_REPLY_INVALID), data_file_size(kUnknownFileSize) {} |
| 16 | 16 |
| 17 WebIntentReply::WebIntentReply( | 17 WebIntentReply::WebIntentReply( |
| 18 WebIntentReplyType response_type, string16 response_data) | 18 WebIntentReplyType response_type, string16 response_data) |
| 19 : type(response_type), | 19 : type(response_type), |
| 20 data(response_data), | 20 data(response_data), |
| 21 data_file_size(kUnknownFileSize) {} | 21 data_file_size(kUnknownFileSize) {} |
| 22 | 22 |
| 23 WebIntentReply::WebIntentReply( | 23 WebIntentReply::WebIntentReply( |
| 24 WebIntentReplyType response_type, | 24 WebIntentReplyType response_type, |
| 25 FilePath response_data_file, | 25 base::FilePath response_data_file, |
| 26 int64 response_data_file_length) | 26 int64 response_data_file_length) |
| 27 : type(response_type), | 27 : type(response_type), |
| 28 data_file(response_data_file), | 28 data_file(response_data_file), |
| 29 data_file_size(response_data_file_length) {} | 29 data_file_size(response_data_file_length) {} |
| 30 | 30 |
| 31 bool WebIntentReply::operator==(const WebIntentReply& other) const { | 31 bool WebIntentReply::operator==(const WebIntentReply& other) const { |
| 32 return type == other.type && | 32 return type == other.type && |
| 33 data == other.data && | 33 data == other.data && |
| 34 data_file == other.data_file && | 34 data_file == other.data_file && |
| 35 data_file_size == other.data_file_size; | 35 data_file_size == other.data_file_size; |
| 36 } | 36 } |
| 37 | 37 |
| 38 } // namespace webkit_glue | 38 } // namespace webkit_glue |
| OLD | NEW |