OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 6 |
7 #include "webkit/appcache/view_appcache_internals_job.h" | 7 #include "webkit/appcache/view_appcache_internals_job.h" |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/format_macros.h" | 11 #include "base/format_macros.h" |
| 12 #include "base/stringprintf.h" |
12 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
13 #include "base/i18n/time_formatting.h" | 14 #include "base/i18n/time_formatting.h" |
14 #include "base/string_util.h" | 15 #include "base/string_util.h" |
15 #include "net/base/escape.h" | 16 #include "net/base/escape.h" |
16 #include "net/url_request/url_request.h" | 17 #include "net/url_request/url_request.h" |
17 #include "webkit/appcache/appcache_policy.h" | 18 #include "webkit/appcache/appcache_policy.h" |
18 #include "webkit/appcache/appcache_service.h" | 19 #include "webkit/appcache/appcache_service.h" |
19 | 20 |
20 namespace { | 21 namespace { |
21 | 22 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 data->append(kErrorMessage); | 259 data->append(kErrorMessage); |
259 else if (info_collection_->infos_by_origin.empty()) | 260 else if (info_collection_->infos_by_origin.empty()) |
260 data->append(kEmptyAppCachesMessage); | 261 data->append(kEmptyAppCachesMessage); |
261 else | 262 else |
262 GenerateHTMLAppCacheInfo(data); | 263 GenerateHTMLAppCacheInfo(data); |
263 EndHTML(data); | 264 EndHTML(data); |
264 return true; | 265 return true; |
265 } | 266 } |
266 | 267 |
267 } // namespace appcache | 268 } // namespace appcache |
OLD | NEW |