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

Side by Side Diff: content/browser/appcache/appcache_url_request_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/browser/appcache/appcache_url_request_job.h" 5 #include "content/browser/appcache/appcache_url_request_job.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
16 #include "content/browser/appcache/appcache.h"
17 #include "content/browser/appcache/appcache_group.h"
18 #include "content/browser/appcache/appcache_histograms.h"
19 #include "content/browser/appcache/appcache_host.h"
20 #include "content/browser/appcache/appcache_service_impl.h"
16 #include "net/base/io_buffer.h" 21 #include "net/base/io_buffer.h"
17 #include "net/base/net_errors.h" 22 #include "net/base/net_errors.h"
18 #include "net/base/net_log.h" 23 #include "net/base/net_log.h"
19 #include "net/http/http_request_headers.h" 24 #include "net/http/http_request_headers.h"
20 #include "net/http/http_response_headers.h" 25 #include "net/http/http_response_headers.h"
21 #include "net/http/http_util.h" 26 #include "net/http/http_util.h"
22 #include "net/url_request/url_request.h" 27 #include "net/url_request/url_request.h"
23 #include "net/url_request/url_request_status.h" 28 #include "net/url_request/url_request_status.h"
24 #include "webkit/browser/appcache/appcache.h"
25 #include "webkit/browser/appcache/appcache_group.h"
26 #include "webkit/browser/appcache/appcache_histograms.h"
27 #include "webkit/browser/appcache/appcache_host.h"
28 #include "webkit/browser/appcache/appcache_service_impl.h"
29 29
30 namespace appcache { 30 namespace content {
31 31
32 AppCacheURLRequestJob::AppCacheURLRequestJob( 32 AppCacheURLRequestJob::AppCacheURLRequestJob(
33 net::URLRequest* request, 33 net::URLRequest* request,
34 net::NetworkDelegate* network_delegate, 34 net::NetworkDelegate* network_delegate,
35 AppCacheStorage* storage, 35 AppCacheStorage* storage,
36 AppCacheHost* host, 36 AppCacheHost* host,
37 bool is_main_resource) 37 bool is_main_resource)
38 : net::URLRequestJob(request, network_delegate), 38 : net::URLRequestJob(request, network_delegate),
39 host_(host), 39 host_(host),
40 storage_(storage), 40 storage_(storage),
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 !net::HttpUtil::ParseRangeHeader(value, &ranges)) { 439 !net::HttpUtil::ParseRangeHeader(value, &ranges)) {
440 return; 440 return;
441 } 441 }
442 442
443 // If multiple ranges are requested, we play dumb and 443 // If multiple ranges are requested, we play dumb and
444 // return the entire response with 200 OK. 444 // return the entire response with 200 OK.
445 if (ranges.size() == 1U) 445 if (ranges.size() == 1U)
446 range_requested_ = ranges[0]; 446 range_requested_ = ranges[0];
447 } 447 }
448 448
449 } // namespace appcache 449 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698