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

Unified Diff: third_party/WebKit/Source/platform/weborigin/KURL.h

Issue 2463703002: Optimize KURL protocols (Closed)
Patch Set: 16 bit test Created 4 years, 1 month 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: third_party/WebKit/Source/platform/weborigin/KURL.h
diff --git a/third_party/WebKit/Source/platform/weborigin/KURL.h b/third_party/WebKit/Source/platform/weborigin/KURL.h
index b9d423291ad1a7238ce23ba51bade9d964c2101b..a263b6b59227ea44d114968795127252448c321e 100644
--- a/third_party/WebKit/Source/platform/weborigin/KURL.h
+++ b/third_party/WebKit/Source/platform/weborigin/KURL.h
@@ -208,10 +208,15 @@ class PLATFORM_EXPORT KURL {
int relativeLength,
const WTF::TextEncoding* queryEncoding);
void initInnerURL();
- void initProtocolIsInHTTPFamily();
+ void initProtocolMetadata();
bool m_isValid;
bool m_protocolIsInHTTPFamily;
+
+ // Keep an AtomicString for the protocol, to avoid copious copies for
+ // KURL::protocol.
+ String m_protocol;
esprehn 2016/11/04 23:48:32 This isn't atomic
+
url::Parsed m_parsed;
String m_string;
std::unique_ptr<KURL> m_innerURL;

Powered by Google App Engine
This is Rietveld 408576698