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 <ostream> | |
James Hawkins
2011/09/22 03:21:07
Blank line after this.
groby-ooo-7-16
2011/09/22 03:34:05
Done.
| |
5 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
6 #include "chrome/browser/intents/web_intent_service_data.h" | 7 #include "webkit/glue/web_intent_service_data.h" |
7 #include <ostream> | |
8 | 8 |
9 WebIntentServiceData::WebIntentServiceData() | 9 WebIntentServiceData::WebIntentServiceData() |
10 : disposition(WebIntentServiceData::DISPOSITION_WINDOW) { | 10 : disposition(WebIntentServiceData::DISPOSITION_WINDOW) { |
11 } | 11 } |
12 | 12 |
13 WebIntentServiceData::~WebIntentServiceData() {} | 13 WebIntentServiceData::~WebIntentServiceData() {} |
14 | 14 |
15 bool WebIntentServiceData::operator==(const WebIntentServiceData& other) const { | 15 bool WebIntentServiceData::operator==(const WebIntentServiceData& other) const { |
16 return (service_url == other.service_url && | 16 return (service_url == other.service_url && |
17 action == other.action && | 17 action == other.action && |
18 type == other.type && | 18 type == other.type && |
19 title == other.title && | 19 title == other.title && |
20 disposition == other.disposition); | 20 disposition == other.disposition); |
21 } | 21 } |
22 | 22 |
23 std::ostream& operator<<(::std::ostream& os, | 23 std::ostream& operator<<(::std::ostream& os, |
24 const WebIntentServiceData& intent) { | 24 const WebIntentServiceData& intent) { |
25 return os << | 25 return os << |
26 "{" << intent.service_url << | 26 "{" << intent.service_url << |
27 ", " << UTF16ToUTF8(intent.action) << | 27 ", " << UTF16ToUTF8(intent.action) << |
28 ", " << UTF16ToUTF8(intent.type) << | 28 ", " << UTF16ToUTF8(intent.type) << |
29 ", " << UTF16ToUTF8(intent.title) << | 29 ", " << UTF16ToUTF8(intent.title) << |
30 ", " << intent.disposition << | 30 ", " << intent.disposition << |
31 "}"; | 31 "}"; |
32 } | 32 } |
OLD | NEW |