blob: c3ae57de096269d54e143bd1ac5b37fd117f2d16 [file] [log] [blame]
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/utf_string_conversions.h"
#include "chrome/browser/intents/web_intent_data.h"
#include <ostream>
WebIntentData::WebIntentData() {}
WebIntentData::~WebIntentData() {}
bool WebIntentData::operator==(const WebIntentData& other) const {
return (service_url == other.service_url &&
action == other.action &&
type == other.type &&
title == other.title);
}
std::ostream& operator<<(::std::ostream& os,
const WebIntentData& intent) {
return os <<
"{" << intent.service_url <<
", " << UTF16ToUTF8(intent.action) <<
", " << UTF16ToUTF8(intent.type) <<
", " << UTF16ToUTF8(intent.title) <<
"}";
}