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

Side by Side Diff: webkit/glue/web_intent_service_data.cc

Issue 8417043: Add webkit_glue namespace. Improve some variable and test names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge error Created 9 years, 1 month 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
« no previous file with comments | « webkit/glue/web_intent_service_data.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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> 5 #include <ostream>
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "webkit/glue/web_intent_service_data.h" 8 #include "webkit/glue/web_intent_service_data.h"
9 9
10 namespace webkit_glue { 10 namespace webkit_glue {
11 11
12 static const char kIntentsInlineDisposition[] = "inline"; 12 static const char kIntentsInlineDisposition[] = "inline";
13 13
14 } // namespace webkit_glue
15
16 WebIntentServiceData::WebIntentServiceData() 14 WebIntentServiceData::WebIntentServiceData()
17 : disposition(WebIntentServiceData::DISPOSITION_WINDOW) { 15 : disposition(WebIntentServiceData::DISPOSITION_WINDOW) {
18 } 16 }
19 17
20 WebIntentServiceData::WebIntentServiceData(const GURL& svc_url, 18 WebIntentServiceData::WebIntentServiceData(const GURL& svc_url,
21 const string16& svc_action, 19 const string16& svc_action,
22 const string16& svc_type, 20 const string16& svc_type,
23 const string16& svc_title) 21 const string16& svc_title)
24 : service_url(svc_url), 22 : service_url(svc_url),
25 action(svc_action), 23 action(svc_action),
(...skipping 22 matching lines...) Expand all
48 std::ostream& operator<<(::std::ostream& os, 46 std::ostream& operator<<(::std::ostream& os,
49 const WebIntentServiceData& intent) { 47 const WebIntentServiceData& intent) {
50 return os << 48 return os <<
51 "{" << intent.service_url << 49 "{" << intent.service_url <<
52 ", " << UTF16ToUTF8(intent.action) << 50 ", " << UTF16ToUTF8(intent.action) <<
53 ", " << UTF16ToUTF8(intent.type) << 51 ", " << UTF16ToUTF8(intent.type) <<
54 ", " << UTF16ToUTF8(intent.title) << 52 ", " << UTF16ToUTF8(intent.title) <<
55 ", " << intent.disposition << 53 ", " << intent.disposition <<
56 "}"; 54 "}";
57 } 55 }
56
57 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/web_intent_service_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698