Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: chrome/browser/intents/web_intent_service_data.cc

Issue 7980063: Moved web_intent_service_data into webkit/glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/utf_string_conversions.h"
6 #include "chrome/browser/intents/web_intent_service_data.h"
7 #include <ostream>
8
9 WebIntentServiceData::WebIntentServiceData()
10 : disposition(WebIntentServiceData::DISPOSITION_WINDOW) {
11 }
12
13 WebIntentServiceData::~WebIntentServiceData() {}
14
15 bool WebIntentServiceData::operator==(const WebIntentServiceData& other) const {
16 return (service_url == other.service_url &&
17 action == other.action &&
18 type == other.type &&
19 title == other.title &&
20 disposition == other.disposition);
21 }
22
23 std::ostream& operator<<(::std::ostream& os,
24 const WebIntentServiceData& intent) {
25 return os <<
26 "{" << intent.service_url <<
27 ", " << UTF16ToUTF8(intent.action) <<
28 ", " << UTF16ToUTF8(intent.type) <<
29 ", " << UTF16ToUTF8(intent.title) <<
30 ", " << intent.disposition <<
31 "}";
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698