Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 519533002: Initial PlzNavigate RDH-side logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index e7659989eb5da1bf07e0303378f5cc2383f38e77..5a0ace942f38ee8923100beaf34ce3cfe2e95755 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -50,6 +50,7 @@
#include "content/public/browser/desktop_notification_delegate.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_widget_host_view.h"
+#include "content/public/browser/stream_handle.h"
#include "content/public/browser/user_metrics.h"
#include "content/public/common/content_constants.h"
#include "content/public/common/content_switches.h"
@@ -1379,16 +1380,21 @@ void RenderFrameHostImpl::NotificationClosed(int notification_id) {
// PlzNavigate
void RenderFrameHostImpl::CommitNavigation(
- const GURL& stream_url,
+ ResourceResponse* response,
+ scoped_ptr<StreamHandle> body,
const CommonNavigationParams& common_params,
const CommitNavigationParams& commit_params) {
// TODO(clamy): Check if we have to add security checks for the browser plugin
// guests.
Send(new FrameMsg_CommitNavigation(
- routing_id_, stream_url, common_params, commit_params));
+ routing_id_, response->head, body->GetURL(),
+ common_params, commit_params));
// TODO(clamy): Check if we should start the throbber for non javascript urls
// here.
+
+ // TODO(davidben): Retain |body| on behalf of the renderer, until the renderer
+ // is done with it.
}
void RenderFrameHostImpl::PlatformNotificationPermissionRequestDone(
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/frame_host/render_frame_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698