| 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 24 matching lines...) Expand all Loading... |
| 35 PROCESS_TYPE_RENDERER, // process_type | 35 PROCESS_TYPE_RENDERER, // process_type |
| 36 render_process_id, // child_id | 36 render_process_id, // child_id |
| 37 render_view_id, // route_id | 37 render_view_id, // route_id |
| 38 0, // origin_pid | 38 0, // origin_pid |
| 39 0, // request_id | 39 0, // request_id |
| 40 render_frame_id, // render_frame_id | 40 render_frame_id, // render_frame_id |
| 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 ui::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 false, // enable load timing |
| 52 blink::WebReferrerPolicyDefault, // referrer_policy | 52 blink::WebReferrerPolicyDefault, // referrer_policy |
| 53 blink::WebPageVisibilityStateVisible, // visibility_state | 53 blink::WebPageVisibilityStateVisible, // visibility_state |
| 54 context, // context | 54 context, // context |
| 55 base::WeakPtr<ResourceMessageFilter>(), // filter | 55 base::WeakPtr<ResourceMessageFilter>(), // filter |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 int process_type, | 90 int process_type, |
| 91 int child_id, | 91 int child_id, |
| 92 int route_id, | 92 int route_id, |
| 93 int origin_pid, | 93 int origin_pid, |
| 94 int request_id, | 94 int request_id, |
| 95 int render_frame_id, | 95 int render_frame_id, |
| 96 bool is_main_frame, | 96 bool is_main_frame, |
| 97 bool parent_is_main_frame, | 97 bool parent_is_main_frame, |
| 98 int parent_render_frame_id, | 98 int parent_render_frame_id, |
| 99 ResourceType resource_type, | 99 ResourceType resource_type, |
| 100 PageTransition transition_type, | 100 ui::PageTransition transition_type, |
| 101 bool should_replace_current_entry, | 101 bool should_replace_current_entry, |
| 102 bool is_download, | 102 bool is_download, |
| 103 bool is_stream, | 103 bool is_stream, |
| 104 bool allow_download, | 104 bool allow_download, |
| 105 bool has_user_gesture, | 105 bool has_user_gesture, |
| 106 bool enable_load_timing, | 106 bool enable_load_timing, |
| 107 blink::WebReferrerPolicy referrer_policy, | 107 blink::WebReferrerPolicy referrer_policy, |
| 108 blink::WebPageVisibilityState visibility_state, | 108 blink::WebPageVisibilityState visibility_state, |
| 109 ResourceContext* context, | 109 ResourceContext* context, |
| 110 base::WeakPtr<ResourceMessageFilter> filter, | 110 base::WeakPtr<ResourceMessageFilter> filter, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 blink::WebReferrerPolicy ResourceRequestInfoImpl::GetReferrerPolicy() const { | 187 blink::WebReferrerPolicy ResourceRequestInfoImpl::GetReferrerPolicy() const { |
| 188 return referrer_policy_; | 188 return referrer_policy_; |
| 189 } | 189 } |
| 190 | 190 |
| 191 blink::WebPageVisibilityState | 191 blink::WebPageVisibilityState |
| 192 ResourceRequestInfoImpl::GetVisibilityState() const { | 192 ResourceRequestInfoImpl::GetVisibilityState() const { |
| 193 return visibility_state_; | 193 return visibility_state_; |
| 194 } | 194 } |
| 195 | 195 |
| 196 PageTransition ResourceRequestInfoImpl::GetPageTransition() const { | 196 ui::PageTransition ResourceRequestInfoImpl::GetPageTransition() const { |
| 197 return transition_type_; | 197 return transition_type_; |
| 198 } | 198 } |
| 199 | 199 |
| 200 bool ResourceRequestInfoImpl::HasUserGesture() const { | 200 bool ResourceRequestInfoImpl::HasUserGesture() const { |
| 201 return has_user_gesture_; | 201 return has_user_gesture_; |
| 202 } | 202 } |
| 203 | 203 |
| 204 bool ResourceRequestInfoImpl::WasIgnoredByHandler() const { | 204 bool ResourceRequestInfoImpl::WasIgnoredByHandler() const { |
| 205 return was_ignored_by_handler_; | 205 return was_ignored_by_handler_; |
| 206 } | 206 } |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 base::WeakPtr<ResourceMessageFilter> filter) { | 254 base::WeakPtr<ResourceMessageFilter> filter) { |
| 255 child_id_ = child_id; | 255 child_id_ = child_id; |
| 256 route_id_ = route_id; | 256 route_id_ = route_id; |
| 257 origin_pid_ = origin_pid; | 257 origin_pid_ = origin_pid; |
| 258 request_id_ = request_id; | 258 request_id_ = request_id; |
| 259 parent_render_frame_id_ = parent_render_frame_id; | 259 parent_render_frame_id_ = parent_render_frame_id; |
| 260 filter_ = filter; | 260 filter_ = filter; |
| 261 } | 261 } |
| 262 | 262 |
| 263 } // namespace content | 263 } // namespace content |
| OLD | NEW |