OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/ssl/ssl_client_auth_handler.h" | 7 #include "chrome/browser/ssl/ssl_client_auth_handler.h" |
8 #include "chrome/browser/ui/login/login_prompt.h" | 8 #include "chrome/browser/ui/login/login_prompt.h" |
9 #include "content/browser/renderer_host/resource_handler.h" | 9 #include "content/browser/renderer_host/resource_handler.h" |
10 #include "webkit/blob/blob_data.h" | 10 #include "webkit/blob/blob_data.h" |
11 | 11 |
12 ResourceDispatcherHostRequestInfo::ResourceDispatcherHostRequestInfo( | 12 ResourceDispatcherHostRequestInfo::ResourceDispatcherHostRequestInfo( |
13 ResourceHandler* handler, | 13 ResourceHandler* handler, |
14 ChildProcessInfo::ProcessType process_type, | 14 ChildProcessInfo::ProcessType process_type, |
15 int child_id, | 15 int child_id, |
16 int route_id, | 16 int route_id, |
| 17 int origin_pid, |
17 int request_id, | 18 int request_id, |
18 ResourceType::Type resource_type, | 19 ResourceType::Type resource_type, |
19 uint64 upload_size, | 20 uint64 upload_size, |
20 bool is_download, | 21 bool is_download, |
21 bool allow_download, | 22 bool allow_download, |
22 bool has_user_gesture, | 23 bool has_user_gesture, |
23 const content::ResourceContext* context) | 24 const content::ResourceContext* context) |
24 : resource_handler_(handler), | 25 : resource_handler_(handler), |
25 cross_site_handler_(NULL), | 26 cross_site_handler_(NULL), |
26 process_type_(process_type), | 27 process_type_(process_type), |
27 child_id_(child_id), | 28 child_id_(child_id), |
28 route_id_(route_id), | 29 route_id_(route_id), |
| 30 origin_pid_(origin_pid), |
29 request_id_(request_id), | 31 request_id_(request_id), |
30 pending_data_count_(0), | 32 pending_data_count_(0), |
31 is_download_(is_download), | 33 is_download_(is_download), |
32 allow_download_(allow_download), | 34 allow_download_(allow_download), |
33 has_user_gesture_(has_user_gesture), | 35 has_user_gesture_(has_user_gesture), |
34 pause_count_(0), | 36 pause_count_(0), |
35 resource_type_(resource_type), | 37 resource_type_(resource_type), |
36 last_load_state_(net::LOAD_STATE_IDLE), | 38 last_load_state_(net::LOAD_STATE_IDLE), |
37 upload_size_(upload_size), | 39 upload_size_(upload_size), |
38 last_upload_position_(0), | 40 last_upload_position_(0), |
(...skipping 16 matching lines...) Expand all Loading... |
55 | 57 |
56 void ResourceDispatcherHostRequestInfo::set_ssl_client_auth_handler( | 58 void ResourceDispatcherHostRequestInfo::set_ssl_client_auth_handler( |
57 SSLClientAuthHandler* s) { | 59 SSLClientAuthHandler* s) { |
58 ssl_client_auth_handler_ = s; | 60 ssl_client_auth_handler_ = s; |
59 } | 61 } |
60 | 62 |
61 void ResourceDispatcherHostRequestInfo::set_requested_blob_data( | 63 void ResourceDispatcherHostRequestInfo::set_requested_blob_data( |
62 webkit_blob::BlobData* data) { | 64 webkit_blob::BlobData* data) { |
63 requested_blob_data_ = data; | 65 requested_blob_data_ = data; |
64 } | 66 } |
OLD | NEW |