OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <algorithm> | 5 #include <algorithm> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "webkit/appcache/view_appcache_internals_job.h" | 8 #include "webkit/appcache/view_appcache_internals_job.h" |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 out->append("</b>"); | 169 out->append("</b>"); |
170 out->append("</td>"); | 170 out->append("</td>"); |
171 } | 171 } |
172 | 172 |
173 std::string FormFlagsString(const AppCacheResourceInfo& info) { | 173 std::string FormFlagsString(const AppCacheResourceInfo& info) { |
174 std::string str; | 174 std::string str; |
175 if (info.is_manifest) | 175 if (info.is_manifest) |
176 str.append("Manifest, "); | 176 str.append("Manifest, "); |
177 if (info.is_master) | 177 if (info.is_master) |
178 str.append("Master, "); | 178 str.append("Master, "); |
| 179 if (info.is_intercept) |
| 180 str.append("Intercept, "); |
179 if (info.is_fallback) | 181 if (info.is_fallback) |
180 str.append("Fallback, "); | 182 str.append("Fallback, "); |
181 if (info.is_explicit) | 183 if (info.is_explicit) |
182 str.append("Explicit, "); | 184 str.append("Explicit, "); |
183 if (info.is_foreign) | 185 if (info.is_foreign) |
184 str.append("Foreign, "); | 186 str.append("Foreign, "); |
185 return str; | 187 return str; |
186 } | 188 } |
187 | 189 |
188 std::string FormViewEntryAnchor(const GURL& base_url, | 190 std::string FormViewEntryAnchor(const GURL& base_url, |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 return new ViewEntryJob(request, service, | 616 return new ViewEntryJob(request, service, |
615 DecodeBase64URL(tokens[0]), // manifest url | 617 DecodeBase64URL(tokens[0]), // manifest url |
616 DecodeBase64URL(tokens[1]), // entry url | 618 DecodeBase64URL(tokens[1]), // entry url |
617 response_id, group_id); | 619 response_id, group_id); |
618 } | 620 } |
619 | 621 |
620 return new RedirectToMainPageJob(request, service); | 622 return new RedirectToMainPageJob(request, service); |
621 } | 623 } |
622 | 624 |
623 } // namespace appcache | 625 } // namespace appcache |
OLD | NEW |