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

Side by Side Diff: content/browser/loader/detachable_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/detachable_resource_handler.h" 5 #include "content/browser/loader/detachable_resource_handler.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "content/browser/loader/resource_request_info_impl.h" 9 #include "content/browser/loader/resource_request_info_impl.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 next_handler_->SetController(this); 82 next_handler_->SetController(this);
83 } 83 }
84 84
85 bool DetachableResourceHandler::OnUploadProgress(uint64 position, uint64 size) { 85 bool DetachableResourceHandler::OnUploadProgress(uint64 position, uint64 size) {
86 if (!next_handler_) 86 if (!next_handler_)
87 return true; 87 return true;
88 88
89 return next_handler_->OnUploadProgress(position, size); 89 return next_handler_->OnUploadProgress(position, size);
90 } 90 }
91 91
92 bool DetachableResourceHandler::OnRequestRedirected(const GURL& url, 92 bool DetachableResourceHandler::OnRequestRedirected(
93 ResourceResponse* response, 93 const net::RedirectInfo& redirect_info,
94 bool* defer) { 94 ResourceResponse* response,
95 bool* defer) {
95 DCHECK(!is_deferred_); 96 DCHECK(!is_deferred_);
96 97
97 if (!next_handler_) 98 if (!next_handler_)
98 return true; 99 return true;
99 100
100 bool ret = next_handler_->OnRequestRedirected(url, response, &is_deferred_); 101 bool ret = next_handler_->OnRequestRedirected(
102 redirect_info, response, &is_deferred_);
101 *defer = is_deferred_; 103 *defer = is_deferred_;
102 return ret; 104 return ret;
103 } 105 }
104 106
105 bool DetachableResourceHandler::OnResponseStarted(ResourceResponse* response, 107 bool DetachableResourceHandler::OnResponseStarted(ResourceResponse* response,
106 bool* defer) { 108 bool* defer) {
107 DCHECK(!is_deferred_); 109 DCHECK(!is_deferred_);
108 110
109 if (!next_handler_) 111 if (!next_handler_)
110 return true; 112 return true;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 203
202 void DetachableResourceHandler::CancelAndIgnore() { 204 void DetachableResourceHandler::CancelAndIgnore() {
203 controller()->CancelAndIgnore(); 205 controller()->CancelAndIgnore();
204 } 206 }
205 207
206 void DetachableResourceHandler::CancelWithError(int error_code) { 208 void DetachableResourceHandler::CancelWithError(int error_code) {
207 controller()->CancelWithError(error_code); 209 controller()->CancelWithError(error_code);
208 } 210 }
209 211
210 } // namespace content 212 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/detachable_resource_handler.h ('k') | content/browser/loader/layered_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698