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 #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 21 matching lines...) Expand all Loading... |
32 origin_pid_(origin_pid), | 32 origin_pid_(origin_pid), |
33 request_id_(request_id), | 33 request_id_(request_id), |
34 is_main_frame_(is_main_frame), | 34 is_main_frame_(is_main_frame), |
35 frame_id_(frame_id), | 35 frame_id_(frame_id), |
36 pending_data_count_(0), | 36 pending_data_count_(0), |
37 is_download_(is_download), | 37 is_download_(is_download), |
38 allow_download_(allow_download), | 38 allow_download_(allow_download), |
39 has_user_gesture_(has_user_gesture), | 39 has_user_gesture_(has_user_gesture), |
40 pause_count_(0), | 40 pause_count_(0), |
41 resource_type_(resource_type), | 41 resource_type_(resource_type), |
42 last_load_state_(net::LOAD_STATE_IDLE), | |
43 upload_size_(upload_size), | 42 upload_size_(upload_size), |
44 last_upload_position_(0), | 43 last_upload_position_(0), |
45 waiting_for_upload_progress_ack_(false), | 44 waiting_for_upload_progress_ack_(false), |
46 memory_cost_(0), | 45 memory_cost_(0), |
47 context_(context), | 46 context_(context), |
48 is_paused_(false), | 47 is_paused_(false), |
49 called_on_response_started_(false), | 48 called_on_response_started_(false), |
50 has_started_reading_(false), | 49 has_started_reading_(false), |
51 paused_read_bytes_(0) { | 50 paused_read_bytes_(0) { |
52 } | 51 } |
53 | 52 |
54 ResourceDispatcherHostRequestInfo::~ResourceDispatcherHostRequestInfo() { | 53 ResourceDispatcherHostRequestInfo::~ResourceDispatcherHostRequestInfo() { |
55 resource_handler_->OnRequestClosed(); | 54 resource_handler_->OnRequestClosed(); |
56 } | 55 } |
57 | 56 |
58 void ResourceDispatcherHostRequestInfo::set_login_delegate( | 57 void ResourceDispatcherHostRequestInfo::set_login_delegate( |
59 ResourceDispatcherHostLoginDelegate* ld) { | 58 ResourceDispatcherHostLoginDelegate* ld) { |
60 login_delegate_ = ld; | 59 login_delegate_ = ld; |
61 } | 60 } |
62 | 61 |
63 void ResourceDispatcherHostRequestInfo::set_ssl_client_auth_handler( | 62 void ResourceDispatcherHostRequestInfo::set_ssl_client_auth_handler( |
64 SSLClientAuthHandler* s) { | 63 SSLClientAuthHandler* s) { |
65 ssl_client_auth_handler_ = s; | 64 ssl_client_auth_handler_ = s; |
66 } | 65 } |
67 | 66 |
68 void ResourceDispatcherHostRequestInfo::set_requested_blob_data( | 67 void ResourceDispatcherHostRequestInfo::set_requested_blob_data( |
69 webkit_blob::BlobData* data) { | 68 webkit_blob::BlobData* data) { |
70 requested_blob_data_ = data; | 69 requested_blob_data_ = data; |
71 } | 70 } |
OLD | NEW |