Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: content/browser/appcache/view_appcache_internals_job.cc

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 "content/browser/appcache/view_appcache_internals_job.h" 5 #include "content/browser/appcache/view_appcache_internals_job.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/format_macros.h" 12 #include "base/format_macros.h"
13 #include "base/i18n/time_formatting.h" 13 #include "base/i18n/time_formatting.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
17 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
18 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
19 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
20 #include "content/browser/appcache/appcache.h"
21 #include "content/browser/appcache/appcache_group.h"
22 #include "content/browser/appcache/appcache_policy.h"
23 #include "content/browser/appcache/appcache_response.h"
24 #include "content/browser/appcache/appcache_service_impl.h"
25 #include "content/browser/appcache/appcache_storage.h"
20 #include "net/base/escape.h" 26 #include "net/base/escape.h"
21 #include "net/base/io_buffer.h" 27 #include "net/base/io_buffer.h"
22 #include "net/base/net_errors.h" 28 #include "net/base/net_errors.h"
23 #include "net/http/http_response_headers.h" 29 #include "net/http/http_response_headers.h"
24 #include "net/url_request/url_request.h" 30 #include "net/url_request/url_request.h"
25 #include "net/url_request/url_request_simple_job.h" 31 #include "net/url_request/url_request_simple_job.h"
26 #include "net/url_request/view_cache_helper.h" 32 #include "net/url_request/view_cache_helper.h"
27 #include "webkit/browser/appcache/appcache.h"
28 #include "webkit/browser/appcache/appcache_group.h"
29 #include "webkit/browser/appcache/appcache_policy.h"
30 #include "webkit/browser/appcache/appcache_response.h"
31 #include "webkit/browser/appcache/appcache_service_impl.h"
32 #include "webkit/browser/appcache/appcache_storage.h"
33
34 using appcache::AppCacheGroup;
35 using appcache::AppCacheInfo;
36 using appcache::AppCacheInfoCollection;
37 using appcache::AppCacheInfoVector;
38 using appcache::AppCacheServiceImpl;
39 using appcache::AppCacheStorage;
40 using appcache::AppCacheStorageReference;
41 using appcache::AppCacheResourceInfo;
42 using appcache::AppCacheResourceInfoVector;
43 using appcache::AppCacheResponseInfo;
44 using appcache::AppCacheResponseReader;
45 33
46 namespace content { 34 namespace content {
47 namespace { 35 namespace {
48 36
49 const char kErrorMessage[] = "Error in retrieving Application Caches."; 37 const char kErrorMessage[] = "Error in retrieving Application Caches.";
50 const char kEmptyAppCachesMessage[] = "No available Application Caches."; 38 const char kEmptyAppCachesMessage[] = "No available Application Caches.";
51 const char kManifestNotFoundMessage[] = "Manifest not found."; 39 const char kManifestNotFoundMessage[] = "Manifest not found.";
52 const char kManifest[] = "Manifest: "; 40 const char kManifest[] = "Manifest: ";
53 const char kSize[] = "Size: "; 41 const char kSize[] = "Size: ";
54 const char kCreationTime[] = "Creation Time: "; 42 const char kCreationTime[] = "Creation Time: ";
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 return new ViewEntryJob(request, network_delegate, service, 660 return new ViewEntryJob(request, network_delegate, service,
673 DecodeBase64URL(tokens[0]), // manifest url 661 DecodeBase64URL(tokens[0]), // manifest url
674 DecodeBase64URL(tokens[1]), // entry url 662 DecodeBase64URL(tokens[1]), // entry url
675 response_id, group_id); 663 response_id, group_id);
676 } 664 }
677 665
678 return new RedirectToMainPageJob(request, network_delegate, service); 666 return new RedirectToMainPageJob(request, network_delegate, service);
679 } 667 }
680 668
681 } // namespace content 669 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698