| 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 #include "base/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
| 6 #include "chrome/browser/intents/web_intent_data.h" | 6 #include "chrome/browser/intents/web_intent_data.h" |
| 7 #include <iostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 WebIntentData::WebIntentData() {} | 9 WebIntentData::WebIntentData() {} |
| 10 | 10 |
| 11 WebIntentData::~WebIntentData() {} | 11 WebIntentData::~WebIntentData() {} |
| 12 | 12 |
| 13 bool WebIntentData::operator==(const WebIntentData& other) const { | 13 bool WebIntentData::operator==(const WebIntentData& other) const { |
| 14 return (service_url == other.service_url && | 14 return (service_url == other.service_url && |
| 15 action == other.action && | 15 action == other.action && |
| 16 type == other.type && | 16 type == other.type && |
| 17 title == other.title); | 17 title == other.title); |
| 18 } | 18 } |
| 19 | 19 |
| 20 std::ostream& operator<<(::std::ostream& os, | 20 std::ostream& operator<<(::std::ostream& os, |
| 21 const WebIntentData& intent) { | 21 const WebIntentData& intent) { |
| 22 return os << | 22 return os << |
| 23 "{" << intent.service_url << | 23 "{" << intent.service_url << |
| 24 ", " << UTF16ToUTF8(intent.action) << | 24 ", " << UTF16ToUTF8(intent.action) << |
| 25 ", " << UTF16ToUTF8(intent.type) << | 25 ", " << UTF16ToUTF8(intent.type) << |
| 26 ", " << UTF16ToUTF8(intent.title) << | 26 ", " << UTF16ToUTF8(intent.title) << |
| 27 "}"; | 27 "}"; |
| 28 } | 28 } |
| OLD | NEW |