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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 class RendererAccessibility; | 142 class RendererAccessibility; |
143 class RendererCdmManager; | 143 class RendererCdmManager; |
144 class RendererMediaPlayerManager; | 144 class RendererMediaPlayerManager; |
145 class RendererMediaSessionManager; | 145 class RendererMediaSessionManager; |
146 class RendererPpapiHost; | 146 class RendererPpapiHost; |
147 class RendererSurfaceViewManager; | 147 class RendererSurfaceViewManager; |
148 class RenderFrameObserver; | 148 class RenderFrameObserver; |
149 class RenderViewImpl; | 149 class RenderViewImpl; |
150 class RenderWidget; | 150 class RenderWidget; |
151 class RenderWidgetFullscreenPepper; | 151 class RenderWidgetFullscreenPepper; |
| 152 class ResourceRequestBody; |
152 class ScreenOrientationDispatcher; | 153 class ScreenOrientationDispatcher; |
153 class UserMediaClientImpl; | 154 class UserMediaClientImpl; |
154 class WakeLockDispatcher; | 155 class WakeLockDispatcher; |
155 struct CommonNavigationParams; | 156 struct CommonNavigationParams; |
156 struct CustomContextMenuContext; | 157 struct CustomContextMenuContext; |
157 struct FrameReplicationState; | 158 struct FrameReplicationState; |
158 struct NavigationParams; | 159 struct NavigationParams; |
159 struct RequestNavigationParams; | 160 struct RequestNavigationParams; |
160 struct ResourceResponseHead; | 161 struct ResourceResponseHead; |
161 struct StartNavigationParams; | 162 struct StartNavigationParams; |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 void OnSetFrameOwnerProperties( | 770 void OnSetFrameOwnerProperties( |
770 const blink::WebFrameOwnerProperties& frame_owner_properties); | 771 const blink::WebFrameOwnerProperties& frame_owner_properties); |
771 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); | 772 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); |
772 void OnSetFocusedFrame(); | 773 void OnSetFocusedFrame(); |
773 void OnTextTrackSettingsChanged( | 774 void OnTextTrackSettingsChanged( |
774 const FrameMsg_TextTrackSettings_Params& params); | 775 const FrameMsg_TextTrackSettings_Params& params); |
775 void OnPostMessageEvent(const FrameMsg_PostMessage_Params& params); | 776 void OnPostMessageEvent(const FrameMsg_PostMessage_Params& params); |
776 void OnCommitNavigation(const ResourceResponseHead& response, | 777 void OnCommitNavigation(const ResourceResponseHead& response, |
777 const GURL& stream_url, | 778 const GURL& stream_url, |
778 const CommonNavigationParams& common_params, | 779 const CommonNavigationParams& common_params, |
779 const RequestNavigationParams& request_params); | 780 const RequestNavigationParams& request_params, |
| 781 scoped_refptr<ResourceRequestBody> post_data); |
780 void OnFailedNavigation(const CommonNavigationParams& common_params, | 782 void OnFailedNavigation(const CommonNavigationParams& common_params, |
781 const RequestNavigationParams& request_params, | 783 const RequestNavigationParams& request_params, |
782 bool has_stale_copy_in_cache, | 784 bool has_stale_copy_in_cache, |
783 int error_code); | 785 int error_code); |
784 void OnGetSavableResourceLinks(); | 786 void OnGetSavableResourceLinks(); |
785 void OnGetSerializedHtmlWithLocalLinks( | 787 void OnGetSerializedHtmlWithLocalLinks( |
786 const std::map<GURL, base::FilePath>& url_to_local_path, | 788 const std::map<GURL, base::FilePath>& url_to_local_path, |
787 const std::map<int, base::FilePath>& frame_routing_id_to_local_path); | 789 const std::map<int, base::FilePath>& frame_routing_id_to_local_path); |
788 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params); | 790 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params); |
789 void OnFind(int request_id, | 791 void OnFind(int request_id, |
(...skipping 27 matching lines...) Expand all Loading... |
817 // development). Currently used by OnNavigate, with all *NavigationParams | 819 // development). Currently used by OnNavigate, with all *NavigationParams |
818 // provided by the browser. |stream_params| should be null. | 820 // provided by the browser. |stream_params| should be null. |
819 // PlzNavigate: used by OnCommitNavigation, with |common_params| and | 821 // PlzNavigate: used by OnCommitNavigation, with |common_params| and |
820 // |request_params| received by the browser. |stream_params| should be non | 822 // |request_params| received by the browser. |stream_params| should be non |
821 // null and created from the information provided by the browser. | 823 // null and created from the information provided by the browser. |
822 // |start_params| is not used. | 824 // |start_params| is not used. |
823 void NavigateInternal( | 825 void NavigateInternal( |
824 const CommonNavigationParams& common_params, | 826 const CommonNavigationParams& common_params, |
825 const StartNavigationParams& start_params, | 827 const StartNavigationParams& start_params, |
826 const RequestNavigationParams& request_params, | 828 const RequestNavigationParams& request_params, |
827 std::unique_ptr<StreamOverrideParameters> stream_params); | 829 std::unique_ptr<StreamOverrideParameters> stream_params, |
| 830 scoped_refptr<ResourceRequestBody> body); |
828 | 831 |
829 // Update current main frame's encoding and send it to browser window. | 832 // Update current main frame's encoding and send it to browser window. |
830 // Since we want to let users see the right encoding info from menu | 833 // Since we want to let users see the right encoding info from menu |
831 // before finishing loading, we call the UpdateEncoding in | 834 // before finishing loading, we call the UpdateEncoding in |
832 // a) function:DidCommitLoadForFrame. When this function is called, | 835 // a) function:DidCommitLoadForFrame. When this function is called, |
833 // that means we have got first data. In here we try to get encoding | 836 // that means we have got first data. In here we try to get encoding |
834 // of page if it has been specified in http header. | 837 // of page if it has been specified in http header. |
835 // b) function:DidReceiveTitle. When this function is called, | 838 // b) function:DidReceiveTitle. When this function is called, |
836 // that means we have got specified title. Because in most of webpages, | 839 // that means we have got specified title. Because in most of webpages, |
837 // title tags will follow meta tags. In here we try to get encoding of | 840 // title tags will follow meta tags. In here we try to get encoding of |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1206 FrameBlameContext* blame_context_; // Not owned. | 1209 FrameBlameContext* blame_context_; // Not owned. |
1207 | 1210 |
1208 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1211 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1209 | 1212 |
1210 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1213 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1211 }; | 1214 }; |
1212 | 1215 |
1213 } // namespace content | 1216 } // namespace content |
1214 | 1217 |
1215 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1218 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |