| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 struct KURLHash; | 43 struct KURLHash; |
| 44 | 44 |
| 45 enum ParsedURLStringTag { ParsedURLString }; | 45 enum ParsedURLStringTag { ParsedURLString }; |
| 46 | 46 |
| 47 class PLATFORM_EXPORT KURL { | 47 class PLATFORM_EXPORT KURL { |
| 48 public: | 48 public: |
| 49 KURL(); | 49 KURL(); |
| 50 KURL(const KURL&); | 50 KURL(const KURL&); |
| 51 KURL& operator=(const KURL&); | 51 KURL& operator=(const KURL&); |
| 52 | 52 |
| 53 #if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES) | |
| 54 KURL(KURL&&); | 53 KURL(KURL&&); |
| 55 KURL& operator=(KURL&&); | 54 KURL& operator=(KURL&&); |
| 56 #endif | |
| 57 | 55 |
| 58 // The argument is an absolute URL string. The string is assumed to be | 56 // The argument is an absolute URL string. The string is assumed to be |
| 59 // output of KURL::string() called on a valid KURL object, or indiscernible | 57 // output of KURL::string() called on a valid KURL object, or indiscernible |
| 60 // from such. It is usually best to avoid repeatedly parsing a string, | 58 // from such. It is usually best to avoid repeatedly parsing a string, |
| 61 // unless memory saving outweigh the possible slow-downs. | 59 // unless memory saving outweigh the possible slow-downs. |
| 62 KURL(ParsedURLStringTag, const String&); | 60 KURL(ParsedURLStringTag, const String&); |
| 63 explicit KURL(WTF::HashTableDeletedValueType); | 61 explicit KURL(WTF::HashTableDeletedValueType); |
| 64 | 62 |
| 65 // Creates an isolated URL object suitable for sending to another thread. | 63 // Creates an isolated URL object suitable for sending to another thread. |
| 66 static KURL createIsolated(ParsedURLStringTag, const String&); | 64 static KURL createIsolated(ParsedURLStringTag, const String&); |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 namespace WTF { | 268 namespace WTF { |
| 271 | 269 |
| 272 // KURLHash is the default hash for String | 270 // KURLHash is the default hash for String |
| 273 template<> struct DefaultHash<blink::KURL> { | 271 template<> struct DefaultHash<blink::KURL> { |
| 274 typedef blink::KURLHash Hash; | 272 typedef blink::KURLHash Hash; |
| 275 }; | 273 }; |
| 276 | 274 |
| 277 } // namespace WTF | 275 } // namespace WTF |
| 278 | 276 |
| 279 #endif // KURL_h | 277 #endif // KURL_h |
| OLD | NEW |