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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 out->append("</b>"); | 167 out->append("</b>"); |
168 out->append("</td>"); | 168 out->append("</td>"); |
169 } | 169 } |
170 | 170 |
171 std::string FormFlagsString(const AppCacheResourceInfo& info) { | 171 std::string FormFlagsString(const AppCacheResourceInfo& info) { |
172 std::string str; | 172 std::string str; |
173 if (info.is_manifest) | 173 if (info.is_manifest) |
174 str.append("Manifest, "); | 174 str.append("Manifest, "); |
175 if (info.is_master) | 175 if (info.is_master) |
176 str.append("Master, "); | 176 str.append("Master, "); |
| 177 if (info.is_intercept) |
| 178 str.append("Intercept, "); |
177 if (info.is_fallback) | 179 if (info.is_fallback) |
178 str.append("Fallback, "); | 180 str.append("Fallback, "); |
179 if (info.is_explicit) | 181 if (info.is_explicit) |
180 str.append("Explicit, "); | 182 str.append("Explicit, "); |
181 if (info.is_foreign) | 183 if (info.is_foreign) |
182 str.append("Foreign, "); | 184 str.append("Foreign, "); |
183 return str; | 185 return str; |
184 } | 186 } |
185 | 187 |
186 std::string FormViewEntryAnchor(const GURL& base_url, | 188 std::string FormViewEntryAnchor(const GURL& base_url, |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 return new ViewEntryJob(request, service, | 623 return new ViewEntryJob(request, service, |
622 DecodeBase64URL(tokens[0]), // manifest url | 624 DecodeBase64URL(tokens[0]), // manifest url |
623 DecodeBase64URL(tokens[1]), // entry url | 625 DecodeBase64URL(tokens[1]), // entry url |
624 response_id, group_id); | 626 response_id, group_id); |
625 } | 627 } |
626 | 628 |
627 return new RedirectToMainPageJob(request, service); | 629 return new RedirectToMainPageJob(request, service); |
628 } | 630 } |
629 | 631 |
630 } // namespace appcache | 632 } // namespace appcache |
OLD | NEW |