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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 979443002: PlzNavigate: send history params at commit time to the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
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 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 class RenderViewImpl; 96 class RenderViewImpl;
97 class RenderWidget; 97 class RenderWidget;
98 class RenderWidgetFullscreenPepper; 98 class RenderWidgetFullscreenPepper;
99 class ScreenOrientationDispatcher; 99 class ScreenOrientationDispatcher;
100 class UserMediaClientImpl; 100 class UserMediaClientImpl;
101 enum class SandboxFlags; 101 enum class SandboxFlags;
102 struct CommitNavigationParams; 102 struct CommitNavigationParams;
103 struct CommonNavigationParams; 103 struct CommonNavigationParams;
104 struct CustomContextMenuContext; 104 struct CustomContextMenuContext;
105 struct FrameReplicationState; 105 struct FrameReplicationState;
106 struct HistoryNavigationParams;
106 struct RequestNavigationParams; 107 struct RequestNavigationParams;
107 struct ResourceResponseHead; 108 struct ResourceResponseHead;
108 109
109 class CONTENT_EXPORT RenderFrameImpl 110 class CONTENT_EXPORT RenderFrameImpl
110 : public RenderFrame, 111 : public RenderFrame,
111 NON_EXPORTED_BASE(public blink::WebFrameClient), 112 NON_EXPORTED_BASE(public blink::WebFrameClient),
112 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { 113 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) {
113 public: 114 public:
114 // Creates a new RenderFrame. |render_view| is the RenderView object that this 115 // Creates a new RenderFrame. |render_view| is the RenderView object that this
115 // frame belongs to. 116 // frame belongs to.
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 void OnSelectPopupMenuItems(bool canceled, 627 void OnSelectPopupMenuItems(bool canceled,
627 const std::vector<int>& selected_indices); 628 const std::vector<int>& selected_indices);
628 #elif defined(OS_MACOSX) 629 #elif defined(OS_MACOSX)
629 void OnSelectPopupMenuItem(int selected_index); 630 void OnSelectPopupMenuItem(int selected_index);
630 void OnCopyToFindPboard(); 631 void OnCopyToFindPboard();
631 #endif 632 #endif
632 633
633 void OnCommitNavigation(const ResourceResponseHead& response, 634 void OnCommitNavigation(const ResourceResponseHead& response,
634 const GURL& stream_url, 635 const GURL& stream_url,
635 const CommonNavigationParams& common_params, 636 const CommonNavigationParams& common_params,
636 const CommitNavigationParams& commit_params); 637 const CommitNavigationParams& commit_params,
638 const HistoryNavigationParams& history_params);
637 639
638 // Virtual since overridden by WebTestProxy for layout tests. 640 // Virtual since overridden by WebTestProxy for layout tests.
639 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( 641 virtual blink::WebNavigationPolicy DecidePolicyForNavigation(
640 RenderFrame* render_frame, 642 RenderFrame* render_frame,
641 const NavigationPolicyInfo& info); 643 const NavigationPolicyInfo& info);
642 void OpenURL(blink::WebFrame* frame, 644 void OpenURL(blink::WebFrame* frame,
643 const GURL& url, 645 const GURL& url,
644 const Referrer& referrer, 646 const Referrer& referrer,
645 blink::WebNavigationPolicy policy); 647 blink::WebNavigationPolicy policy);
646 648
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 // Creates a factory object used for creating audio and video renderers. 696 // Creates a factory object used for creating audio and video renderers.
695 // The method is virtual so that layouttests can override it. 697 // The method is virtual so that layouttests can override it.
696 virtual scoped_ptr<MediaStreamRendererFactory> CreateRendererFactory(); 698 virtual scoped_ptr<MediaStreamRendererFactory> CreateRendererFactory();
697 699
698 // Checks that the RenderView is ready to display the navigation to |url|. If 700 // Checks that the RenderView is ready to display the navigation to |url|. If
699 // the return value is false, the navigation should be abandoned. 701 // the return value is false, the navigation should be abandoned.
700 bool PrepareRenderViewForNavigation( 702 bool PrepareRenderViewForNavigation(
701 const GURL& url, 703 const GURL& url,
702 bool check_for_stale_navigation, 704 bool check_for_stale_navigation,
703 bool is_history_navigation, 705 bool is_history_navigation,
704 int current_history_list_offset, 706 const HistoryNavigationParams& history_params,
705 bool* is_reload, 707 bool* is_reload,
706 blink::WebURLRequest::CachePolicy* cache_policy); 708 blink::WebURLRequest::CachePolicy* cache_policy);
707 709
708 // PlzNavigate 710 // PlzNavigate
709 // Sends a FrameHostMsg_BeginNavigation to the browser based on the contents 711 // Sends a FrameHostMsg_BeginNavigation to the browser based on the contents
710 // of the WebURLRequest. 712 // of the WebURLRequest.
711 void BeginNavigation(blink::WebURLRequest* request); 713 void BeginNavigation(blink::WebURLRequest* request);
712 714
713 // Loads a data url. 715 // Loads a data url.
714 void LoadDataURL(const CommonNavigationParams& params, 716 void LoadDataURL(const CommonNavigationParams& params,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 #endif 876 #endif
875 877
876 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 878 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
877 879
878 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 880 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
879 }; 881 };
880 882
881 } // namespace content 883 } // namespace content
882 884
883 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 885 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698