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

Unified Diff: webkit/glue/glue_util.cc

Issue 27222: Chrome side to implement WebMimeRegistry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
Index: webkit/glue/glue_util.cc
===================================================================
--- webkit/glue/glue_util.cc (revision 10468)
+++ webkit/glue/glue_util.cc (working copy)
@@ -16,8 +16,9 @@
#include "KURL.h"
MSVC_POP_WARNING();
+#include "WebString.h"
+
#undef LOG
-
#include "base/compiler_specific.h"
#include "base/gfx/rect.h"
#include "base/string_piece.h"
@@ -98,6 +99,22 @@
#endif
}
+FilePath::StringType WebStringToFilePathString(const WebKit::WebString& str) {
+#if defined(OS_POSIX)
+ return base::SysWideToNativeMB(UTF16ToWide(str));
+#elif defined(OS_WIN)
+ return UTF16ToWide(str);
+#endif
+}
+
+WebKit::WebString FilePathStringToWebString(const FilePath::StringType& str) {
+#if defined(OS_POSIX)
+ return WideToUTF16(base::SysNativeMBToWide(str));
+#elif defined(OS_WIN)
+ return WideToUTF16(str);
+#endif
+}
+
// URL conversions -------------------------------------------------------------
GURL KURLToGURL(const WebCore::KURL& url) {
« no previous file with comments | « webkit/glue/glue_util.h ('k') | webkit/glue/plugins/plugin_stream.cc » ('j') | webkit/webkit.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698