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

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

Issue 2428093002: [KURL] Avoid re-hashing input if is already canonicalized (Closed)
Patch Set: uh ignore PS 5 I have no idea how that got there :P Created 4 years, 2 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 String componentString(const url::Component&) const; 199 String componentString(const url::Component&) const;
200 String stringForInvalidComponent() const; 200 String stringForInvalidComponent() const;
201 201
202 template <typename CHAR> 202 template <typename CHAR>
203 void replaceComponents(const url::Replacements<CHAR>&); 203 void replaceComponents(const url::Replacements<CHAR>&);
204 204
205 template <typename CHAR> 205 template <typename CHAR>
206 void init(const KURL& base, 206 void init(const KURL& base,
207 const CHAR* relative, 207 const CHAR* relative,
208 int relativeLength, 208 int relativeLength,
209 const WTF::TextEncoding* queryEncoding); 209 const WTF::TextEncoding* queryEncoding,
210 url::RawCanonOutputT<char>*);
211
210 void initInnerURL(); 212 void initInnerURL();
211 void initProtocolIsInHTTPFamily(); 213 void initProtocolIsInHTTPFamily();
212 214
213 bool m_isValid; 215 bool m_isValid;
214 bool m_protocolIsInHTTPFamily; 216 bool m_protocolIsInHTTPFamily;
215 url::Parsed m_parsed; 217 url::Parsed m_parsed;
216 String m_string; 218 String m_string;
217 std::unique_ptr<KURL> m_innerURL; 219 std::unique_ptr<KURL> m_innerURL;
218 }; 220 };
219 221
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 288
287 // KURLHash is the default hash for String 289 // KURLHash is the default hash for String
288 template <> 290 template <>
289 struct DefaultHash<blink::KURL> { 291 struct DefaultHash<blink::KURL> {
290 typedef blink::KURLHash Hash; 292 typedef blink::KURLHash Hash;
291 }; 293 };
292 294
293 } // namespace WTF 295 } // namespace WTF
294 296
295 #endif // KURL_h 297 #endif // KURL_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698