1*1fa4b3daSHector Dearman// Copyright (c) 2012 The Chromium Authors. All rights reserved. 2*1fa4b3daSHector Dearman// 3*1fa4b3daSHector Dearman// Redistribution and use in source and binary forms, with or without 4*1fa4b3daSHector Dearman// modification, are permitted provided that the following conditions are 5*1fa4b3daSHector Dearman// met: 6*1fa4b3daSHector Dearman// 7*1fa4b3daSHector Dearman// * Redistributions of source code must retain the above copyright 8*1fa4b3daSHector Dearman// notice, this list of conditions and the following disclaimer. 9*1fa4b3daSHector Dearman// * Redistributions in binary form must reproduce the above 10*1fa4b3daSHector Dearman// copyright notice, this list of conditions and the following disclaimer 11*1fa4b3daSHector Dearman// in the documentation and/or other materials provided with the 12*1fa4b3daSHector Dearman// distribution. 13*1fa4b3daSHector Dearman// * Neither the name of Google Inc. nor the names of its 14*1fa4b3daSHector Dearman// contributors may be used to endorse or promote products derived from 15*1fa4b3daSHector Dearman// this software without specific prior written permission. 16*1fa4b3daSHector Dearman// 17*1fa4b3daSHector Dearman// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18*1fa4b3daSHector Dearman// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19*1fa4b3daSHector Dearman// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20*1fa4b3daSHector Dearman// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21*1fa4b3daSHector Dearman// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22*1fa4b3daSHector Dearman// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23*1fa4b3daSHector Dearman// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24*1fa4b3daSHector Dearman// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25*1fa4b3daSHector Dearman// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26*1fa4b3daSHector Dearman// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27*1fa4b3daSHector Dearman// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28*1fa4b3daSHector Dearman 29*1fa4b3daSHector Dearman 30*1fa4b3daSHector Dearman Apache License 31*1fa4b3daSHector Dearman Version 2.0, January 2004 32*1fa4b3daSHector Dearman http://www.apache.org/licenses/ 33*1fa4b3daSHector Dearman 34*1fa4b3daSHector Dearman TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 35*1fa4b3daSHector Dearman 36*1fa4b3daSHector Dearman 1. Definitions. 37*1fa4b3daSHector Dearman 38*1fa4b3daSHector Dearman "License" shall mean the terms and conditions for use, reproduction, 39*1fa4b3daSHector Dearman and distribution as defined by Sections 1 through 9 of this document. 40*1fa4b3daSHector Dearman 41*1fa4b3daSHector Dearman "Licensor" shall mean the copyright owner or entity authorized by 42*1fa4b3daSHector Dearman the copyright owner that is granting the License. 43*1fa4b3daSHector Dearman 44*1fa4b3daSHector Dearman "Legal Entity" shall mean the union of the acting entity and all 45*1fa4b3daSHector Dearman other entities that control, are controlled by, or are under common 46*1fa4b3daSHector Dearman control with that entity. For the purposes of this definition, 47*1fa4b3daSHector Dearman "control" means (i) the power, direct or indirect, to cause the 48*1fa4b3daSHector Dearman direction or management of such entity, whether by contract or 49*1fa4b3daSHector Dearman otherwise, or (ii) ownership of fifty percent (50%) or more of the 50*1fa4b3daSHector Dearman outstanding shares, or (iii) beneficial ownership of such entity. 51*1fa4b3daSHector Dearman 52*1fa4b3daSHector Dearman "You" (or "Your") shall mean an individual or Legal Entity 53*1fa4b3daSHector Dearman exercising permissions granted by this License. 54*1fa4b3daSHector Dearman 55*1fa4b3daSHector Dearman "Source" form shall mean the preferred form for making modifications, 56*1fa4b3daSHector Dearman including but not limited to software source code, documentation 57*1fa4b3daSHector Dearman source, and configuration files. 58*1fa4b3daSHector Dearman 59*1fa4b3daSHector Dearman "Object" form shall mean any form resulting from mechanical 60*1fa4b3daSHector Dearman transformation or translation of a Source form, including but 61*1fa4b3daSHector Dearman not limited to compiled object code, generated documentation, 62*1fa4b3daSHector Dearman and conversions to other media types. 63*1fa4b3daSHector Dearman 64*1fa4b3daSHector Dearman "Work" shall mean the work of authorship, whether in Source or 65*1fa4b3daSHector Dearman Object form, made available under the License, as indicated by a 66*1fa4b3daSHector Dearman copyright notice that is included in or attached to the work 67*1fa4b3daSHector Dearman (an example is provided in the Appendix below). 68*1fa4b3daSHector Dearman 69*1fa4b3daSHector Dearman "Derivative Works" shall mean any work, whether in Source or Object 70*1fa4b3daSHector Dearman form, that is based on (or derived from) the Work and for which the 71*1fa4b3daSHector Dearman editorial revisions, annotations, elaborations, or other modifications 72*1fa4b3daSHector Dearman represent, as a whole, an original work of authorship. For the purposes 73*1fa4b3daSHector Dearman of this License, Derivative Works shall not include works that remain 74*1fa4b3daSHector Dearman separable from, or merely link (or bind by name) to the interfaces of, 75*1fa4b3daSHector Dearman the Work and Derivative Works thereof. 76*1fa4b3daSHector Dearman 77*1fa4b3daSHector Dearman "Contribution" shall mean any work of authorship, including 78*1fa4b3daSHector Dearman the original version of the Work and any modifications or additions 79*1fa4b3daSHector Dearman to that Work or Derivative Works thereof, that is intentionally 80*1fa4b3daSHector Dearman submitted to Licensor for inclusion in the Work by the copyright owner 81*1fa4b3daSHector Dearman or by an individual or Legal Entity authorized to submit on behalf of 82*1fa4b3daSHector Dearman the copyright owner. For the purposes of this definition, "submitted" 83*1fa4b3daSHector Dearman means any form of electronic, verbal, or written communication sent 84*1fa4b3daSHector Dearman to the Licensor or its representatives, including but not limited to 85*1fa4b3daSHector Dearman communication on electronic mailing lists, source code control systems, 86*1fa4b3daSHector Dearman and issue tracking systems that are managed by, or on behalf of, the 87*1fa4b3daSHector Dearman Licensor for the purpose of discussing and improving the Work, but 88*1fa4b3daSHector Dearman excluding communication that is conspicuously marked or otherwise 89*1fa4b3daSHector Dearman designated in writing by the copyright owner as "Not a Contribution." 90*1fa4b3daSHector Dearman 91*1fa4b3daSHector Dearman "Contributor" shall mean Licensor and any individual or Legal Entity 92*1fa4b3daSHector Dearman on behalf of whom a Contribution has been received by Licensor and 93*1fa4b3daSHector Dearman subsequently incorporated within the Work. 94*1fa4b3daSHector Dearman 95*1fa4b3daSHector Dearman 2. Grant of Copyright License. Subject to the terms and conditions of 96*1fa4b3daSHector Dearman this License, each Contributor hereby grants to You a perpetual, 97*1fa4b3daSHector Dearman worldwide, non-exclusive, no-charge, royalty-free, irrevocable 98*1fa4b3daSHector Dearman copyright license to reproduce, prepare Derivative Works of, 99*1fa4b3daSHector Dearman publicly display, publicly perform, sublicense, and distribute the 100*1fa4b3daSHector Dearman Work and such Derivative Works in Source or Object form. 101*1fa4b3daSHector Dearman 102*1fa4b3daSHector Dearman 3. Grant of Patent License. Subject to the terms and conditions of 103*1fa4b3daSHector Dearman this License, each Contributor hereby grants to You a perpetual, 104*1fa4b3daSHector Dearman worldwide, non-exclusive, no-charge, royalty-free, irrevocable 105*1fa4b3daSHector Dearman (except as stated in this section) patent license to make, have made, 106*1fa4b3daSHector Dearman use, offer to sell, sell, import, and otherwise transfer the Work, 107*1fa4b3daSHector Dearman where such license applies only to those patent claims licensable 108*1fa4b3daSHector Dearman by such Contributor that are necessarily infringed by their 109*1fa4b3daSHector Dearman Contribution(s) alone or by combination of their Contribution(s) 110*1fa4b3daSHector Dearman with the Work to which such Contribution(s) was submitted. If You 111*1fa4b3daSHector Dearman institute patent litigation against any entity (including a 112*1fa4b3daSHector Dearman cross-claim or counterclaim in a lawsuit) alleging that the Work 113*1fa4b3daSHector Dearman or a Contribution incorporated within the Work constitutes direct 114*1fa4b3daSHector Dearman or contributory patent infringement, then any patent licenses 115*1fa4b3daSHector Dearman granted to You under this License for that Work shall terminate 116*1fa4b3daSHector Dearman as of the date such litigation is filed. 117*1fa4b3daSHector Dearman 118*1fa4b3daSHector Dearman 4. Redistribution. You may reproduce and distribute copies of the 119*1fa4b3daSHector Dearman Work or Derivative Works thereof in any medium, with or without 120*1fa4b3daSHector Dearman modifications, and in Source or Object form, provided that You 121*1fa4b3daSHector Dearman meet the following conditions: 122*1fa4b3daSHector Dearman 123*1fa4b3daSHector Dearman (a) You must give any other recipients of the Work or 124*1fa4b3daSHector Dearman Derivative Works a copy of this License; and 125*1fa4b3daSHector Dearman 126*1fa4b3daSHector Dearman (b) You must cause any modified files to carry prominent notices 127*1fa4b3daSHector Dearman stating that You changed the files; and 128*1fa4b3daSHector Dearman 129*1fa4b3daSHector Dearman (c) You must retain, in the Source form of any Derivative Works 130*1fa4b3daSHector Dearman that You distribute, all copyright, patent, trademark, and 131*1fa4b3daSHector Dearman attribution notices from the Source form of the Work, 132*1fa4b3daSHector Dearman excluding those notices that do not pertain to any part of 133*1fa4b3daSHector Dearman the Derivative Works; and 134*1fa4b3daSHector Dearman 135*1fa4b3daSHector Dearman (d) If the Work includes a "NOTICE" text file as part of its 136*1fa4b3daSHector Dearman distribution, then any Derivative Works that You distribute must 137*1fa4b3daSHector Dearman include a readable copy of the attribution notices contained 138*1fa4b3daSHector Dearman within such NOTICE file, excluding those notices that do not 139*1fa4b3daSHector Dearman pertain to any part of the Derivative Works, in at least one 140*1fa4b3daSHector Dearman of the following places: within a NOTICE text file distributed 141*1fa4b3daSHector Dearman as part of the Derivative Works; within the Source form or 142*1fa4b3daSHector Dearman documentation, if provided along with the Derivative Works; or, 143*1fa4b3daSHector Dearman within a display generated by the Derivative Works, if and 144*1fa4b3daSHector Dearman wherever such third-party notices normally appear. The contents 145*1fa4b3daSHector Dearman of the NOTICE file are for informational purposes only and 146*1fa4b3daSHector Dearman do not modify the License. You may add Your own attribution 147*1fa4b3daSHector Dearman notices within Derivative Works that You distribute, alongside 148*1fa4b3daSHector Dearman or as an addendum to the NOTICE text from the Work, provided 149*1fa4b3daSHector Dearman that such additional attribution notices cannot be construed 150*1fa4b3daSHector Dearman as modifying the License. 151*1fa4b3daSHector Dearman 152*1fa4b3daSHector Dearman You may add Your own copyright statement to Your modifications and 153*1fa4b3daSHector Dearman may provide additional or different license terms and conditions 154*1fa4b3daSHector Dearman for use, reproduction, or distribution of Your modifications, or 155*1fa4b3daSHector Dearman for any such Derivative Works as a whole, provided Your use, 156*1fa4b3daSHector Dearman reproduction, and distribution of the Work otherwise complies with 157*1fa4b3daSHector Dearman the conditions stated in this License. 158*1fa4b3daSHector Dearman 159*1fa4b3daSHector Dearman 5. Submission of Contributions. Unless You explicitly state otherwise, 160*1fa4b3daSHector Dearman any Contribution intentionally submitted for inclusion in the Work 161*1fa4b3daSHector Dearman by You to the Licensor shall be under the terms and conditions of 162*1fa4b3daSHector Dearman this License, without any additional terms or conditions. 163*1fa4b3daSHector Dearman Notwithstanding the above, nothing herein shall supersede or modify 164*1fa4b3daSHector Dearman the terms of any separate license agreement you may have executed 165*1fa4b3daSHector Dearman with Licensor regarding such Contributions. 166*1fa4b3daSHector Dearman 167*1fa4b3daSHector Dearman 6. Trademarks. This License does not grant permission to use the trade 168*1fa4b3daSHector Dearman names, trademarks, service marks, or product names of the Licensor, 169*1fa4b3daSHector Dearman except as required for reasonable and customary use in describing the 170*1fa4b3daSHector Dearman origin of the Work and reproducing the content of the NOTICE file. 171*1fa4b3daSHector Dearman 172*1fa4b3daSHector Dearman 7. Disclaimer of Warranty. Unless required by applicable law or 173*1fa4b3daSHector Dearman agreed to in writing, Licensor provides the Work (and each 174*1fa4b3daSHector Dearman Contributor provides its Contributions) on an "AS IS" BASIS, 175*1fa4b3daSHector Dearman WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 176*1fa4b3daSHector Dearman implied, including, without limitation, any warranties or conditions 177*1fa4b3daSHector Dearman of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 178*1fa4b3daSHector Dearman PARTICULAR PURPOSE. You are solely responsible for determining the 179*1fa4b3daSHector Dearman appropriateness of using or redistributing the Work and assume any 180*1fa4b3daSHector Dearman risks associated with Your exercise of permissions under this License. 181*1fa4b3daSHector Dearman 182*1fa4b3daSHector Dearman 8. Limitation of Liability. In no event and under no legal theory, 183*1fa4b3daSHector Dearman whether in tort (including negligence), contract, or otherwise, 184*1fa4b3daSHector Dearman unless required by applicable law (such as deliberate and grossly 185*1fa4b3daSHector Dearman negligent acts) or agreed to in writing, shall any Contributor be 186*1fa4b3daSHector Dearman liable to You for damages, including any direct, indirect, special, 187*1fa4b3daSHector Dearman incidental, or consequential damages of any character arising as a 188*1fa4b3daSHector Dearman result of this License or out of the use or inability to use the 189*1fa4b3daSHector Dearman Work (including but not limited to damages for loss of goodwill, 190*1fa4b3daSHector Dearman work stoppage, computer failure or malfunction, or any and all 191*1fa4b3daSHector Dearman other commercial damages or losses), even if such Contributor 192*1fa4b3daSHector Dearman has been advised of the possibility of such damages. 193*1fa4b3daSHector Dearman 194*1fa4b3daSHector Dearman 9. Accepting Warranty or Additional Liability. While redistributing 195*1fa4b3daSHector Dearman the Work or Derivative Works thereof, You may choose to offer, 196*1fa4b3daSHector Dearman and charge a fee for, acceptance of support, warranty, indemnity, 197*1fa4b3daSHector Dearman or other liability obligations and/or rights consistent with this 198*1fa4b3daSHector Dearman License. However, in accepting such obligations, You may act only 199*1fa4b3daSHector Dearman on Your own behalf and on Your sole responsibility, not on behalf 200*1fa4b3daSHector Dearman of any other Contributor, and only if You agree to indemnify, 201*1fa4b3daSHector Dearman defend, and hold each Contributor harmless for any liability 202*1fa4b3daSHector Dearman incurred by, or claims asserted against, such Contributor by reason 203*1fa4b3daSHector Dearman of your accepting any such warranty or additional liability. 204*1fa4b3daSHector Dearman 205*1fa4b3daSHector Dearman END OF TERMS AND CONDITIONS 206