| OLD | NEW |
| 1 // Copyright 2007, Google Inc. | 1 // Copyright 2007, Google Inc. |
| 2 // All rights reserved. | 2 // All rights 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 are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // * Redistributions of source code must retain the above copyright | 8 // * 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 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 | 29 |
| 30 // Contains common inline helper functions used by the URL parsing routines. | 30 // Contains common inline helper functions used by the URL parsing routines. |
| 31 | 31 |
| 32 #ifndef GOOGLEURL_SRC_URL_PARSE_INTERNAL_H__ | 32 #ifndef URL_URL_PARSE_INTERNAL_H_ |
| 33 #define GOOGLEURL_SRC_URL_PARSE_INTERNAL_H__ | 33 #define URL_URL_PARSE_INTERNAL_H_ |
| 34 | 34 |
| 35 #include "googleurl/src/url_parse.h" | 35 #include "url/url_parse.h" |
| 36 | 36 |
| 37 namespace url_parse { | 37 namespace url_parse { |
| 38 | 38 |
| 39 // We treat slashes and backslashes the same for IE compatability. | 39 // We treat slashes and backslashes the same for IE compatability. |
| 40 inline bool IsURLSlash(char16 ch) { | 40 inline bool IsURLSlash(char16 ch) { |
| 41 return ch == '/' || ch == '\\'; | 41 return ch == '/' || ch == '\\'; |
| 42 } | 42 } |
| 43 | 43 |
| 44 // Returns true if we should trim this character from the URL because it is a | 44 // Returns true if we should trim this character from the URL because it is a |
| 45 // space or a control character. | 45 // space or a control character. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 int spec_len, | 102 int spec_len, |
| 103 int after_scheme, | 103 int after_scheme, |
| 104 Parsed* parsed); | 104 Parsed* parsed); |
| 105 void ParseAfterScheme(const char16* spec, | 105 void ParseAfterScheme(const char16* spec, |
| 106 int spec_len, | 106 int spec_len, |
| 107 int after_scheme, | 107 int after_scheme, |
| 108 Parsed* parsed); | 108 Parsed* parsed); |
| 109 | 109 |
| 110 } // namespace url_parse | 110 } // namespace url_parse |
| 111 | 111 |
| 112 #endif // GOOGLEURL_SRC_URL_PARSE_INTERNAL_H__ | 112 #endif // URL_URL_PARSE_INTERNAL_H_ |
| OLD | NEW |