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

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

Issue 1907443006: PlzNavigate: store POST data in the FrameNavigationEntry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 class RendererAccessibility; 141 class RendererAccessibility;
142 class RendererCdmManager; 142 class RendererCdmManager;
143 class RendererMediaPlayerManager; 143 class RendererMediaPlayerManager;
144 class RendererMediaSessionManager; 144 class RendererMediaSessionManager;
145 class RendererPpapiHost; 145 class RendererPpapiHost;
146 class RendererSurfaceViewManager; 146 class RendererSurfaceViewManager;
147 class RenderFrameObserver; 147 class RenderFrameObserver;
148 class RenderViewImpl; 148 class RenderViewImpl;
149 class RenderWidget; 149 class RenderWidget;
150 class RenderWidgetFullscreenPepper; 150 class RenderWidgetFullscreenPepper;
151 class ResourceRequestBody;
151 class ScreenOrientationDispatcher; 152 class ScreenOrientationDispatcher;
152 class UserMediaClientImpl; 153 class UserMediaClientImpl;
153 class WakeLockDispatcher; 154 class WakeLockDispatcher;
154 struct CommonNavigationParams; 155 struct CommonNavigationParams;
155 struct CustomContextMenuContext; 156 struct CustomContextMenuContext;
156 struct FrameReplicationState; 157 struct FrameReplicationState;
157 struct NavigationParams; 158 struct NavigationParams;
158 struct RequestNavigationParams; 159 struct RequestNavigationParams;
159 struct ResourceResponseHead; 160 struct ResourceResponseHead;
160 struct StartNavigationParams; 161 struct StartNavigationParams;
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 void OnSetFrameOwnerProperties( 777 void OnSetFrameOwnerProperties(
777 const blink::WebFrameOwnerProperties& frame_owner_properties); 778 const blink::WebFrameOwnerProperties& frame_owner_properties);
778 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); 779 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id);
779 void OnSetFocusedFrame(); 780 void OnSetFocusedFrame();
780 void OnTextTrackSettingsChanged( 781 void OnTextTrackSettingsChanged(
781 const FrameMsg_TextTrackSettings_Params& params); 782 const FrameMsg_TextTrackSettings_Params& params);
782 void OnPostMessageEvent(const FrameMsg_PostMessage_Params& params); 783 void OnPostMessageEvent(const FrameMsg_PostMessage_Params& params);
783 void OnCommitNavigation(const ResourceResponseHead& response, 784 void OnCommitNavigation(const ResourceResponseHead& response,
784 const GURL& stream_url, 785 const GURL& stream_url,
785 const CommonNavigationParams& common_params, 786 const CommonNavigationParams& common_params,
786 const RequestNavigationParams& request_params); 787 const RequestNavigationParams& request_params,
788 scoped_refptr<ResourceRequestBody> post_data);
787 void OnFailedNavigation(const CommonNavigationParams& common_params, 789 void OnFailedNavigation(const CommonNavigationParams& common_params,
788 const RequestNavigationParams& request_params, 790 const RequestNavigationParams& request_params,
789 bool has_stale_copy_in_cache, 791 bool has_stale_copy_in_cache,
790 int error_code); 792 int error_code);
791 void OnGetSavableResourceLinks(); 793 void OnGetSavableResourceLinks();
792 void OnGetSerializedHtmlWithLocalLinks( 794 void OnGetSerializedHtmlWithLocalLinks(
793 const std::map<GURL, base::FilePath>& url_to_local_path, 795 const std::map<GURL, base::FilePath>& url_to_local_path,
794 const std::map<int, base::FilePath>& frame_routing_id_to_local_path); 796 const std::map<int, base::FilePath>& frame_routing_id_to_local_path);
795 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params); 797 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params);
796 void OnFind(int request_id, 798 void OnFind(int request_id,
(...skipping 27 matching lines...) Expand all
824 // development). Currently used by OnNavigate, with all *NavigationParams 826 // development). Currently used by OnNavigate, with all *NavigationParams
825 // provided by the browser. |stream_params| should be null. 827 // provided by the browser. |stream_params| should be null.
826 // PlzNavigate: used by OnCommitNavigation, with |common_params| and 828 // PlzNavigate: used by OnCommitNavigation, with |common_params| and
827 // |request_params| received by the browser. |stream_params| should be non 829 // |request_params| received by the browser. |stream_params| should be non
828 // null and created from the information provided by the browser. 830 // null and created from the information provided by the browser.
829 // |start_params| is not used. 831 // |start_params| is not used.
830 void NavigateInternal( 832 void NavigateInternal(
831 const CommonNavigationParams& common_params, 833 const CommonNavigationParams& common_params,
832 const StartNavigationParams& start_params, 834 const StartNavigationParams& start_params,
833 const RequestNavigationParams& request_params, 835 const RequestNavigationParams& request_params,
834 std::unique_ptr<StreamOverrideParameters> stream_params); 836 std::unique_ptr<StreamOverrideParameters> stream_params,
837 scoped_refptr<ResourceRequestBody> body);
835 838
836 // Update current main frame's encoding and send it to browser window. 839 // Update current main frame's encoding and send it to browser window.
837 // Since we want to let users see the right encoding info from menu 840 // Since we want to let users see the right encoding info from menu
838 // before finishing loading, we call the UpdateEncoding in 841 // before finishing loading, we call the UpdateEncoding in
839 // a) function:DidCommitLoadForFrame. When this function is called, 842 // a) function:DidCommitLoadForFrame. When this function is called,
840 // that means we have got first data. In here we try to get encoding 843 // that means we have got first data. In here we try to get encoding
841 // of page if it has been specified in http header. 844 // of page if it has been specified in http header.
842 // b) function:DidReceiveTitle. When this function is called, 845 // b) function:DidReceiveTitle. When this function is called,
843 // that means we have got specified title. Because in most of webpages, 846 // that means we have got specified title. Because in most of webpages,
844 // title tags will follow meta tags. In here we try to get encoding of 847 // title tags will follow meta tags. In here we try to get encoding of
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 FrameBlameContext* blame_context_; // Not owned. 1218 FrameBlameContext* blame_context_; // Not owned.
1216 1219
1217 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1220 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1218 1221
1219 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1222 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1220 }; 1223 };
1221 1224
1222 } // namespace content 1225 } // namespace content
1223 1226
1224 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1227 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698