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

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

Issue 8801006: Make the transfer request code path use full referrers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years 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"
11 11
12 ResourceDispatcherHostRequestInfo::ResourceDispatcherHostRequestInfo( 12 ResourceDispatcherHostRequestInfo::ResourceDispatcherHostRequestInfo(
13 ResourceHandler* handler, 13 ResourceHandler* handler,
14 content::ProcessType process_type, 14 content::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 origin_pid,
18 int request_id, 18 int request_id,
19 bool is_main_frame, 19 bool is_main_frame,
20 int64 frame_id, 20 int64 frame_id,
21 bool parent_is_main_frame, 21 bool parent_is_main_frame,
22 int64 parent_frame_id, 22 int64 parent_frame_id,
23 ResourceType::Type resource_type, 23 ResourceType::Type resource_type,
24 content::PageTransition transition_type, 24 content::PageTransition transition_type,
25 uint64 upload_size, 25 uint64 upload_size,
26 bool is_download, 26 bool is_download,
27 bool allow_download, 27 bool allow_download,
28 bool has_user_gesture, 28 bool has_user_gesture,
29 WebKit::WebReferrerPolicy referrer_policy,
29 const content::ResourceContext* context) 30 const content::ResourceContext* context)
30 : resource_handler_(handler), 31 : resource_handler_(handler),
31 cross_site_handler_(NULL), 32 cross_site_handler_(NULL),
32 process_type_(process_type), 33 process_type_(process_type),
33 child_id_(child_id), 34 child_id_(child_id),
34 route_id_(route_id), 35 route_id_(route_id),
35 origin_pid_(origin_pid), 36 origin_pid_(origin_pid),
36 request_id_(request_id), 37 request_id_(request_id),
37 is_main_frame_(is_main_frame), 38 is_main_frame_(is_main_frame),
38 frame_id_(frame_id), 39 frame_id_(frame_id),
39 parent_is_main_frame_(parent_is_main_frame), 40 parent_is_main_frame_(parent_is_main_frame),
40 parent_frame_id_(parent_frame_id), 41 parent_frame_id_(parent_frame_id),
41 pending_data_count_(0), 42 pending_data_count_(0),
42 is_download_(is_download), 43 is_download_(is_download),
43 allow_download_(allow_download), 44 allow_download_(allow_download),
44 has_user_gesture_(has_user_gesture), 45 has_user_gesture_(has_user_gesture),
45 pause_count_(0), 46 pause_count_(0),
46 resource_type_(resource_type), 47 resource_type_(resource_type),
47 transition_type_(transition_type), 48 transition_type_(transition_type),
48 upload_size_(upload_size), 49 upload_size_(upload_size),
49 last_upload_position_(0), 50 last_upload_position_(0),
50 waiting_for_upload_progress_ack_(false), 51 waiting_for_upload_progress_ack_(false),
51 memory_cost_(0), 52 memory_cost_(0),
53 referrer_policy_(referrer_policy),
52 context_(context), 54 context_(context),
53 is_paused_(false), 55 is_paused_(false),
54 called_on_response_started_(false), 56 called_on_response_started_(false),
55 has_started_reading_(false), 57 has_started_reading_(false),
56 paused_read_bytes_(0) { 58 paused_read_bytes_(0) {
57 } 59 }
58 60
59 ResourceDispatcherHostRequestInfo::~ResourceDispatcherHostRequestInfo() { 61 ResourceDispatcherHostRequestInfo::~ResourceDispatcherHostRequestInfo() {
60 resource_handler_->OnRequestClosed(); 62 resource_handler_->OnRequestClosed();
61 } 63 }
62 64
63 void ResourceDispatcherHostRequestInfo::set_login_delegate( 65 void ResourceDispatcherHostRequestInfo::set_login_delegate(
64 ResourceDispatcherHostLoginDelegate* ld) { 66 ResourceDispatcherHostLoginDelegate* ld) {
65 login_delegate_ = ld; 67 login_delegate_ = ld;
66 } 68 }
67 69
68 void ResourceDispatcherHostRequestInfo::set_ssl_client_auth_handler( 70 void ResourceDispatcherHostRequestInfo::set_ssl_client_auth_handler(
69 SSLClientAuthHandler* s) { 71 SSLClientAuthHandler* s) {
70 ssl_client_auth_handler_ = s; 72 ssl_client_auth_handler_ = s;
71 } 73 }
72 74
73 void ResourceDispatcherHostRequestInfo::set_requested_blob_data( 75 void ResourceDispatcherHostRequestInfo::set_requested_blob_data(
74 webkit_blob::BlobData* data) { 76 webkit_blob::BlobData* data) {
75 requested_blob_data_ = data; 77 requested_blob_data_ = data;
76 } 78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698