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/frame_host/frame_tree_node.h" | 7 #include "content/browser/frame_host/frame_tree_node.h" |
8 #include "content/browser/loader/global_routing_id.h" | 8 #include "content/browser/loader/global_routing_id.h" |
9 #include "content/browser/loader/resource_message_filter.h" | 9 #include "content/browser/loader/resource_message_filter.h" |
10 #include "content/browser/web_contents/web_contents_impl.h" | 10 #include "content/browser/web_contents/web_contents_impl.h" |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 } | 234 } |
235 | 235 |
236 int ResourceRequestInfoImpl::GetOriginPID() const { | 236 int ResourceRequestInfoImpl::GetOriginPID() const { |
237 return origin_pid_; | 237 return origin_pid_; |
238 } | 238 } |
239 | 239 |
240 int ResourceRequestInfoImpl::GetRenderFrameID() const { | 240 int ResourceRequestInfoImpl::GetRenderFrameID() const { |
241 return render_frame_id_; | 241 return render_frame_id_; |
242 } | 242 } |
243 | 243 |
| 244 int ResourceRequestInfoImpl::GetFrameTreeNodeId() const { |
| 245 return frame_tree_node_id_; |
| 246 } |
| 247 |
244 bool ResourceRequestInfoImpl::IsMainFrame() const { | 248 bool ResourceRequestInfoImpl::IsMainFrame() const { |
245 return is_main_frame_; | 249 return is_main_frame_; |
246 } | 250 } |
247 | 251 |
248 bool ResourceRequestInfoImpl::ParentIsMainFrame() const { | 252 bool ResourceRequestInfoImpl::ParentIsMainFrame() const { |
249 return parent_is_main_frame_; | 253 return parent_is_main_frame_; |
250 } | 254 } |
251 | 255 |
252 ResourceType ResourceRequestInfoImpl::GetResourceType() const { | 256 ResourceType ResourceRequestInfoImpl::GetResourceType() const { |
253 return resource_type_; | 257 return resource_type_; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 origin_pid_ = origin_pid; | 342 origin_pid_ = origin_pid; |
339 request_id_ = request_id; | 343 request_id_ = request_id; |
340 filter_ = filter; | 344 filter_ = filter; |
341 } | 345 } |
342 | 346 |
343 void ResourceRequestInfoImpl::ResetBody() { | 347 void ResourceRequestInfoImpl::ResetBody() { |
344 body_ = nullptr; | 348 body_ = nullptr; |
345 } | 349 } |
346 | 350 |
347 } // namespace content | 351 } // namespace content |
OLD | NEW |