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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 public: | 48 public: |
49 KURL() | 49 KURL() |
50 : m_isValid(false) | 50 : m_isValid(false) |
51 , m_protocolIsInHTTPFamily(false) | 51 , m_protocolIsInHTTPFamily(false) |
52 { | 52 { |
53 } | 53 } |
54 | 54 |
55 KURL(const KURL&); | 55 KURL(const KURL&); |
56 KURL& operator=(const KURL&); | 56 KURL& operator=(const KURL&); |
57 | 57 |
| 58 #if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES) |
| 59 KURL(KURL&&); |
| 60 KURL& operator=(KURL&&); |
| 61 #endif |
| 62 |
58 // The argument is an absolute URL string. The string is assumed to be | 63 // 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 | 64 // 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, | 65 // from such. It is usually best to avoid repeatedly parsing a string, |
61 // unless memory saving outweigh the possible slow-downs. | 66 // unless memory saving outweigh the possible slow-downs. |
62 KURL(ParsedURLStringTag, const String&); | 67 KURL(ParsedURLStringTag, const String&); |
63 explicit KURL(WTF::HashTableDeletedValueType); | 68 explicit KURL(WTF::HashTableDeletedValueType); |
64 | 69 |
65 // Creates an isolated URL object suitable for sending to another thread. | 70 // Creates an isolated URL object suitable for sending to another thread. |
66 static KURL createIsolated(ParsedURLStringTag, const String&); | 71 static KURL createIsolated(ParsedURLStringTag, const String&); |
67 | 72 |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 | 276 |
272 // KURLHash is the default hash for String | 277 // KURLHash is the default hash for String |
273 template<typename T> struct DefaultHash; | 278 template<typename T> struct DefaultHash; |
274 template<> struct DefaultHash<WebCore::KURL> { | 279 template<> struct DefaultHash<WebCore::KURL> { |
275 typedef WebCore::KURLHash Hash; | 280 typedef WebCore::KURLHash Hash; |
276 }; | 281 }; |
277 | 282 |
278 } // namespace WTF | 283 } // namespace WTF |
279 | 284 |
280 #endif // KURL_h | 285 #endif // KURL_h |
OLD | NEW |