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

Side by Side Diff: third_party/WebKit/Source/platform/weborigin/KURL.h

Issue 2643613002: Reduce the perf overhead of our dangling markup experiments. (Closed)
Patch Set: Rebase. Created 3 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
1 /* 1 /*
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 operator const String&() const { return getString(); } 185 operator const String&() const { return getString(); }
186 operator StringView() const { return StringView(getString()); } 186 operator StringView() const { return StringView(getString()); }
187 187
188 const url::Parsed& parsed() const { return m_parsed; } 188 const url::Parsed& parsed() const { return m_parsed; }
189 189
190 const KURL* innerURL() const { return m_innerURL.get(); } 190 const KURL* innerURL() const { return m_innerURL.get(); }
191 191
192 bool isSafeToSendToAnotherThread() const; 192 bool isSafeToSendToAnotherThread() const;
193 193
194 bool whitespaceRemoved() const { return m_parsed.whitespace_removed; }
jochen (gone - plz use gerrit) 2017/01/19 12:35:34 maybe add a unit test?
195
194 private: 196 private:
195 void init(const KURL& base, 197 void init(const KURL& base,
196 const String& relative, 198 const String& relative,
197 const WTF::TextEncoding* queryEncoding); 199 const WTF::TextEncoding* queryEncoding);
198 200
199 StringView componentStringView(const url::Component&) const; 201 StringView componentStringView(const url::Component&) const;
200 String componentString(const url::Component&) const; 202 String componentString(const url::Component&) const;
201 StringView stringViewForInvalidComponent() const; 203 StringView stringViewForInvalidComponent() const;
202 204
203 template <typename CHAR> 205 template <typename CHAR>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 290
289 // KURLHash is the default hash for String 291 // KURLHash is the default hash for String
290 template <> 292 template <>
291 struct DefaultHash<blink::KURL> { 293 struct DefaultHash<blink::KURL> {
292 typedef blink::KURLHash Hash; 294 typedef blink::KURLHash Hash;
293 }; 295 };
294 296
295 } // namespace WTF 297 } // namespace WTF
296 298
297 #endif // KURL_h 299 #endif // KURL_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698