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

Side by Side Diff: content/browser/renderer_host/resource_dispatcher_host_request_info.cc

Issue 9113028: Substitute ResourceHandlers with dummy ResourceHandler while request is transferred (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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) 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 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" 5 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h"
6 6
7 #include "content/browser/renderer_host/resource_dispatcher_host_login_delegate. h" 7 #include "content/browser/renderer_host/resource_dispatcher_host_login_delegate. h"
8 #include "content/browser/renderer_host/resource_handler.h" 8 #include "content/browser/renderer_host/resource_handler.h"
9 #include "content/browser/ssl/ssl_client_auth_handler.h" 9 #include "content/browser/ssl/ssl_client_auth_handler.h"
10 #include "webkit/blob/blob_data.h" 10 #include "webkit/blob/blob_data.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 is_paused_(false), 55 is_paused_(false),
56 called_on_response_started_(false), 56 called_on_response_started_(false),
57 has_started_reading_(false), 57 has_started_reading_(false),
58 paused_read_bytes_(0) { 58 paused_read_bytes_(0) {
59 } 59 }
60 60
61 ResourceDispatcherHostRequestInfo::~ResourceDispatcherHostRequestInfo() { 61 ResourceDispatcherHostRequestInfo::~ResourceDispatcherHostRequestInfo() {
62 resource_handler_->OnRequestClosed(); 62 resource_handler_->OnRequestClosed();
63 } 63 }
64 64
65 void ResourceDispatcherHostRequestInfo::set_resource_handler(
66 ResourceHandler* resource_handler) {
67 resource_handler_ = resource_handler;
68 }
69
65 void ResourceDispatcherHostRequestInfo::set_login_delegate( 70 void ResourceDispatcherHostRequestInfo::set_login_delegate(
66 ResourceDispatcherHostLoginDelegate* ld) { 71 ResourceDispatcherHostLoginDelegate* ld) {
67 login_delegate_ = ld; 72 login_delegate_ = ld;
68 } 73 }
69 74
70 void ResourceDispatcherHostRequestInfo::set_ssl_client_auth_handler( 75 void ResourceDispatcherHostRequestInfo::set_ssl_client_auth_handler(
71 SSLClientAuthHandler* s) { 76 SSLClientAuthHandler* s) {
72 ssl_client_auth_handler_ = s; 77 ssl_client_auth_handler_ = s;
73 } 78 }
74 79
75 void ResourceDispatcherHostRequestInfo::set_requested_blob_data( 80 void ResourceDispatcherHostRequestInfo::set_requested_blob_data(
76 webkit_blob::BlobData* data) { 81 webkit_blob::BlobData* data) {
77 requested_blob_data_ = data; 82 requested_blob_data_ = data;
78 } 83 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698