Index: content/browser/frame_host/render_frame_host_manager.cc |
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc |
index 0321d7b9a334ba7d80a0ee2fe1bd331a9cf4fe9b..965f0925c81266b2a81b1ee42af1c8dcb339463a 100644 |
--- a/content/browser/frame_host/render_frame_host_manager.cc |
+++ b/content/browser/frame_host/render_frame_host_manager.cc |
@@ -17,6 +17,8 @@ |
#include "content/browser/frame_host/interstitial_page_impl.h" |
#include "content/browser/frame_host/navigation_controller_impl.h" |
#include "content/browser/frame_host/navigation_entry_impl.h" |
+#include "content/browser/frame_host/navigation_request.h" |
+#include "content/browser/frame_host/navigation_request_info.h" |
#include "content/browser/frame_host/navigator.h" |
#include "content/browser/frame_host/render_frame_host_factory.h" |
#include "content/browser/frame_host/render_frame_host_impl.h" |
@@ -27,6 +29,7 @@ |
#include "content/browser/site_instance_impl.h" |
#include "content/browser/webui/web_ui_controller_factory_registry.h" |
#include "content/browser/webui/web_ui_impl.h" |
+#include "content/common/frame_messages.h" |
#include "content/common/view_messages.h" |
#include "content/public/browser/content_browser_client.h" |
#include "content/public/browser/notification_service.h" |
@@ -567,6 +570,22 @@ void RenderFrameHostManager::ResetProxyHosts() { |
STLDeleteValues(&proxy_hosts_); |
} |
+void RenderFrameHostManager::BeginNavigation( |
+ const FrameHostMsg_BeginNavigation_Params& params) { |
+ NavigationRequestInfo info(params); |
+ FrameTreeNode* node = render_frame_host_->frame_tree_node(); |
+ |
+ info.first_party_for_cookies = node->IsMainFrame() ? |
+ params.url : node->frame_tree()->root()->current_url(); |
+ info.is_main_frame = node->IsMainFrame(); |
+ info.parent_is_main_frame = node->parent()->IsMainFrame(); |
+ info.is_showing = GetRenderWidgetHostView()->IsShowing(); |
+ |
+ navigation_request_.reset(new NavigationRequest()); |
+ navigation_request_->BeginNavigation( |
+ info, params.request_body, node->frame_tree_node_id()); |
+} |
+ |
void RenderFrameHostManager::Observe( |
int type, |
const NotificationSource& source, |