| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading | 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading |
| 6 | 6 |
| 7 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 7 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 | 600 |
| 601 // Note that we don't remove the security bits here. This will be done | 601 // Note that we don't remove the security bits here. This will be done |
| 602 // when all file refs are deleted (see RegisterDownloadedTempFile). | 602 // when all file refs are deleted (see RegisterDownloadedTempFile). |
| 603 } | 603 } |
| 604 | 604 |
| 605 bool ResourceDispatcherHost::Send(IPC::Message* message) { | 605 bool ResourceDispatcherHost::Send(IPC::Message* message) { |
| 606 delete message; | 606 delete message; |
| 607 return false; | 607 return false; |
| 608 } | 608 } |
| 609 | 609 |
| 610 bool ResourceDispatcherHost::ShouldForceDownloadResource( |
| 611 const GURL& url, const std::string& mime_type) { |
| 612 return delegate_->ShouldForceDownloadResource(url, mime_type); |
| 613 } |
| 614 |
| 610 void ResourceDispatcherHost::OnUploadProgressACK(int request_id) { | 615 void ResourceDispatcherHost::OnUploadProgressACK(int request_id) { |
| 611 int child_id = filter_->child_id(); | 616 int child_id = filter_->child_id(); |
| 612 PendingRequestList::iterator i = pending_requests_.find( | 617 PendingRequestList::iterator i = pending_requests_.find( |
| 613 GlobalRequestID(child_id, request_id)); | 618 GlobalRequestID(child_id, request_id)); |
| 614 if (i == pending_requests_.end()) | 619 if (i == pending_requests_.end()) |
| 615 return; | 620 return; |
| 616 | 621 |
| 617 ResourceDispatcherHostRequestInfo* info = InfoForRequest(i->second); | 622 ResourceDispatcherHostRequestInfo* info = InfoForRequest(i->second); |
| 618 info->set_waiting_for_upload_progress_ack(false); | 623 info->set_waiting_for_upload_progress_ack(false); |
| 619 } | 624 } |
| (...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2005 return HTTP_AUTH_RESOURCE_BLOCKED_CROSS; | 2010 return HTTP_AUTH_RESOURCE_BLOCKED_CROSS; |
| 2006 } | 2011 } |
| 2007 | 2012 |
| 2008 bool ResourceDispatcherHost::allow_cross_origin_auth_prompt() { | 2013 bool ResourceDispatcherHost::allow_cross_origin_auth_prompt() { |
| 2009 return allow_cross_origin_auth_prompt_; | 2014 return allow_cross_origin_auth_prompt_; |
| 2010 } | 2015 } |
| 2011 | 2016 |
| 2012 void ResourceDispatcherHost::set_allow_cross_origin_auth_prompt(bool value) { | 2017 void ResourceDispatcherHost::set_allow_cross_origin_auth_prompt(bool value) { |
| 2013 allow_cross_origin_auth_prompt_ = value; | 2018 allow_cross_origin_auth_prompt_ = value; |
| 2014 } | 2019 } |
| 2015 | |
| 2016 | |
| OLD | NEW |