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 16 matching lines...) Expand all Loading... |
27 #include "base/single_thread_task_runner.h" | 27 #include "base/single_thread_task_runner.h" |
28 #include "build/build_config.h" | 28 #include "build/build_config.h" |
29 #include "content/common/accessibility_mode.h" | 29 #include "content/common/accessibility_mode.h" |
30 #include "content/common/associated_interface_registry_impl.h" | 30 #include "content/common/associated_interface_registry_impl.h" |
31 #include "content/common/download/mhtml_save_status.h" | 31 #include "content/common/download/mhtml_save_status.h" |
32 #include "content/common/features.h" | 32 #include "content/common/features.h" |
33 #include "content/common/frame.mojom.h" | 33 #include "content/common/frame.mojom.h" |
34 #include "content/common/frame_message_enums.h" | 34 #include "content/common/frame_message_enums.h" |
35 #include "content/common/host_zoom.mojom.h" | 35 #include "content/common/host_zoom.mojom.h" |
36 #include "content/common/renderer.mojom.h" | 36 #include "content/common/renderer.mojom.h" |
| 37 #include "content/common/url_loader_factory.mojom.h" |
37 #include "content/public/common/console_message_level.h" | 38 #include "content/public/common/console_message_level.h" |
38 #include "content/public/common/javascript_dialog_type.h" | 39 #include "content/public/common/javascript_dialog_type.h" |
39 #include "content/public/common/previews_state.h" | 40 #include "content/public/common/previews_state.h" |
40 #include "content/public/common/referrer.h" | 41 #include "content/public/common/referrer.h" |
41 #include "content/public/common/request_context_type.h" | 42 #include "content/public/common/request_context_type.h" |
42 #include "content/public/common/stop_find_action.h" | 43 #include "content/public/common/stop_find_action.h" |
43 #include "content/public/renderer/render_frame.h" | 44 #include "content/public/renderer/render_frame.h" |
44 #include "content/renderer/frame_blame_context.h" | 45 #include "content/renderer/frame_blame_context.h" |
45 #include "content/renderer/mojo/blink_interface_provider_impl.h" | 46 #include "content/renderer/mojo/blink_interface_provider_impl.h" |
46 #include "content/renderer/renderer_webcookiejar_impl.h" | 47 #include "content/renderer/renderer_webcookiejar_impl.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 #include "url/origin.h" | 80 #include "url/origin.h" |
80 | 81 |
81 #if BUILDFLAG(ENABLE_PLUGINS) | 82 #if BUILDFLAG(ENABLE_PLUGINS) |
82 #include "content/renderer/pepper/plugin_power_saver_helper.h" | 83 #include "content/renderer/pepper/plugin_power_saver_helper.h" |
83 #endif | 84 #endif |
84 | 85 |
85 #if defined(OS_ANDROID) | 86 #if defined(OS_ANDROID) |
86 #include "content/renderer/media/android/renderer_media_player_manager.h" | 87 #include "content/renderer/media/android/renderer_media_player_manager.h" |
87 #endif | 88 #endif |
88 | 89 |
| 90 struct FrameMsg_CommitDataNetworkService_Params; |
89 struct FrameMsg_MixedContentFound_Params; | 91 struct FrameMsg_MixedContentFound_Params; |
90 struct FrameMsg_PostMessage_Params; | 92 struct FrameMsg_PostMessage_Params; |
91 struct FrameMsg_SerializeAsMHTML_Params; | 93 struct FrameMsg_SerializeAsMHTML_Params; |
92 struct FrameMsg_TextTrackSettings_Params; | 94 struct FrameMsg_TextTrackSettings_Params; |
93 | 95 |
94 namespace blink { | 96 namespace blink { |
95 class WebContentDecryptionModule; | 97 class WebContentDecryptionModule; |
96 class WebPresentationClient; | 98 class WebPresentationClient; |
97 class WebPushClient; | 99 class WebPushClient; |
98 class WebSecurityOrigin; | 100 class WebSecurityOrigin; |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance); | 749 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance); |
748 | 750 |
749 // Notification that the given plugin is focused or unfocused. | 751 // Notification that the given plugin is focused or unfocused. |
750 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused); | 752 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused); |
751 | 753 |
752 void PepperStartsPlayback(PepperPluginInstanceImpl* instance); | 754 void PepperStartsPlayback(PepperPluginInstanceImpl* instance); |
753 void PepperStopsPlayback(PepperPluginInstanceImpl* instance); | 755 void PepperStopsPlayback(PepperPluginInstanceImpl* instance); |
754 void OnSetPepperVolume(int32_t pp_instance, double volume); | 756 void OnSetPepperVolume(int32_t pp_instance, double volume); |
755 #endif // ENABLE_PLUGINS | 757 #endif // ENABLE_PLUGINS |
756 | 758 |
| 759 mojom::URLLoaderFactory* GetURLLoaderFactory() { |
| 760 return url_loader_factory_.get(); |
| 761 } |
| 762 |
757 protected: | 763 protected: |
758 explicit RenderFrameImpl(const CreateParams& params); | 764 explicit RenderFrameImpl(const CreateParams& params); |
759 | 765 |
760 private: | 766 private: |
761 friend class RenderFrameImplTest; | 767 friend class RenderFrameImplTest; |
762 friend class RenderFrameObserver; | 768 friend class RenderFrameObserver; |
763 friend class RenderAccessibilityImplTest; | 769 friend class RenderAccessibilityImplTest; |
764 friend class TestRenderFrame; | 770 friend class TestRenderFrame; |
765 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); | 771 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); |
766 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 772 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 void OnDidUpdateFramePolicy( | 899 void OnDidUpdateFramePolicy( |
894 blink::WebSandboxFlags flags, | 900 blink::WebSandboxFlags flags, |
895 const ParsedFeaturePolicyHeader& container_policy); | 901 const ParsedFeaturePolicyHeader& container_policy); |
896 void OnSetFrameOwnerProperties( | 902 void OnSetFrameOwnerProperties( |
897 const FrameOwnerProperties& frame_owner_properties); | 903 const FrameOwnerProperties& frame_owner_properties); |
898 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); | 904 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); |
899 void OnSetFocusedFrame(); | 905 void OnSetFocusedFrame(); |
900 void OnTextTrackSettingsChanged( | 906 void OnTextTrackSettingsChanged( |
901 const FrameMsg_TextTrackSettings_Params& params); | 907 const FrameMsg_TextTrackSettings_Params& params); |
902 void OnPostMessageEvent(const FrameMsg_PostMessage_Params& params); | 908 void OnPostMessageEvent(const FrameMsg_PostMessage_Params& params); |
903 void OnCommitNavigation(const ResourceResponseHead& response, | 909 void OnCommitNavigation( |
904 const GURL& stream_url, | 910 const ResourceResponseHead& response, |
905 mojo::DataPipeConsumerHandle handle, | 911 const GURL& stream_url, |
906 const CommonNavigationParams& common_params, | 912 const FrameMsg_CommitDataNetworkService_Params& commit_data, |
907 const RequestNavigationParams& request_params); | 913 const CommonNavigationParams& common_params, |
| 914 const RequestNavigationParams& request_params); |
908 void OnFailedNavigation(const CommonNavigationParams& common_params, | 915 void OnFailedNavigation(const CommonNavigationParams& common_params, |
909 const RequestNavigationParams& request_params, | 916 const RequestNavigationParams& request_params, |
910 bool has_stale_copy_in_cache, | 917 bool has_stale_copy_in_cache, |
911 int error_code); | 918 int error_code); |
912 void OnReportContentSecurityPolicyViolation( | 919 void OnReportContentSecurityPolicyViolation( |
913 const content::CSPViolationParams& violation_params); | 920 const content::CSPViolationParams& violation_params); |
914 void OnGetSavableResourceLinks(); | 921 void OnGetSavableResourceLinks(); |
915 void OnGetSerializedHtmlWithLocalLinks( | 922 void OnGetSerializedHtmlWithLocalLinks( |
916 const std::map<GURL, base::FilePath>& url_to_local_path, | 923 const std::map<GURL, base::FilePath>& url_to_local_path, |
917 const std::map<int, base::FilePath>& frame_routing_id_to_local_path); | 924 const std::map<int, base::FilePath>& frame_routing_id_to_local_path); |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1431 }; | 1438 }; |
1432 | 1439 |
1433 // PlzNavigate: Contains information about a pending navigation to be sent to | 1440 // PlzNavigate: Contains information about a pending navigation to be sent to |
1434 // the browser. This state is allocated in decidePolicyForNavigation() and | 1441 // the browser. This state is allocated in decidePolicyForNavigation() and |
1435 // is used and released in didStartProvisionalLoad(). | 1442 // is used and released in didStartProvisionalLoad(). |
1436 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; | 1443 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; |
1437 | 1444 |
1438 mojo::BindingSet<service_manager::mojom::InterfaceProvider> | 1445 mojo::BindingSet<service_manager::mojom::InterfaceProvider> |
1439 interface_provider_bindings_; | 1446 interface_provider_bindings_; |
1440 | 1447 |
| 1448 mojom::URLLoaderFactoryPtr url_loader_factory_; |
| 1449 |
1441 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1450 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1442 | 1451 |
1443 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1452 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1444 }; | 1453 }; |
1445 | 1454 |
1446 } // namespace content | 1455 } // namespace content |
1447 | 1456 |
1448 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1457 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |