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

Side by Side Diff: content/browser/loader/layered_resource_handler.cc

Issue 398903002: Plumb redirect info out of net, through content, and into child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: darin comments Created 6 years, 4 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 "content/browser/loader/layered_resource_handler.h" 5 #include "content/browser/loader/layered_resource_handler.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 17 matching lines...) Expand all
28 DCHECK(next_handler_.get()); 28 DCHECK(next_handler_.get());
29 next_handler_->SetController(controller); 29 next_handler_->SetController(controller);
30 } 30 }
31 31
32 bool LayeredResourceHandler::OnUploadProgress(uint64 position, 32 bool LayeredResourceHandler::OnUploadProgress(uint64 position,
33 uint64 size) { 33 uint64 size) {
34 DCHECK(next_handler_.get()); 34 DCHECK(next_handler_.get());
35 return next_handler_->OnUploadProgress(position, size); 35 return next_handler_->OnUploadProgress(position, size);
36 } 36 }
37 37
38 bool LayeredResourceHandler::OnRequestRedirected(const GURL& url, 38 bool LayeredResourceHandler::OnRequestRedirected(
39 ResourceResponse* response, 39 const net::RedirectInfo& redirect_info,
40 bool* defer) { 40 ResourceResponse* response,
41 bool* defer) {
41 DCHECK(next_handler_.get()); 42 DCHECK(next_handler_.get());
42 return next_handler_->OnRequestRedirected(url, response, defer); 43 return next_handler_->OnRequestRedirected(redirect_info, response, defer);
43 } 44 }
44 45
45 bool LayeredResourceHandler::OnResponseStarted(ResourceResponse* response, 46 bool LayeredResourceHandler::OnResponseStarted(ResourceResponse* response,
46 bool* defer) { 47 bool* defer) {
47 DCHECK(next_handler_.get()); 48 DCHECK(next_handler_.get());
48 return next_handler_->OnResponseStarted(response, defer); 49 return next_handler_->OnResponseStarted(response, defer);
49 } 50 }
50 51
51 bool LayeredResourceHandler::OnWillStart(const GURL& url, 52 bool LayeredResourceHandler::OnWillStart(const GURL& url,
52 bool* defer) { 53 bool* defer) {
(...skipping 26 matching lines...) Expand all
79 DCHECK(next_handler_.get()); 80 DCHECK(next_handler_.get());
80 next_handler_->OnResponseCompleted(status, security_info, defer); 81 next_handler_->OnResponseCompleted(status, security_info, defer);
81 } 82 }
82 83
83 void LayeredResourceHandler::OnDataDownloaded(int bytes_downloaded) { 84 void LayeredResourceHandler::OnDataDownloaded(int bytes_downloaded) {
84 DCHECK(next_handler_.get()); 85 DCHECK(next_handler_.get());
85 next_handler_->OnDataDownloaded(bytes_downloaded); 86 next_handler_->OnDataDownloaded(bytes_downloaded);
86 } 87 }
87 88
88 } // namespace content 89 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/layered_resource_handler.h ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698