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