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

Side by Side Diff: content/public/child/url_conversion.h

Issue 1568073002: Reduce string copies in GURL creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_CHILD_URL_CONVERSION_H_
6 #define CONTENT_PUBLIC_CHILD_URL_CONVERSION_H_
7
8 #include "content/common/content_export.h"
9
10 class GURL;
11
12 namespace blink {
13 class WebString;
14 }
15
16 namespace content {
17
18 // Gets the contents of a WebString and interprets it as a GURL. This is better
19 // than getting a string out of WebString and passing it to GURL's constructor
20 // because it handles the dual 8/16 bit nature of WebString without
21 // intermediate copies.
22 CONTENT_EXPORT GURL WebStringToGURL(const blink::WebString& web_string);
esprehn 2016/01/13 02:02:31 I sort of wonder if this shouldn't be in blink pla
23
24 } // namespace content
25
26 #endif // CONTENT_PUBLIC_CHILD_URL_CONVERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698