| 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) {
|
|
|