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

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

Issue 1999943002: Moving HTTP POST body from StartNavigationParams to CommonNavigationParams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 void OnSetFrameOwnerProperties( 795 void OnSetFrameOwnerProperties(
796 const blink::WebFrameOwnerProperties& frame_owner_properties); 796 const blink::WebFrameOwnerProperties& frame_owner_properties);
797 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); 797 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id);
798 void OnSetFocusedFrame(); 798 void OnSetFocusedFrame();
799 void OnTextTrackSettingsChanged( 799 void OnTextTrackSettingsChanged(
800 const FrameMsg_TextTrackSettings_Params& params); 800 const FrameMsg_TextTrackSettings_Params& params);
801 void OnPostMessageEvent(const FrameMsg_PostMessage_Params& params); 801 void OnPostMessageEvent(const FrameMsg_PostMessage_Params& params);
802 void OnCommitNavigation(const ResourceResponseHead& response, 802 void OnCommitNavigation(const ResourceResponseHead& response,
803 const GURL& stream_url, 803 const GURL& stream_url,
804 const CommonNavigationParams& common_params, 804 const CommonNavigationParams& common_params,
805 const RequestNavigationParams& request_params, 805 const RequestNavigationParams& request_params);
806 scoped_refptr<ResourceRequestBody> post_data);
807 void OnFailedNavigation(const CommonNavigationParams& common_params, 806 void OnFailedNavigation(const CommonNavigationParams& common_params,
808 const RequestNavigationParams& request_params, 807 const RequestNavigationParams& request_params,
809 bool has_stale_copy_in_cache, 808 bool has_stale_copy_in_cache,
810 int error_code); 809 int error_code);
811 void OnGetSavableResourceLinks(); 810 void OnGetSavableResourceLinks();
812 void OnGetSerializedHtmlWithLocalLinks( 811 void OnGetSerializedHtmlWithLocalLinks(
813 const std::map<GURL, base::FilePath>& url_to_local_path, 812 const std::map<GURL, base::FilePath>& url_to_local_path,
814 const std::map<int, base::FilePath>& frame_routing_id_to_local_path); 813 const std::map<int, base::FilePath>& frame_routing_id_to_local_path);
815 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params); 814 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params);
816 void OnFind(int request_id, 815 void OnFind(int request_id,
(...skipping 27 matching lines...) Expand all
844 // development). Currently used by OnNavigate, with all *NavigationParams 843 // development). Currently used by OnNavigate, with all *NavigationParams
845 // provided by the browser. |stream_params| should be null. 844 // provided by the browser. |stream_params| should be null.
846 // PlzNavigate: used by OnCommitNavigation, with |common_params| and 845 // PlzNavigate: used by OnCommitNavigation, with |common_params| and
847 // |request_params| received by the browser. |stream_params| should be non 846 // |request_params| received by the browser. |stream_params| should be non
848 // null and created from the information provided by the browser. 847 // null and created from the information provided by the browser.
849 // |start_params| is not used. 848 // |start_params| is not used.
850 void NavigateInternal( 849 void NavigateInternal(
851 const CommonNavigationParams& common_params, 850 const CommonNavigationParams& common_params,
852 const StartNavigationParams& start_params, 851 const StartNavigationParams& start_params,
853 const RequestNavigationParams& request_params, 852 const RequestNavigationParams& request_params,
854 std::unique_ptr<StreamOverrideParameters> stream_params, 853 std::unique_ptr<StreamOverrideParameters> stream_params);
855 scoped_refptr<ResourceRequestBody> body);
856 854
857 // Update current main frame's encoding and send it to browser window. 855 // Update current main frame's encoding and send it to browser window.
858 // Since we want to let users see the right encoding info from menu 856 // Since we want to let users see the right encoding info from menu
859 // before finishing loading, we call the UpdateEncoding in 857 // before finishing loading, we call the UpdateEncoding in
860 // a) function:DidCommitLoadForFrame. When this function is called, 858 // a) function:DidCommitLoadForFrame. When this function is called,
861 // that means we have got first data. In here we try to get encoding 859 // that means we have got first data. In here we try to get encoding
862 // of page if it has been specified in http header. 860 // of page if it has been specified in http header.
863 // b) function:DidReceiveTitle. When this function is called, 861 // b) function:DidReceiveTitle. When this function is called,
864 // that means we have got specified title. Because in most of webpages, 862 // that means we have got specified title. Because in most of webpages,
865 // title tags will follow meta tags. In here we try to get encoding of 863 // title tags will follow meta tags. In here we try to get encoding of
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 #endif 1244 #endif
1247 1245
1248 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1246 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1249 1247
1250 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1248 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1251 }; 1249 };
1252 1250
1253 } // namespace content 1251 } // namespace content
1254 1252
1255 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1253 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698