OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/loader/resource_request_info_impl.h" | 5 #include "content/browser/loader/resource_request_info_impl.h" |
6 | 6 |
7 #include "content/browser/loader/global_routing_id.h" | 7 #include "content/browser/loader/global_routing_id.h" |
8 #include "content/browser/loader/resource_message_filter.h" | 8 #include "content/browser/loader/resource_message_filter.h" |
9 #include "content/common/net/url_request_user_data.h" | 9 #include "content/common/net/url_request_user_data.h" |
10 #include "content/public/browser/global_request_id.h" | 10 #include "content/public/browser/global_request_id.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 resource_type == RESOURCE_TYPE_MAIN_FRAME, // is_main_frame | 41 resource_type == RESOURCE_TYPE_MAIN_FRAME, // is_main_frame |
42 false, // parent_is_main_frame | 42 false, // parent_is_main_frame |
43 0, // parent_render_frame_id | 43 0, // parent_render_frame_id |
44 resource_type, // resource_type | 44 resource_type, // resource_type |
45 PAGE_TRANSITION_LINK, // transition_type | 45 PAGE_TRANSITION_LINK, // transition_type |
46 false, // should_replace_current_entry | 46 false, // should_replace_current_entry |
47 false, // is_download | 47 false, // is_download |
48 false, // is_stream | 48 false, // is_stream |
49 true, // allow_download | 49 true, // allow_download |
50 false, // has_user_gesture | 50 false, // has_user_gesture |
| 51 false, // enable load timing |
51 blink::WebReferrerPolicyDefault, // referrer_policy | 52 blink::WebReferrerPolicyDefault, // referrer_policy |
52 blink::WebPageVisibilityStateVisible, // visibility_state | 53 blink::WebPageVisibilityStateVisible, // visibility_state |
53 context, // context | 54 context, // context |
54 base::WeakPtr<ResourceMessageFilter>(), // filter | 55 base::WeakPtr<ResourceMessageFilter>(), // filter |
55 is_async); // is_async | 56 is_async); // is_async |
56 info->AssociateWithRequest(request); | 57 info->AssociateWithRequest(request); |
57 } | 58 } |
58 | 59 |
59 // static | 60 // static |
60 bool ResourceRequestInfo::GetRenderFrameForRequest( | 61 bool ResourceRequestInfo::GetRenderFrameForRequest( |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 bool is_main_frame, | 96 bool is_main_frame, |
96 bool parent_is_main_frame, | 97 bool parent_is_main_frame, |
97 int parent_render_frame_id, | 98 int parent_render_frame_id, |
98 ResourceType resource_type, | 99 ResourceType resource_type, |
99 PageTransition transition_type, | 100 PageTransition transition_type, |
100 bool should_replace_current_entry, | 101 bool should_replace_current_entry, |
101 bool is_download, | 102 bool is_download, |
102 bool is_stream, | 103 bool is_stream, |
103 bool allow_download, | 104 bool allow_download, |
104 bool has_user_gesture, | 105 bool has_user_gesture, |
| 106 bool enable_load_timing, |
105 blink::WebReferrerPolicy referrer_policy, | 107 blink::WebReferrerPolicy referrer_policy, |
106 blink::WebPageVisibilityState visibility_state, | 108 blink::WebPageVisibilityState visibility_state, |
107 ResourceContext* context, | 109 ResourceContext* context, |
108 base::WeakPtr<ResourceMessageFilter> filter, | 110 base::WeakPtr<ResourceMessageFilter> filter, |
109 bool is_async) | 111 bool is_async) |
110 : cross_site_handler_(NULL), | 112 : cross_site_handler_(NULL), |
111 detachable_handler_(NULL), | 113 detachable_handler_(NULL), |
112 process_type_(process_type), | 114 process_type_(process_type), |
113 child_id_(child_id), | 115 child_id_(child_id), |
114 route_id_(route_id), | 116 route_id_(route_id), |
115 origin_pid_(origin_pid), | 117 origin_pid_(origin_pid), |
116 request_id_(request_id), | 118 request_id_(request_id), |
117 render_frame_id_(render_frame_id), | 119 render_frame_id_(render_frame_id), |
118 is_main_frame_(is_main_frame), | 120 is_main_frame_(is_main_frame), |
119 parent_is_main_frame_(parent_is_main_frame), | 121 parent_is_main_frame_(parent_is_main_frame), |
120 parent_render_frame_id_(parent_render_frame_id), | 122 parent_render_frame_id_(parent_render_frame_id), |
121 should_replace_current_entry_(should_replace_current_entry), | 123 should_replace_current_entry_(should_replace_current_entry), |
122 is_download_(is_download), | 124 is_download_(is_download), |
123 is_stream_(is_stream), | 125 is_stream_(is_stream), |
124 allow_download_(allow_download), | 126 allow_download_(allow_download), |
125 has_user_gesture_(has_user_gesture), | 127 has_user_gesture_(has_user_gesture), |
| 128 enable_load_timing_(enable_load_timing), |
126 was_ignored_by_handler_(false), | 129 was_ignored_by_handler_(false), |
127 resource_type_(resource_type), | 130 resource_type_(resource_type), |
128 transition_type_(transition_type), | 131 transition_type_(transition_type), |
129 memory_cost_(0), | 132 memory_cost_(0), |
130 referrer_policy_(referrer_policy), | 133 referrer_policy_(referrer_policy), |
131 visibility_state_(visibility_state), | 134 visibility_state_(visibility_state), |
132 context_(context), | 135 context_(context), |
133 filter_(filter), | 136 filter_(filter), |
134 is_async_(is_async) { | 137 is_async_(is_async) { |
135 } | 138 } |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 base::WeakPtr<ResourceMessageFilter> filter) { | 254 base::WeakPtr<ResourceMessageFilter> filter) { |
252 child_id_ = child_id; | 255 child_id_ = child_id; |
253 route_id_ = route_id; | 256 route_id_ = route_id; |
254 origin_pid_ = origin_pid; | 257 origin_pid_ = origin_pid; |
255 request_id_ = request_id; | 258 request_id_ = request_id; |
256 parent_render_frame_id_ = parent_render_frame_id; | 259 parent_render_frame_id_ = parent_render_frame_id; |
257 filter_ = filter; | 260 filter_ = filter; |
258 } | 261 } |
259 | 262 |
260 } // namespace content | 263 } // namespace content |
OLD | NEW |