1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "fallback_data_store.h"
11 bool FallbackDataStore::Get(const std::string
& key
, std::string
* data
) {
15 // Available at https://i18napis.appspot.com/ssl-aggregate-address/data/US.
16 // The appended checksum is valid, but the timestamp is old.
19 "checksum=38d4bcdadfe494ffe062a7ad668d66d6\n"
20 "{\"data/US/LA\": {\"lang\": \"en\", \"zipex\": \"70000,71599\", \"nam"
21 "e\": \"Louisiana\", \"zip\": \"70|71[0-5]\", \"key\": \"LA\", \"id\":"
22 " \"data/US/LA\"}, \"data/US/VT\": {\"lang\": \"en\", \"zipex\": \"0500"
23 "0,05999\", \"name\": \"Vermont\", \"zip\": \"05\", \"key\": \"VT\", \""
24 "id\": \"data/US/VT\"}, \"data/US/NM\": {\"lang\": \"en\", \"zipex\": \""
25 "87000,88499\", \"name\": \"New Mexico\", \"zip\": \"87|88[0-4]\", \"k"
26 "ey\": \"NM\", \"id\": \"data/US/NM\"}, \"data/US/NJ\": {\"lang\": \"e"
27 "n\", \"zipex\": \"07000,08999\", \"name\": \"New Jersey\", \"zip\": \""
28 "0[78]\", \"key\": \"NJ\", \"id\": \"data/US/NJ\"}, \"data/US/NH\": {\""
29 "lang\": \"en\", \"zipex\": \"03000,03899\", \"name\": \"New Hampshire\""
30 ", \"zip\": \"03[0-8]\", \"key\": \"NH\", \"id\": \"data/US/NH\"}, \"d"
31 "ata/US/ND\": {\"lang\": \"en\", \"zipex\": \"58000,58999\", \"name\":"
32 " \"North Dakota\", \"zip\": \"58\", \"key\": \"ND\", \"id\": \"data/US"
33 "/ND\"}, \"data/US/NE\": {\"lang\": \"en\", \"zipex\": \"68000,69999\","
34 " \"name\": \"Nebraska\", \"zip\": \"6[89]\", \"key\": \"NE\", \"id\":"
35 " \"data/US/NE\"}, \"data/US/NC\": {\"lang\": \"en\", \"zipex\": \"2700"
36 "0,28999\", \"name\": \"North Carolina\", \"zip\": \"2[78]\", \"key\":"
37 " \"NC\", \"id\": \"data/US/NC\"}, \"data/US/PR\": {\"lang\": \"en\", \""
38 "zipex\": \"00600,00799:00900,00999\", \"name\": \"Puerto Rico\", \"zi"
39 "p\": \"00[679]\", \"key\": \"PR\", \"id\": \"data/US/PR\"}, \"data/US/"
40 "RI\": {\"lang\": \"en\", \"zipex\": \"02800,02999\", \"name\": \"Rhode"
41 " Island\", \"zip\": \"02[89]\", \"key\": \"RI\", \"id\": \"data/US/RI\""
42 "}, \"data/US/NY\": {\"lang\": \"en\", \"zipex\": \"10000,14999:06390:"
43 "00501:00544\", \"name\": \"New York\", \"zip\": \"1[0-4]|06390|00501|0"
44 "0544\", \"key\": \"NY\", \"id\": \"data/US/NY\"}, \"data/US/NV\": {\"l"
45 "ang\": \"en\", \"zipex\": \"88900,89999\", \"name\": \"Nevada\", \"zi"
46 "p\": \"889|89\", \"key\": \"NV\", \"id\": \"data/US/NV\"}, \"data/US/K"
47 "Y\": {\"lang\": \"en\", \"zipex\": \"40000,42799\", \"name\": \"Kentuc"
48 "ky\", \"zip\": \"4[01]|42[0-7]\", \"key\": \"KY\", \"id\": \"data/US/K"
49 "Y\"}, \"data/US/PA\": {\"lang\": \"en\", \"zipex\": \"15000,19699\", \""
50 "name\": \"Pennsylvania\", \"zip\": \"1[5-8]|19[0-6]\", \"key\": \"PA\""
51 ", \"id\": \"data/US/PA\"}, \"data/US/OH\": {\"lang\": \"en\", \"zipe"
52 "x\": \"43000,45999\", \"name\": \"Ohio\", \"zip\": \"4[3-5]\", \"key\""
53 ": \"OH\", \"id\": \"data/US/OH\"}, \"data/US/AS\": {\"lang\": \"en\","
54 " \"zipex\": \"96799\", \"name\": \"American Samoa\", \"zip\": \"96799\""
55 ", \"key\": \"AS\", \"id\": \"data/US/AS\"}, \"data/US/AA\": {\"lang\""
56 ": \"en\", \"zipex\": \"34000,34099\", \"name\": \"Armed Forces (AA)\","
57 " \"zip\": \"340\", \"key\": \"AA\", \"id\": \"data/US/AA\"}, \"data/US"
58 "/GA\": {\"lang\": \"en\", \"zipex\": \"30000,31999:39800,39899:39901\""
59 ", \"name\": \"Georgia\", \"zip\": \"3[01]|398|39901\", \"key\": \"GA\""
60 ", \"id\": \"data/US/GA\"}, \"data/US/OK\": {\"lang\": \"en\", \"zipex\""
61 ": \"73000,74999\", \"name\": \"Oklahoma\", \"zip\": \"7[34]\", \"key\""
62 ": \"OK\", \"id\": \"data/US/OK\"}, \"data/US/CO\": {\"lang\": \"en\","
63 " \"zipex\": \"80000,81999\", \"name\": \"Colorado\", \"zip\": \"8[01]\""
64 ", \"key\": \"CO\", \"id\": \"data/US/CO\"}, \"data/US/AK\": {\"lang\""
65 ": \"en\", \"zipex\": \"99500,99999\", \"name\": \"Alaska\", \"zip\": \""
66 "99[5-9]\", \"key\": \"AK\", \"id\": \"data/US/AK\"}, \"data/US/WV\": "
67 "{\"lang\": \"en\", \"zipex\": \"24700,26999\", \"name\": \"West Virgin"
68 "ia\", \"zip\": \"24[7-9]|2[56]\", \"key\": \"WV\", \"id\": \"data/US/W"
69 "V\"}, \"data/US/AL\": {\"lang\": \"en\", \"zipex\": \"35000,36999\", \""
70 "name\": \"Alabama\", \"zip\": \"3[56]\", \"key\": \"AL\", \"id\": \"d"
71 "ata/US/AL\"}, \"data/US/GU\": {\"lang\": \"en\", \"zipex\": \"96910,96"
72 "932\", \"name\": \"Guam\", \"zip\": \"969([1-2]\\\\d|3[12])\", \"key\":"
73 " \"GU\", \"id\": \"data/US/GU\"}, \"data/US/AR\": {\"lang\": \"en\", \""
74 "zipex\": \"71600,72999\", \"name\": \"Arkansas\", \"zip\": \"71[6-9]|"
75 "72\", \"key\": \"AR\", \"id\": \"data/US/AR\"}, \"data/US/AP\": {\"lan"
76 "g\": \"en\", \"zipex\": \"96200,96699\", \"name\": \"Armed Forces (AP"
77 ")\", \"zip\": \"96[2-6]\", \"key\": \"AP\", \"id\": \"data/US/AP\"}, \""
78 "data/US/AZ\": {\"lang\": \"en\", \"zipex\": \"85000,86999\", \"name\""
79 ": \"Arizona\", \"zip\": \"8[56]\", \"key\": \"AZ\", \"id\": \"data/US/"
80 "AZ\"}, \"data/US/VI\": {\"lang\": \"en\", \"zipex\": \"00800,00899\","
81 " \"name\": \"Virgin Islands\", \"zip\": \"008\", \"key\": \"VI\", \"i"
82 "d\": \"data/US/VI\"}, \"data/US/CT\": {\"lang\": \"en\", \"zipex\": \""
83 "06000,06999\", \"name\": \"Connecticut\", \"zip\": \"06\", \"key\": \""
84 "CT\", \"id\": \"data/US/CT\"}, \"data/US/ME\": {\"lang\": \"en\", \"zi"
85 "pex\": \"03900,04999\", \"name\": \"Maine\", \"zip\": \"039|04\", \"ke"
86 "y\": \"ME\", \"id\": \"data/US/ME\"}, \"data/US/MD\": {\"lang\": \"en\""
87 ", \"zipex\": \"20600,21999\", \"name\": \"Maryland\", \"zip\": \"20[6"
88 "-9]|21\", \"key\": \"MD\", \"id\": \"data/US/MD\"}, \"data/US/IN\": {\""
89 "lang\": \"en\", \"zipex\": \"46000,47999\", \"name\": \"Indiana\", \""
90 "zip\": \"4[67]\", \"key\": \"IN\", \"id\": \"data/US/IN\"}, \"data/US/"
91 "MA\": {\"lang\": \"en\", \"zipex\": \"01000,02799:05501:05544\", \"nam"
92 "e\": \"Massachusetts\", \"zip\": \"01|02[0-7]|05501|05544\", \"key\":"
93 " \"MA\", \"id\": \"data/US/MA\"}, \"data/US/IL\": {\"lang\": \"en\", \""
94 "zipex\": \"60000,62999\", \"name\": \"Illinois\", \"zip\": \"6[0-2]\""
95 ", \"key\": \"IL\", \"id\": \"data/US/IL\"}, \"data/US/MO\": {\"lang\":"
96 " \"en\", \"zipex\": \"63000,65999\", \"name\": \"Missouri\", \"zip\":"
97 " \"6[3-5]\", \"key\": \"MO\", \"id\": \"data/US/MO\"}, \"data/US/MN\":"
98 " {\"lang\": \"en\", \"zipex\": \"55000,56799\", \"name\": \"Minnesota\""
99 ", \"zip\": \"55|56[0-7]\", \"key\": \"MN\", \"id\": \"data/US/MN\"},"
100 " \"data/US/IA\": {\"lang\": \"en\", \"zipex\": \"50000,52999\", \"nam"
101 "e\": \"Iowa\", \"zip\": \"5[0-2]\", \"key\": \"IA\", \"id\": \"data/US"
102 "/IA\"}, \"data/US/TN\": {\"lang\": \"en\", \"zipex\": \"37000,38599\","
103 " \"name\": \"Tennessee\", \"zip\": \"37|38[0-5]\", \"key\": \"TN\", \""
104 "id\": \"data/US/TN\"}, \"data/US/WY\": {\"lang\": \"en\", \"zipex\": \""
105 "82000,83199:83414\", \"name\": \"Wyoming\", \"zip\": \"82|83[01]|8341"
106 "4\", \"key\": \"WY\", \"id\": \"data/US/WY\"}, \"data/US/KS\": {\"lan"
107 "g\": \"en\", \"zipex\": \"66000,67999\", \"name\": \"Kansas\", \"zip\""
108 ": \"6[67]\", \"key\": \"KS\", \"id\": \"data/US/KS\"}, \"data/US/MI\":"
109 " {\"lang\": \"en\", \"zipex\": \"48000,49999\", \"name\": \"Michigan\""
110 ", \"zip\": \"4[89]\", \"key\": \"MI\", \"id\": \"data/US/MI\"}, \"data"
111 "/US/ID\": {\"lang\": \"en\", \"zipex\": \"83200,83999\", \"name\": \"I"
112 "daho\", \"zip\": \"83[2-9]\", \"key\": \"ID\", \"id\": \"data/US/ID\"}"
113 ", \"data/US/MT\": {\"lang\": \"en\", \"zipex\": \"59000,59999\", \"nam"
114 "e\": \"Montana\", \"zip\": \"59\", \"key\": \"MT\", \"id\": \"data/US/"
115 "MT\"}, \"data/US/MS\": {\"lang\": \"en\", \"zipex\": \"38600,39799\","
116 " \"name\": \"Mississippi\", \"zip\": \"38[6-9]|39[0-7]\", \"key\": \"M"
117 "S\", \"id\": \"data/US/MS\"}, \"data/US/MP\": {\"lang\": \"en\", \"zip"
118 "ex\": \"96950,96952\", \"name\": \"Northern Mariana Islands\", \"zip\""
119 ": \"9695[0-2]\", \"key\": \"MP\", \"id\": \"data/US/MP\"}, \"data/US/P"
120 "W\": {\"lang\": \"en\", \"zipex\": \"96940\", \"name\": \"Palau\", \"z"
121 "ip\": \"969(39|40)\", \"key\": \"PW\", \"id\": \"data/US/PW\"}, \"data"
122 "/US/SC\": {\"lang\": \"en\", \"zipex\": \"29000,29999\", \"name\": \"S"
123 "outh Carolina\", \"zip\": \"29\", \"key\": \"SC\", \"id\": \"data/US/S"
124 "C\"}, \"data/US/MH\": {\"lang\": \"en\", \"zipex\": \"96960,96979\", \""
125 "name\": \"Marshall Islands\", \"zip\": \"969[67]\", \"key\": \"MH\","
126 " \"id\": \"data/US/MH\"}, \"data/US/WI\": {\"lang\": \"en\", \"zipex\""
127 ": \"53000,54999\", \"name\": \"Wisconsin\", \"zip\": \"5[34]\", \"key\""
128 ": \"WI\", \"id\": \"data/US/WI\"}, \"data/US/SD\": {\"lang\": \"en\","
129 " \"zipex\": \"57000,57999\", \"name\": \"South Dakota\", \"zip\": \"5"
130 "7\", \"key\": \"SD\", \"id\": \"data/US/SD\"}, \"data/US/OR\": {\"lan"
131 "g\": \"en\", \"zipex\": \"97000,97999\", \"name\": \"Oregon\", \"zip\""
132 ": \"97\", \"key\": \"OR\", \"id\": \"data/US/OR\"}, \"data/US/UT\": {\""
133 "lang\": \"en\", \"zipex\": \"84000,84999\", \"name\": \"Utah\", \"zi"
134 "p\": \"84\", \"key\": \"UT\", \"id\": \"data/US/UT\"}, \"data/US/VA\":"
135 " {\"lang\": \"en\", \"zipex\": \"20100,20199:22000,24699\", \"name\":"
136 " \"Virginia\", \"zip\": \"201|2[23]|24[0-6]\", \"key\": \"VA\", \"id\""
137 ": \"data/US/VA\"}, \"data/US/AE\": {\"lang\": \"en\", \"zipex\": \"090"
138 "00,09999\", \"name\": \"Armed Forces (AE)\", \"zip\": \"09\", \"key\":"
139 " \"AE\", \"id\": \"data/US/AE\"}, \"data/US/FL\": {\"lang\": \"en\", \""
140 "zipex\": \"32000,33999:34100,34999\", \"name\": \"Florida\", \"zip\":"
141 " \"3[23]|34[1-9]\", \"key\": \"FL\", \"id\": \"data/US/FL\"}, \"data/U"
142 "S/FM\": {\"lang\": \"en\", \"zipex\": \"96941,96944\", \"name\": \"Mic"
143 "ronesia\", \"zip\": \"9694[1-4]\", \"key\": \"FM\", \"id\": \"data/US/"
144 "FM\"}, \"data/US/DE\": {\"lang\": \"en\", \"zipex\": \"19700,19999\","
145 " \"name\": \"Delaware\", \"zip\": \"19[7-9]\", \"key\": \"DE\", \"id\""
146 ": \"data/US/DE\"}, \"data/US/CA\": {\"lang\": \"en\", \"zipex\": \"900"
147 "00,96199\", \"name\": \"California\", \"zip\": \"9[0-5]|96[01]\", \"ke"
148 "y\": \"CA\", \"id\": \"data/US/CA\"}, \"data/US\": {\"lang\": \"en\","
149 " \"upper\": \"CS\", \"sub_zipexs\": \"35000,36999~99500,99999~96799~85"
150 "000,86999~71600,72999~34000,34099~09000,09999~96200,96699~90000,96199~"
151 "80000,81999~06000,06999~19700,19999~20000,20099:20200,20599:56900,5699"
152 "9~32000,33999:34100,34999~30000,31999:39800,39899:39901~96910,96932~96"
153 "700,96798:96800,96899~83200,83999~60000,62999~46000,47999~50000,52999~"
154 "66000,67999~40000,42799~70000,71599~03900,04999~96960,96979~20600,2199"
155 "9~01000,02799:05501:05544~48000,49999~96941,96944~55000,56799~38600,39"
156 "799~63000,65999~59000,59999~68000,69999~88900,89999~03000,03899~07000,"
157 "08999~87000,88499~10000,14999:06390:00501:00544~27000,28999~58000,5899"
158 "9~96950,96952~43000,45999~73000,74999~97000,97999~96940~15000,19699~00"
159 "600,00799:00900,00999~02800,02999~29000,29999~57000,57999~37000,38599~"
160 "75000,79999:88500,88599:73301:73344~84000,84999~05000,05999~00800,0089"
161 "9~20100,20199:22000,24699~98000,99499~24700,26999~53000,54999~82000,83"
162 "199:83414\", \"zipex\": \"95014,22162-1010\", \"name\": \"UNITED STATE"
163 "S\", \"zip\": \"\\\\d{5}([ \\\\-]\\\\d{4})?\", \"zip_name_type\": \"zi"
164 "p\", \"fmt\": \"%N%n%O%n%A%n%C %S %Z\", \"state_name_type\": \"state\""
165 ", \"languages\": \"en\", \"sub_keys\": \"AL~AK~AS~AZ~AR~AA~AE~AP~CA~CO"
166 "~CT~DE~DC~FL~GA~GU~HI~ID~IL~IN~IA~KS~KY~LA~ME~MH~MD~MA~MI~FM~MN~MS~MO~"
167 "MT~NE~NV~NH~NJ~NM~NY~NC~ND~MP~OH~OK~OR~PW~PA~PR~RI~SC~SD~TN~TX~UT~VT~V"
168 "I~VA~WA~WV~WI~WY\","
169 " \"key\": \"US\", \"require\": \"ACSZ\", \"posturl\": \"https://tools."
170 "usps.com/go/ZipLookupAction!input.action\", \"id\": \"dat"
171 "a/US\", \"sub_names\": \"Alabama~Alaska~American Samoa~Arizona~Arkansa"
172 "s~Armed Forces (AA)~Armed Forces (AE)~Armed Forces (AP)~California~Col"
173 "orado~Connecticut~Delaware~District of Columbia~Florida~Georgia~Guam~H"
174 "awaii~Idaho~Illinois~Indiana~Iowa~Kansas~Kentucky~Louisiana~Maine~Mars"
175 "hall Islands~Maryland~Massachusetts~Michigan~Micronesia~Minnesota~Miss"
176 "issippi~Missouri~Montana~Nebraska~Nevada~New Hampshire~New Jersey~New "
177 "Mexico~New York~North Carolina~North Dakota~Northern Mariana Islands~O"
178 "hio~Oklahoma~Oregon~Palau~Pennsylvania~Puerto Rico~Rhode Island~South "
179 "Carolina~South Dakota~Tennessee~Texas~Utah~Vermont~Virgin Islands~Virg"
180 "inia~Washington~West Virginia~Wisconsin~Wyoming\", \"sub_zips\": \"3[5"
181 "6]~99[5-9]~96799~8[56]~71[6-9]|72~340~09~96[2-6]~9[0-5]|96[01]~8[01]~0"
182 "6~19[7-9]~20[02-5]|569~3[23]|34[1-9]~3[01]|398|39901~969([1-2]\\\\d|3[12"
183 "])~967[0-8]|9679[0-8]|968~83[2-9]~6[0-2]~4[67]~5[0-2]~6[67]~4[01]|42[0"
184 "-7]~70|71[0-5]~039|04~969[67]~20[6-9]|21~01|02[0-7]|05501|05544~4[89]~"
185 "9694[1-4]~55|56[0-7]~38[6-9]|39[0-7]~6[3-5]~59~6[89]~889|89~03[0-8]~0["
186 "78]~87|88[0-4]~1[0-4]|06390|00501|00544~2[78]~58~9695[0-2]~4[3-5]~7[34"
187 "]~97~969(39|40)~1[5-8]|19[0-6]~00[679]~02[89]~29~57~37|38[0-5]~7[5-9]|"
188 "885|73301|73344~84~05~008~201|2[23]|24[0-6]~98|99[0-4]~24[7-9]|2[56]~5"
189 "[34]~82|83[01]|83414\"}, \"data/US/TX\": {\"lang\": \"en\", \"zipex\":"
190 " \"75000,79999:88500,88599:73301:73344\", \"name\": \"Texas\", \"zip\""
191 ": \"7[5-9]|885|73301|73344\", \"key\": \"TX\", \"id\": \"data/US/TX\"}"
192 ", \"data/US/WA\": {\"lang\": \"en\", \"zipex\": \"98000,99499\", \"nam"
193 "e\": \"Washington\", \"zip\": \"98|99[0-4]\", \"key\": \"WA\", \"id\":"
194 " \"data/US/WA\"}, \"data/US/DC\": {\"lang\": \"en\", \"zipex\": \"2000"
195 "0,20099:20200,20599:56900,56999\", \"name\": \"District of Columbia\","
196 " \"zip\": \"20[02-5]|569\", \"key\": \"DC\", \"id\": \"data/US/DC\"},"
197 " \"data/US/HI\": {\"lang\": \"en\", \"zipex\": \"96700,96798:96800,968"
198 "99\", \"name\": \"Hawaii\", \"zip\": \"967[0-8]|9679[0-8]|968\", \"key"
199 "\": \"HI\", \"id\": \"data/US/HI\"}}");
203 } // namespace autofill