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

Unified Diff: webkit/glue/web_intent_service_data.cc

Issue 12340107: Remove some more web intents code I missed previously (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: cros Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/web_intent_service_data.h ('k') | webkit/glue/web_intent_service_data_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/web_intent_service_data.cc
diff --git a/webkit/glue/web_intent_service_data.cc b/webkit/glue/web_intent_service_data.cc
deleted file mode 100644
index 4b698635c786e58fef1584bac4e8712d2cf2272b..0000000000000000000000000000000000000000
--- a/webkit/glue/web_intent_service_data.cc
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) 2012 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 <ostream>
-
-#include "base/string_util.h"
-#include "base/utf_string_conversions.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebIntentServiceInfo.h"
-#include "webkit/glue/web_intent_service_data.h"
-
-namespace webkit_glue {
-
-static const char kIntentsInlineDisposition[] = "inline";
-static const char kIntentsWindowDisposition[] = "window";
-
-WebIntentServiceData::WebIntentServiceData()
- : disposition(WebIntentServiceData::DISPOSITION_WINDOW) {
-}
-
-WebIntentServiceData::WebIntentServiceData(const string16& svc_action,
- const string16& svc_type,
- const string16& svc_scheme,
- const GURL& svc_service_url,
- const string16& svc_title)
- : action(svc_action),
- type(svc_type),
- scheme(svc_scheme),
- service_url(svc_service_url),
- title(svc_title),
- disposition(WebIntentServiceData::DISPOSITION_WINDOW) {
-}
-
-WebIntentServiceData::WebIntentServiceData(
- const WebKit::WebIntentServiceInfo& info)
- : action(info.action()),
- type(info.type()),
- scheme(string16()),
- service_url(info.url()),
- title(info.title()),
- disposition(WebIntentServiceData::DISPOSITION_WINDOW) {
- setDisposition(info.disposition());
-}
-
-WebIntentServiceData::~WebIntentServiceData() {}
-
-bool WebIntentServiceData::operator==(const WebIntentServiceData& other) const {
- return action == other.action &&
- type == other.type &&
- scheme == other.scheme &&
- service_url == other.service_url &&
- title == other.title &&
- disposition == other.disposition;
-}
-
-void WebIntentServiceData::setDisposition(const string16& disp) {
- if (EqualsASCII(disp, kIntentsInlineDisposition))
- disposition = DISPOSITION_INLINE;
- else if (EqualsASCII(disp, kIntentsWindowDisposition))
- disposition = DISPOSITION_WINDOW;
- // NOTE: We intentionally do not support setting "native" disposition
- // via this method. This keeps non-native services from
- // claiming to be native...which is no supported...obviously.
-}
-
-std::ostream& operator<<(::std::ostream& os,
- const WebIntentServiceData& intent) {
- return os <<
- "{action=" << UTF16ToUTF8(intent.action) <<
- "type=, " << UTF16ToUTF8(intent.type) <<
- "scheme=, " << UTF16ToUTF8(intent.scheme) <<
- "service_url=, " << intent.service_url <<
- "title=, " << UTF16ToUTF8(intent.title) <<
- "disposition=, " << intent.disposition <<
- "}";
-}
-
-} // namespace webkit_glue
« no previous file with comments | « webkit/glue/web_intent_service_data.h ('k') | webkit/glue/web_intent_service_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698