| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All r
ights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All r
ights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 KURL(const KURL& base, const String& relative, const WTF::TextEncoding&); | 73 KURL(const KURL& base, const String& relative, const WTF::TextEncoding&); |
| 74 | 74 |
| 75 // For conversions from other structures that have already parsed and | 75 // For conversions from other structures that have already parsed and |
| 76 // canonicalized the URL. The input must be exactly what KURL would have | 76 // canonicalized the URL. The input must be exactly what KURL would have |
| 77 // done with the same input. | 77 // done with the same input. |
| 78 KURL(const AtomicString& canonicalString, const url::Parsed&, bool isValid); | 78 KURL(const AtomicString& canonicalString, const url::Parsed&, bool isValid); |
| 79 | 79 |
| 80 ~KURL(); | 80 ~KURL(); |
| 81 | 81 |
| 82 String strippedForUseAsReferrer() const; | 82 String strippedForUseAsReferrer() const; |
| 83 String strippedForUseAsHref() const; |
| 83 | 84 |
| 84 // FIXME: The above functions should be harmonized so that passing a | 85 // FIXME: The above functions should be harmonized so that passing a |
| 85 // base of null or the empty string gives the same result as the | 86 // base of null or the empty string gives the same result as the |
| 86 // standard String constructor. | 87 // standard String constructor. |
| 87 | 88 |
| 88 // Makes a deep copy. Helpful only if you need to use a KURL on another | 89 // Makes a deep copy. Helpful only if you need to use a KURL on another |
| 89 // thread. Since the underlying StringImpl objects are immutable, there's | 90 // thread. Since the underlying StringImpl objects are immutable, there's |
| 90 // no other reason to ever prefer copy() over plain old assignment. | 91 // no other reason to ever prefer copy() over plain old assignment. |
| 91 KURL copy() const; | 92 KURL copy() const; |
| 92 | 93 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 namespace WTF { | 264 namespace WTF { |
| 264 | 265 |
| 265 // KURLHash is the default hash for String | 266 // KURLHash is the default hash for String |
| 266 template<> struct DefaultHash<blink::KURL> { | 267 template<> struct DefaultHash<blink::KURL> { |
| 267 typedef blink::KURLHash Hash; | 268 typedef blink::KURLHash Hash; |
| 268 }; | 269 }; |
| 269 | 270 |
| 270 } // namespace WTF | 271 } // namespace WTF |
| 271 | 272 |
| 272 #endif // KURL_h | 273 #endif // KURL_h |
| OLD | NEW |