| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 2907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2918 | 2918 |
| 2919 void RenderFrameHostImpl::SetHasReceivedUserGesture() { | 2919 void RenderFrameHostImpl::SetHasReceivedUserGesture() { |
| 2920 Send(new FrameMsg_SetHasReceivedUserGesture(GetRoutingID())); | 2920 Send(new FrameMsg_SetHasReceivedUserGesture(GetRoutingID())); |
| 2921 } | 2921 } |
| 2922 | 2922 |
| 2923 void RenderFrameHostImpl::ClearFocusedElement() { | 2923 void RenderFrameHostImpl::ClearFocusedElement() { |
| 2924 has_focused_editable_element_ = false; | 2924 has_focused_editable_element_ = false; |
| 2925 Send(new FrameMsg_ClearFocusedElement(GetRoutingID())); | 2925 Send(new FrameMsg_ClearFocusedElement(GetRoutingID())); |
| 2926 } | 2926 } |
| 2927 | 2927 |
| 2928 void RenderFrameHostImpl::AbortNavigationRequest(const GURL& url, |
| 2929 int error_code) { |
| 2930 Send(new FrameMsg_AbortNavigationRequest(GetRoutingID(), url, error_code)); |
| 2931 } |
| 2932 |
| 2928 bool RenderFrameHostImpl::IsSameSiteInstance( | 2933 bool RenderFrameHostImpl::IsSameSiteInstance( |
| 2929 RenderFrameHostImpl* other_render_frame_host) { | 2934 RenderFrameHostImpl* other_render_frame_host) { |
| 2930 // As a sanity check, make sure the frame belongs to the same BrowserContext. | 2935 // As a sanity check, make sure the frame belongs to the same BrowserContext. |
| 2931 CHECK_EQ(GetSiteInstance()->GetBrowserContext(), | 2936 CHECK_EQ(GetSiteInstance()->GetBrowserContext(), |
| 2932 other_render_frame_host->GetSiteInstance()->GetBrowserContext()); | 2937 other_render_frame_host->GetSiteInstance()->GetBrowserContext()); |
| 2933 return GetSiteInstance() == other_render_frame_host->GetSiteInstance(); | 2938 return GetSiteInstance() == other_render_frame_host->GetSiteInstance(); |
| 2934 } | 2939 } |
| 2935 | 2940 |
| 2936 void RenderFrameHostImpl::UpdateAccessibilityMode() { | 2941 void RenderFrameHostImpl::UpdateAccessibilityMode() { |
| 2937 AccessibilityMode accessibility_mode = delegate_->GetAccessibilityMode(); | 2942 AccessibilityMode accessibility_mode = delegate_->GetAccessibilityMode(); |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3454 // There is no pending NavigationEntry in these cases, so pass 0 as the | 3459 // There is no pending NavigationEntry in these cases, so pass 0 as the |
| 3455 // pending_nav_entry_id. If the previous handle was a prematurely aborted | 3460 // pending_nav_entry_id. If the previous handle was a prematurely aborted |
| 3456 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. | 3461 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. |
| 3457 return NavigationHandleImpl::Create( | 3462 return NavigationHandleImpl::Create( |
| 3458 params.url, params.redirects, frame_tree_node_, is_renderer_initiated, | 3463 params.url, params.redirects, frame_tree_node_, is_renderer_initiated, |
| 3459 params.was_within_same_page, base::TimeTicks::Now(), | 3464 params.was_within_same_page, base::TimeTicks::Now(), |
| 3460 entry_id_for_data_nav, false); // started_from_context_menu | 3465 entry_id_for_data_nav, false); // started_from_context_menu |
| 3461 } | 3466 } |
| 3462 | 3467 |
| 3463 } // namespace content | 3468 } // namespace content |
| OLD | NEW |