• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Copyright 2007, Google Inc.
2All rights reserved.
3
4Redistribution and use in source and binary forms, with or without
5modification, are permitted provided that the following conditions are
6met:
7
8    * Redistributions of source code must retain the above copyright
9notice, this list of conditions and the following disclaimer.
10    * Redistributions in binary form must reproduce the above
11copyright notice, this list of conditions and the following disclaimer
12in the documentation and/or other materials provided with the
13distribution.
14    * Neither the name of Google Inc. nor the names of its
15contributors may be used to endorse or promote products derived from
16this software without specific prior written permission.
17
18THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30-------------------------------------------------------------------------------
31
32The file url_parse.cc is based on nsURLParsers.cc from Mozilla. This file is
33licensed separately as follows:
34
35The contents of this file are subject to the Mozilla Public License Version
361.1 (the "License"); you may not use this file except in compliance with
37the License. You may obtain a copy of the License at
38http://www.mozilla.org/MPL/
39
40Software distributed under the License is distributed on an "AS IS" basis,
41WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
42for the specific language governing rights and limitations under the
43License.
44
45The Original Code is mozilla.org code.
46
47The Initial Developer of the Original Code is
48Netscape Communications Corporation.
49Portions created by the Initial Developer are Copyright (C) 1998
50the Initial Developer. All Rights Reserved.
51
52Contributor(s):
53  Darin Fisher (original author)
54
55Alternatively, the contents of this file may be used under the terms of
56either the GNU General Public License Version 2 or later (the "GPL"), or
57the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
58in which case the provisions of the GPL or the LGPL are applicable instead
59of those above. If you wish to allow use of your version of this file only
60under the terms of either the GPL or the LGPL, and not to allow others to
61use your version of this file under the terms of the MPL, indicate your
62decision by deleting the provisions above and replace them with the notice
63and other provisions required by the GPL or the LGPL. If you do not delete
64the provisions above, a recipient may use your version of this file under
65the terms of any one of the MPL, the GPL or the LGPL.
66