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. |
| 3 * All rights reserved. |
3 * | 4 * |
4 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
6 * are met: | 7 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 11 * notice, this list of conditions and the following disclaimer in the |
11 * documentation and/or other materials provided with the distribution. | 12 * documentation and/or other materials provided with the distribution. |
12 * | 13 * |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 PLATFORM_EXPORT bool operator!=(const KURL&, const String&); | 224 PLATFORM_EXPORT bool operator!=(const KURL&, const String&); |
224 PLATFORM_EXPORT bool operator!=(const String&, const KURL&); | 225 PLATFORM_EXPORT bool operator!=(const String&, const KURL&); |
225 | 226 |
226 PLATFORM_EXPORT bool equalIgnoringFragmentIdentifier(const KURL&, const KURL&); | 227 PLATFORM_EXPORT bool equalIgnoringFragmentIdentifier(const KURL&, const KURL&); |
227 | 228 |
228 PLATFORM_EXPORT const KURL& blankURL(); | 229 PLATFORM_EXPORT const KURL& blankURL(); |
229 PLATFORM_EXPORT const KURL& srcdocURL(); | 230 PLATFORM_EXPORT const KURL& srcdocURL(); |
230 | 231 |
231 // Functions to do URL operations on strings. | 232 // Functions to do URL operations on strings. |
232 // These are operations that aren't faster on a parsed URL. | 233 // These are operations that aren't faster on a parsed URL. |
233 // These are also different from the KURL functions in that they don't require t
he string to be a valid and parsable URL. | 234 // These are also different from the KURL functions in that they don't require |
234 // This is especially important because valid javascript URLs are not necessaril
y considered valid by KURL. | 235 // the string to be a valid and parsable URL. This is especially important |
| 236 // because valid javascript URLs are not necessarily considered valid by KURL. |
235 | 237 |
236 PLATFORM_EXPORT bool protocolIs(const String& url, const char* protocol); | 238 PLATFORM_EXPORT bool protocolIs(const String& url, const char* protocol); |
237 PLATFORM_EXPORT bool protocolIsJavaScript(const String& url); | 239 PLATFORM_EXPORT bool protocolIsJavaScript(const String& url); |
238 | 240 |
239 PLATFORM_EXPORT bool isValidProtocol(const String&); | 241 PLATFORM_EXPORT bool isValidProtocol(const String&); |
240 | 242 |
241 // Unescapes the given string using URL escaping rules, given an optional | 243 // Unescapes the given string using URL escaping rules, given an optional |
242 // encoding (defaulting to UTF-8 otherwise). | 244 // encoding (defaulting to UTF-8 otherwise). |
243 // | 245 // |
244 // DANGER: If the URL has "%00" in it, the resulting string will have embedded | 246 // DANGER: If the URL has "%00" in it, the resulting string will have embedded |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 286 |
285 // KURLHash is the default hash for String | 287 // KURLHash is the default hash for String |
286 template <> | 288 template <> |
287 struct DefaultHash<blink::KURL> { | 289 struct DefaultHash<blink::KURL> { |
288 typedef blink::KURLHash Hash; | 290 typedef blink::KURLHash Hash; |
289 }; | 291 }; |
290 | 292 |
291 } // namespace WTF | 293 } // namespace WTF |
292 | 294 |
293 #endif // KURL_h | 295 #endif // KURL_h |
OLD | NEW |