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