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

Unified Diff: webkit/base/file_path_string_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/file_path_string_conversions.h ('k') | webkit/base/origin_url_conversions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/base/file_path_string_conversions.cc
===================================================================
--- webkit/base/file_path_string_conversions.cc (revision 205297)
+++ webkit/base/file_path_string_conversions.cc (working copy)
@@ -1,39 +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 "webkit/base/file_path_string_conversions.h"
-
-#include "base/strings/sys_string_conversions.h"
-#include "base/strings/utf_string_conversions.h"
-#include "third_party/WebKit/public/platform/WebString.h"
-
-namespace webkit_base {
-
-base::FilePath::StringType WebStringToFilePathString(
- const WebKit::WebString& str) {
-#if defined(OS_POSIX)
- return base::SysWideToNativeMB(UTF16ToWideHack(str));
-#elif defined(OS_WIN)
- return UTF16ToWideHack(str);
-#endif
-}
-
-WebKit::WebString FilePathStringToWebString(
- const base::FilePath::StringType& str) {
-#if defined(OS_POSIX)
- return WideToUTF16Hack(base::SysNativeMBToWide(str));
-#elif defined(OS_WIN)
- return WideToUTF16Hack(str);
-#endif
-}
-
-base::FilePath WebStringToFilePath(const WebKit::WebString& str) {
- return base::FilePath(WebStringToFilePathString(str));
-}
-
-WebKit::WebString FilePathToWebString(const base::FilePath& file_path) {
- return FilePathStringToWebString(file_path.value());
-}
-
-} // namespace webkit_base
« no previous file with comments | « webkit/base/file_path_string_conversions.h ('k') | webkit/base/origin_url_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698