| OLD | NEW |
| 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/resource_loader.h" | 5 #include "content/browser/loader/resource_loader.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "content/browser/child_process_security_policy_impl.h" | 10 #include "content/browser/child_process_security_policy_impl.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 DCHECK_EQ(DEFERRED_REDIRECT, deferred_stage_); | 172 DCHECK_EQ(DEFERRED_REDIRECT, deferred_stage_); |
| 173 DCHECK(!handler_.get()); | 173 DCHECK(!handler_.get()); |
| 174 | 174 |
| 175 handler_ = new_handler.Pass(); | 175 handler_ = new_handler.Pass(); |
| 176 handler_->SetController(this); | 176 handler_->SetController(this); |
| 177 is_transferring_ = false; | 177 is_transferring_ = false; |
| 178 | 178 |
| 179 Resume(); | 179 Resume(); |
| 180 } | 180 } |
| 181 | 181 |
| 182 void ResourceLoader::ChangePriority(net::RequestPriority new_priority) { |
| 183 request_->set_priority(new_priority); |
| 184 handler_->OnRequestPriorityChanged(GetRequestInfo()->GetRequestID()); |
| 185 } |
| 186 |
| 182 ResourceRequestInfoImpl* ResourceLoader::GetRequestInfo() { | 187 ResourceRequestInfoImpl* ResourceLoader::GetRequestInfo() { |
| 183 return ResourceRequestInfoImpl::ForRequest(request_.get()); | 188 return ResourceRequestInfoImpl::ForRequest(request_.get()); |
| 184 } | 189 } |
| 185 | 190 |
| 186 void ResourceLoader::ClearLoginDelegate() { | 191 void ResourceLoader::ClearLoginDelegate() { |
| 187 login_delegate_ = NULL; | 192 login_delegate_ = NULL; |
| 188 } | 193 } |
| 189 | 194 |
| 190 void ResourceLoader::ClearSSLClientAuthHandler() { | 195 void ResourceLoader::ClearSSLClientAuthHandler() { |
| 191 ssl_client_auth_handler_ = NULL; | 196 ssl_client_auth_handler_ = NULL; |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 // we resume. | 624 // we resume. |
| 620 deferred_stage_ = DEFERRED_FINISH; | 625 deferred_stage_ = DEFERRED_FINISH; |
| 621 } | 626 } |
| 622 } | 627 } |
| 623 | 628 |
| 624 void ResourceLoader::CallDidFinishLoading() { | 629 void ResourceLoader::CallDidFinishLoading() { |
| 625 delegate_->DidFinishLoading(this); | 630 delegate_->DidFinishLoading(this); |
| 626 } | 631 } |
| 627 | 632 |
| 628 } // namespace content | 633 } // namespace content |
| OLD | NEW |