OLD | NEW |
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 class RendererAccessibility; | 140 class RendererAccessibility; |
141 class RendererCdmManager; | 141 class RendererCdmManager; |
142 class RendererMediaPlayerManager; | 142 class RendererMediaPlayerManager; |
143 class RendererMediaSessionManager; | 143 class RendererMediaSessionManager; |
144 class RendererPpapiHost; | 144 class RendererPpapiHost; |
145 class RendererSurfaceViewManager; | 145 class RendererSurfaceViewManager; |
146 class RenderFrameObserver; | 146 class RenderFrameObserver; |
147 class RenderViewImpl; | 147 class RenderViewImpl; |
148 class RenderWidget; | 148 class RenderWidget; |
149 class RenderWidgetFullscreenPepper; | 149 class RenderWidgetFullscreenPepper; |
| 150 class ResourceRequestBody; |
150 class ScreenOrientationDispatcher; | 151 class ScreenOrientationDispatcher; |
151 class UserMediaClientImpl; | 152 class UserMediaClientImpl; |
152 class WakeLockDispatcher; | 153 class WakeLockDispatcher; |
153 struct CommonNavigationParams; | 154 struct CommonNavigationParams; |
154 struct CustomContextMenuContext; | 155 struct CustomContextMenuContext; |
155 struct FrameReplicationState; | 156 struct FrameReplicationState; |
156 struct NavigationParams; | 157 struct NavigationParams; |
157 struct RequestNavigationParams; | 158 struct RequestNavigationParams; |
158 struct ResourceResponseHead; | 159 struct ResourceResponseHead; |
159 struct StartNavigationParams; | 160 struct StartNavigationParams; |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 void OnSetFrameOwnerProperties( | 795 void OnSetFrameOwnerProperties( |
795 const blink::WebFrameOwnerProperties& frame_owner_properties); | 796 const blink::WebFrameOwnerProperties& frame_owner_properties); |
796 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); | 797 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); |
797 void OnSetFocusedFrame(); | 798 void OnSetFocusedFrame(); |
798 void OnTextTrackSettingsChanged( | 799 void OnTextTrackSettingsChanged( |
799 const FrameMsg_TextTrackSettings_Params& params); | 800 const FrameMsg_TextTrackSettings_Params& params); |
800 void OnPostMessageEvent(const FrameMsg_PostMessage_Params& params); | 801 void OnPostMessageEvent(const FrameMsg_PostMessage_Params& params); |
801 void OnCommitNavigation(const ResourceResponseHead& response, | 802 void OnCommitNavigation(const ResourceResponseHead& response, |
802 const GURL& stream_url, | 803 const GURL& stream_url, |
803 const CommonNavigationParams& common_params, | 804 const CommonNavigationParams& common_params, |
804 const RequestNavigationParams& request_params); | 805 const RequestNavigationParams& request_params, |
| 806 scoped_refptr<ResourceRequestBody> post_data); |
805 void OnFailedNavigation(const CommonNavigationParams& common_params, | 807 void OnFailedNavigation(const CommonNavigationParams& common_params, |
806 const RequestNavigationParams& request_params, | 808 const RequestNavigationParams& request_params, |
807 bool has_stale_copy_in_cache, | 809 bool has_stale_copy_in_cache, |
808 int error_code); | 810 int error_code); |
809 void OnGetSavableResourceLinks(); | 811 void OnGetSavableResourceLinks(); |
810 void OnGetSerializedHtmlWithLocalLinks( | 812 void OnGetSerializedHtmlWithLocalLinks( |
811 const std::map<GURL, base::FilePath>& url_to_local_path, | 813 const std::map<GURL, base::FilePath>& url_to_local_path, |
812 const std::map<int, base::FilePath>& frame_routing_id_to_local_path); | 814 const std::map<int, base::FilePath>& frame_routing_id_to_local_path); |
813 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params); | 815 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params); |
814 void OnFind(int request_id, | 816 void OnFind(int request_id, |
(...skipping 27 matching lines...) Expand all Loading... |
842 // development). Currently used by OnNavigate, with all *NavigationParams | 844 // development). Currently used by OnNavigate, with all *NavigationParams |
843 // provided by the browser. |stream_params| should be null. | 845 // provided by the browser. |stream_params| should be null. |
844 // PlzNavigate: used by OnCommitNavigation, with |common_params| and | 846 // PlzNavigate: used by OnCommitNavigation, with |common_params| and |
845 // |request_params| received by the browser. |stream_params| should be non | 847 // |request_params| received by the browser. |stream_params| should be non |
846 // null and created from the information provided by the browser. | 848 // null and created from the information provided by the browser. |
847 // |start_params| is not used. | 849 // |start_params| is not used. |
848 void NavigateInternal( | 850 void NavigateInternal( |
849 const CommonNavigationParams& common_params, | 851 const CommonNavigationParams& common_params, |
850 const StartNavigationParams& start_params, | 852 const StartNavigationParams& start_params, |
851 const RequestNavigationParams& request_params, | 853 const RequestNavigationParams& request_params, |
852 std::unique_ptr<StreamOverrideParameters> stream_params); | 854 std::unique_ptr<StreamOverrideParameters> stream_params, |
| 855 scoped_refptr<ResourceRequestBody> body); |
853 | 856 |
854 // Update current main frame's encoding and send it to browser window. | 857 // Update current main frame's encoding and send it to browser window. |
855 // Since we want to let users see the right encoding info from menu | 858 // Since we want to let users see the right encoding info from menu |
856 // before finishing loading, we call the UpdateEncoding in | 859 // before finishing loading, we call the UpdateEncoding in |
857 // a) function:DidCommitLoadForFrame. When this function is called, | 860 // a) function:DidCommitLoadForFrame. When this function is called, |
858 // that means we have got first data. In here we try to get encoding | 861 // that means we have got first data. In here we try to get encoding |
859 // of page if it has been specified in http header. | 862 // of page if it has been specified in http header. |
860 // b) function:DidReceiveTitle. When this function is called, | 863 // b) function:DidReceiveTitle. When this function is called, |
861 // that means we have got specified title. Because in most of webpages, | 864 // that means we have got specified title. Because in most of webpages, |
862 // title tags will follow meta tags. In here we try to get encoding of | 865 // 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 Loading... |
1243 #endif | 1246 #endif |
1244 | 1247 |
1245 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1248 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1246 | 1249 |
1247 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1250 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1248 }; | 1251 }; |
1249 | 1252 |
1250 } // namespace content | 1253 } // namespace content |
1251 | 1254 |
1252 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1255 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |