| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/frame_host/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 const std::string& RenderFrameHostImpl::GetFrameName() { | 428 const std::string& RenderFrameHostImpl::GetFrameName() { |
| 429 return frame_tree_node_->frame_name(); | 429 return frame_tree_node_->frame_name(); |
| 430 } | 430 } |
| 431 | 431 |
| 432 bool RenderFrameHostImpl::IsCrossProcessSubframe() { | 432 bool RenderFrameHostImpl::IsCrossProcessSubframe() { |
| 433 if (!parent_) | 433 if (!parent_) |
| 434 return false; | 434 return false; |
| 435 return GetSiteInstance() != parent_->GetSiteInstance(); | 435 return GetSiteInstance() != parent_->GetSiteInstance(); |
| 436 } | 436 } |
| 437 | 437 |
| 438 const GURL& RenderFrameHostImpl::GetLastCommittedURL() { | 438 const GURL& RenderFrameHostImpl::GetLastCommittedURL() const { |
| 439 return last_committed_url(); | 439 return last_committed_url(); |
| 440 } | 440 } |
| 441 | 441 |
| 442 url::Origin RenderFrameHostImpl::GetLastCommittedOrigin() { | 442 url::Origin RenderFrameHostImpl::GetLastCommittedOrigin() { |
| 443 // Origin is stored per-FTN, so it's incorrect to call for a non-current RFH. | 443 // Origin is stored per-FTN, so it's incorrect to call for a non-current RFH. |
| 444 CHECK(this == frame_tree_node_->current_frame_host()); | 444 CHECK(this == frame_tree_node_->current_frame_host()); |
| 445 return frame_tree_node_->current_origin(); | 445 return frame_tree_node_->current_origin(); |
| 446 } | 446 } |
| 447 | 447 |
| 448 gfx::NativeView RenderFrameHostImpl::GetNativeView() { | 448 gfx::NativeView RenderFrameHostImpl::GetNativeView() { |
| (...skipping 2823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3272 // There is no pending NavigationEntry in these cases, so pass 0 as the | 3272 // There is no pending NavigationEntry in these cases, so pass 0 as the |
| 3273 // pending_nav_entry_id. If the previous handle was a prematurely aborted | 3273 // pending_nav_entry_id. If the previous handle was a prematurely aborted |
| 3274 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. | 3274 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. |
| 3275 return NavigationHandleImpl::Create( | 3275 return NavigationHandleImpl::Create( |
| 3276 params.url, frame_tree_node_, is_renderer_initiated, | 3276 params.url, frame_tree_node_, is_renderer_initiated, |
| 3277 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(), | 3277 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(), |
| 3278 entry_id_for_data_nav, false); // started_from_context_menu | 3278 entry_id_for_data_nav, false); // started_from_context_menu |
| 3279 } | 3279 } |
| 3280 | 3280 |
| 3281 } // namespace content | 3281 } // namespace content |
| OLD | NEW |