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

Unified Diff: public/platform/WebString.h

Issue 20135002: Optimize WebURL -> GURL conversions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove operator< Created 7 years, 5 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 | « Source/weborigin/KURL.cpp ('k') | public/platform/WebURL.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebString.h
diff --git a/public/platform/WebString.h b/public/platform/WebString.h
index 7d607d77d708a5b0b1147aa02de8af091bc38826..61f3631864ce4c8204cc7a2fd2c46da6c973e538 100644
--- a/public/platform/WebString.h
+++ b/public/platform/WebString.h
@@ -33,6 +33,7 @@
#include "WebCommon.h"
#include "WebPrivatePtr.h"
+#include <string>
#if INSIDE_WEBKIT
#include <wtf/Forward.h>
@@ -89,6 +90,7 @@ public:
bool isNull() const { return m_private.isNull(); }
BLINK_COMMON_EXPORT WebCString utf8() const;
+ BLINK_COMMON_EXPORT std::string toUTF8String() const;
darin (slow to review) 2013/07/24 23:16:51 This is sort of a new thing for us. There's a lot
abarth-chromium 2013/07/24 23:22:43 Yes. I suspect most (all?) the callers of WebStri
BLINK_COMMON_EXPORT static WebString fromUTF8(const char* data, size_t length);
BLINK_COMMON_EXPORT static WebString fromUTF8(const char* data);
« no previous file with comments | « Source/weborigin/KURL.cpp ('k') | public/platform/WebURL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698