summaryrefslogtreecommitdiffstats
path: root/webkit/glue/glue_util.h
blob: c8303eb76955bbd563717ad2a042cd2180dca4e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2006-2008 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.

#ifndef WEBKIT_GLUE_GLUE_UTIL_H_
#define WEBKIT_GLUE_GLUE_UTIL_H_

#include <string>

#include "base/string16.h"
#include "googleurl/src/gurl.h"

namespace WebCore {
  class CString;
  class KURL;
  class String;
}

namespace webkit_glue {

std::string CStringToStdString(const WebCore::CString& str);
WebCore::CString StdStringToCString(const std::string& str);
std::wstring StringToStdWString(const WebCore::String& str);
string16 StringToString16(const WebCore::String& str);
std::string StringToStdString(const WebCore::String& str);

WebCore::String StdWStringToString(const std::wstring& str);
WebCore::String StdStringToString(const std::string& str);

GURL KURLToGURL(const WebCore::KURL& url);
WebCore::KURL GURLToKURL(const GURL& url);

}  // namespace webkit_glue

#endif  // #ifndef WEBKIT_GLUE_GLUE_UTIL_H_