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

Unified Diff: content/renderer/render_frame_impl.h

Issue 1027863002: Move provisional navigation parameters to RenderFrame, and use the HistoryController to distribute … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: take 2 Created 5 years, 9 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/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 77b19aec12c3189b0578141f51bf5b5fa8868a9d..69e1eb9289431ab322929b41c7f3d2f6039ebe36 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -74,6 +74,7 @@ namespace content {
class ChildFrameCompositingHelper;
class CompositorDependencies;
+class DocumentState;
class ExternalPopupMenu;
class GeolocationDispatcher;
class ManifestManager;
@@ -81,6 +82,7 @@ class MediaStreamDispatcher;
class MediaStreamRendererFactory;
class MediaPermissionDispatcher;
class MidiDispatcher;
+class NavigationState;
class NotificationPermissionDispatcher;
class PageState;
class PepperPluginInstanceImpl;
@@ -103,6 +105,7 @@ struct CommonNavigationParams;
struct CustomContextMenuContext;
struct FrameReplicationState;
struct HistoryNavigationParams;
+struct NavigationParams;
struct RequestNavigationParams;
struct ResourceResponseHead;
struct StartNavigationParams;
@@ -547,6 +550,11 @@ class CONTENT_EXPORT RenderFrameImpl
ManifestManager* manifest_manager();
+ // TODO(creis): Remove when the only caller, the HistoryController, is no
+ // more.
+ void SetProvisionalNavigationParams(
+ scoped_ptr<NavigationParams> navigation_params);
+
protected:
RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id);
@@ -726,6 +734,14 @@ class CONTENT_EXPORT RenderFrameImpl
// Returns the URL being loaded by the |frame_|'s request.
GURL GetLoadingUrl() const;
+ // If we initiated a navigation, this function will populate |document_state|
+ // with the navigation information saved in OnNavigate().
+ void PopulateDocumentStateFromPending(DocumentState* document_state);
+
+ // Returns a new NavigationState populated with the navigation information
+ // saved in OnNavigate().
+ NavigationState* CreateNavigationStateFromPending();
+
#if defined(OS_ANDROID)
blink::WebMediaPlayer* CreateAndroidWebMediaPlayer(
const blink::WebURL& url,
@@ -768,6 +784,11 @@ class CONTENT_EXPORT RenderFrameImpl
// own RenderWidgets.
scoped_refptr<RenderWidget> render_widget_;
+ // Temporarily holds state pertaining to a navigation that has been initiated
+ // until the NavigationState corresponding to the new navigation is created in
+ // didCreateDataSource().
+ scoped_ptr<NavigationParams> provisional_navigation_params_;
Charlie Reis 2015/03/23 22:23:02 I've always considered "provisional" as the Blink
Avi (use Gerrit) 2015/03/24 20:33:46 That's OK with me. I called it "pending" because
+
#if defined(ENABLE_PLUGINS)
// Current text input composition text. Empty if no composition is in
// progress.

Powered by Google App Engine
This is Rietveld 408576698