| OLD | NEW |
| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 String pass() const; | 129 String pass() const; |
| 130 String path() const; | 130 String path() const; |
| 131 // This method handles "parameters" separated by a semicolon. | 131 // This method handles "parameters" separated by a semicolon. |
| 132 String lastPathComponent() const; | 132 String lastPathComponent() const; |
| 133 String query() const; | 133 String query() const; |
| 134 String fragmentIdentifier() const; | 134 String fragmentIdentifier() const; |
| 135 bool hasFragmentIdentifier() const; | 135 bool hasFragmentIdentifier() const; |
| 136 | 136 |
| 137 String baseAsString() const; | 137 String baseAsString() const; |
| 138 | 138 |
| 139 // Returns true if the current URL's protocol is the same as the null- | 139 // Returns true if the current URL's protocol is the same as the StringView |
| 140 // terminated ASCII argument. The argument must be lower-case. | 140 // argument. The argument must be lower-case. |
| 141 bool protocolIs(const char*) const; | 141 bool protocolIs(const StringView protocol) const; |
| 142 bool protocolIsData() const { return protocolIs("data"); } | 142 bool protocolIsData() const { return protocolIs("data"); } |
| 143 // This includes at least about:blank and about:srcdoc. | 143 // This includes at least about:blank and about:srcdoc. |
| 144 bool protocolIsAbout() const { return protocolIs("about"); } | 144 bool protocolIsAbout() const { return protocolIs("about"); } |
| 145 bool protocolIsInHTTPFamily() const; | 145 bool protocolIsInHTTPFamily() const; |
| 146 bool isLocalFile() const; | 146 bool isLocalFile() const; |
| 147 bool isAboutBlankURL() const; // Is exactly about:blank. | 147 bool isAboutBlankURL() const; // Is exactly about:blank. |
| 148 bool isAboutSrcdocURL() const; // Is exactly about:srcdoc. | 148 bool isAboutSrcdocURL() const; // Is exactly about:srcdoc. |
| 149 | 149 |
| 150 bool setProtocol(const String&); | 150 bool setProtocol(const String&); |
| 151 void setHost(const String&); | 151 void setHost(const String&); |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 290 |
| 291 // KURLHash is the default hash for String | 291 // KURLHash is the default hash for String |
| 292 template <> | 292 template <> |
| 293 struct DefaultHash<blink::KURL> { | 293 struct DefaultHash<blink::KURL> { |
| 294 typedef blink::KURLHash Hash; | 294 typedef blink::KURLHash Hash; |
| 295 }; | 295 }; |
| 296 | 296 |
| 297 } // namespace WTF | 297 } // namespace WTF |
| 298 | 298 |
| 299 #endif // KURL_h | 299 #endif // KURL_h |
| OLD | NEW |