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

Unified Diff: webkit/base/origin_url_conversions.cc

Issue 16189015: [OBSOLETE] Slogging webkit_base out of existence. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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/base/origin_url_conversions.h ('k') | webkit/base/webkit_base.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/base/origin_url_conversions.cc
===================================================================
--- webkit/base/origin_url_conversions.cc (revision 205297)
+++ webkit/base/origin_url_conversions.cc (working copy)
@@ -1,34 +0,0 @@
-// Copyright 2013 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 "webkit/base/origin_url_conversions.h"
-
-#include "base/strings/utf_string_conversions.h"
-#include "googleurl/src/gurl.h"
-#include "third_party/WebKit/public/platform/WebString.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
-
-namespace webkit_base {
-
-GURL GetOriginURLFromIdentifier(const base::string16& identifier) {
- WebKit::WebSecurityOrigin web_security_origin =
- WebKit::WebSecurityOrigin::createFromDatabaseIdentifier(identifier);
-
- // We need this work-around for file:/// URIs as
- // createFromDatabaseIdentifier returns null origin_url for them.
- if (web_security_origin.isUnique()) {
- if (identifier.find(UTF8ToUTF16("file__")) == 0)
- return GURL("file:///");
- return GURL();
- }
-
- return GURL(web_security_origin.toString());
-}
-
-base::string16 GetOriginIdentifierFromURL(const GURL& url) {
- return WebKit::WebSecurityOrigin::createFromString(
- UTF8ToUTF16(url.spec())).databaseIdentifier();
-}
-
-} // namespace webkit_base
« no previous file with comments | « webkit/base/origin_url_conversions.h ('k') | webkit/base/webkit_base.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698