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/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "content/browser/frame_host/frame_tree.h" | 27 #include "content/browser/frame_host/frame_tree.h" |
28 #include "content/browser/frame_host/frame_tree_node.h" | 28 #include "content/browser/frame_host/frame_tree_node.h" |
29 #include "content/browser/frame_host/navigation_handle_impl.h" | 29 #include "content/browser/frame_host/navigation_handle_impl.h" |
30 #include "content/browser/frame_host/navigation_request.h" | 30 #include "content/browser/frame_host/navigation_request.h" |
31 #include "content/browser/frame_host/navigator.h" | 31 #include "content/browser/frame_host/navigator.h" |
32 #include "content/browser/frame_host/navigator_impl.h" | 32 #include "content/browser/frame_host/navigator_impl.h" |
33 #include "content/browser/frame_host/render_frame_host_delegate.h" | 33 #include "content/browser/frame_host/render_frame_host_delegate.h" |
34 #include "content/browser/frame_host/render_frame_proxy_host.h" | 34 #include "content/browser/frame_host/render_frame_proxy_host.h" |
35 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" | 35 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
36 #include "content/browser/geolocation/geolocation_service_context.h" | 36 #include "content/browser/geolocation/geolocation_service_context.h" |
| 37 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
37 #include "content/browser/permissions/permission_service_context.h" | 38 #include "content/browser/permissions/permission_service_context.h" |
38 #include "content/browser/permissions/permission_service_impl.h" | 39 #include "content/browser/permissions/permission_service_impl.h" |
39 #include "content/browser/presentation/presentation_service_impl.h" | 40 #include "content/browser/presentation/presentation_service_impl.h" |
40 #include "content/browser/renderer_host/input/input_router.h" | 41 #include "content/browser/renderer_host/input/input_router.h" |
41 #include "content/browser/renderer_host/input/timeout_monitor.h" | 42 #include "content/browser/renderer_host/input/timeout_monitor.h" |
42 #include "content/browser/renderer_host/render_process_host_impl.h" | 43 #include "content/browser/renderer_host/render_process_host_impl.h" |
43 #include "content/browser/renderer_host/render_view_host_delegate.h" | 44 #include "content/browser/renderer_host/render_view_host_delegate.h" |
44 #include "content/browser/renderer_host/render_view_host_delegate_view.h" | 45 #include "content/browser/renderer_host/render_view_host_delegate_view.h" |
45 #include "content/browser/renderer_host/render_view_host_impl.h" | 46 #include "content/browser/renderer_host/render_view_host_impl.h" |
46 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 47 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 delegate_->RenderFrameCreated(this); | 763 delegate_->RenderFrameCreated(this); |
763 else | 764 else |
764 delegate_->RenderFrameDeleted(this); | 765 delegate_->RenderFrameDeleted(this); |
765 } | 766 } |
766 | 767 |
767 if (created && render_widget_host_) | 768 if (created && render_widget_host_) |
768 render_widget_host_->InitForFrame(); | 769 render_widget_host_->InitForFrame(); |
769 } | 770 } |
770 | 771 |
771 void RenderFrameHostImpl::Init() { | 772 void RenderFrameHostImpl::Init() { |
772 // TODO(csharrison): Call GetProcess()->ResumeRequestsForFrame(routing_id_) | 773 ResourceDispatcherHost::ResumeBlockedRequestsForFrame(this); |
773 // once ResourceDispatcherHostImpl is keyed on render frame routing ids | |
774 // instead of render view routing ids. | |
775 } | 774 } |
776 | 775 |
777 void RenderFrameHostImpl::OnAddMessageToConsole( | 776 void RenderFrameHostImpl::OnAddMessageToConsole( |
778 int32_t level, | 777 int32_t level, |
779 const base::string16& message, | 778 const base::string16& message, |
780 int32_t line_no, | 779 int32_t line_no, |
781 const base::string16& source_id) { | 780 const base::string16& source_id) { |
782 if (delegate_->AddMessageToConsole(level, message, line_no, source_id)) | 781 if (delegate_->AddMessageToConsole(level, message, line_no, source_id)) |
783 return; | 782 return; |
784 | 783 |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1060 while (frame) { | 1059 while (frame) { |
1061 if (frame->render_widget_host_) | 1060 if (frame->render_widget_host_) |
1062 return frame->render_widget_host_->GetView(); | 1061 return frame->render_widget_host_->GetView(); |
1063 frame = static_cast<RenderFrameHostImpl*>(frame->GetParent()); | 1062 frame = static_cast<RenderFrameHostImpl*>(frame->GetParent()); |
1064 } | 1063 } |
1065 | 1064 |
1066 NOTREACHED(); | 1065 NOTREACHED(); |
1067 return nullptr; | 1066 return nullptr; |
1068 } | 1067 } |
1069 | 1068 |
| 1069 GlobalFrameRoutingId RenderFrameHostImpl::GetGlobalFrameRoutingId() { |
| 1070 return GlobalFrameRoutingId(GetProcess()->GetID(), GetRoutingID()); |
| 1071 } |
| 1072 |
1070 int RenderFrameHostImpl::GetEnabledBindings() { | 1073 int RenderFrameHostImpl::GetEnabledBindings() { |
1071 return render_view_host_->GetEnabledBindings(); | 1074 return render_view_host_->GetEnabledBindings(); |
1072 } | 1075 } |
1073 | 1076 |
1074 void RenderFrameHostImpl::SetNavigationHandle( | 1077 void RenderFrameHostImpl::SetNavigationHandle( |
1075 scoped_ptr<NavigationHandleImpl> navigation_handle) { | 1078 scoped_ptr<NavigationHandleImpl> navigation_handle) { |
1076 navigation_handle_ = std::move(navigation_handle); | 1079 navigation_handle_ = std::move(navigation_handle); |
1077 if (navigation_handle_) | 1080 if (navigation_handle_) |
1078 navigation_handle_->set_render_frame_host(this); | 1081 navigation_handle_->set_render_frame_host(this); |
1079 } | 1082 } |
(...skipping 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2528 *dst = src; | 2531 *dst = src; |
2529 | 2532 |
2530 if (src.routing_id != -1) | 2533 if (src.routing_id != -1) |
2531 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); | 2534 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); |
2532 | 2535 |
2533 if (src.parent_routing_id != -1) | 2536 if (src.parent_routing_id != -1) |
2534 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); | 2537 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); |
2535 } | 2538 } |
2536 | 2539 |
2537 } // namespace content | 2540 } // namespace content |
OLD | NEW |