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