| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 class MediaPermissionDispatcher; | 147 class MediaPermissionDispatcher; |
| 148 class NavigationState; | 148 class NavigationState; |
| 149 class PepperPluginInstanceImpl; | 149 class PepperPluginInstanceImpl; |
| 150 class PresentationDispatcher; | 150 class PresentationDispatcher; |
| 151 class PushMessagingClient; | 151 class PushMessagingClient; |
| 152 class RelatedAppsFetcher; | 152 class RelatedAppsFetcher; |
| 153 class RenderAccessibilityImpl; | 153 class RenderAccessibilityImpl; |
| 154 class RendererMediaPlayerManager; | 154 class RendererMediaPlayerManager; |
| 155 class RendererPpapiHost; | 155 class RendererPpapiHost; |
| 156 class RenderFrameObserver; | 156 class RenderFrameObserver; |
| 157 class RenderMediaLog; |
| 157 class RenderViewImpl; | 158 class RenderViewImpl; |
| 158 class RenderWidget; | 159 class RenderWidget; |
| 159 class RenderWidgetFullscreenPepper; | 160 class RenderWidgetFullscreenPepper; |
| 160 class ResourceRequestBodyImpl; | 161 class ResourceRequestBodyImpl; |
| 161 class ScreenOrientationDispatcher; | 162 class ScreenOrientationDispatcher; |
| 162 class SharedWorkerRepository; | 163 class SharedWorkerRepository; |
| 163 class UserMediaClientImpl; | 164 class UserMediaClientImpl; |
| 164 struct CSPViolationParams; | 165 struct CSPViolationParams; |
| 165 struct CommonNavigationParams; | 166 struct CommonNavigationParams; |
| 166 struct CustomContextMenuContext; | 167 struct CustomContextMenuContext; |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 // Sends a reply to the current find operation handling if it was a | 1116 // Sends a reply to the current find operation handling if it was a |
| 1116 // synchronous find request. | 1117 // synchronous find request. |
| 1117 void SendFindReply(int request_id, | 1118 void SendFindReply(int request_id, |
| 1118 int match_count, | 1119 int match_count, |
| 1119 int ordinal, | 1120 int ordinal, |
| 1120 const blink::WebRect& selection_rect, | 1121 const blink::WebRect& selection_rect, |
| 1121 bool final_status_update); | 1122 bool final_status_update); |
| 1122 | 1123 |
| 1123 void InitializeBlameContext(RenderFrameImpl* parent_frame); | 1124 void InitializeBlameContext(RenderFrameImpl* parent_frame); |
| 1124 | 1125 |
| 1126 // Lazy constructs a RenderMediaLog for use across owned media objects. |
| 1127 const scoped_refptr<RenderMediaLog>& GetMediaLog(); |
| 1128 |
| 1125 // Stores the WebLocalFrame we are associated with. This is null from the | 1129 // Stores the WebLocalFrame we are associated with. This is null from the |
| 1126 // constructor until BindToWebFrame is called, and it is null after | 1130 // constructor until BindToWebFrame is called, and it is null after |
| 1127 // frameDetached is called until destruction (which is asynchronous in the | 1131 // frameDetached is called until destruction (which is asynchronous in the |
| 1128 // case of the main frame, but not subframes). | 1132 // case of the main frame, but not subframes). |
| 1129 blink::WebLocalFrame* frame_; | 1133 blink::WebLocalFrame* frame_; |
| 1130 | 1134 |
| 1131 // Boolean value indicating whether this RenderFrameImpl object is for the | 1135 // Boolean value indicating whether this RenderFrameImpl object is for the |
| 1132 // main frame or not. It remains accurate during destruction, even when | 1136 // main frame or not. It remains accurate during destruction, even when |
| 1133 // |frame_| has been invalidated. | 1137 // |frame_| has been invalidated. |
| 1134 bool is_main_frame_; | 1138 bool is_main_frame_; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1235 // of handling a InputMsg_SelectRange IPC. | 1239 // of handling a InputMsg_SelectRange IPC. |
| 1236 bool handling_select_range_; | 1240 bool handling_select_range_; |
| 1237 | 1241 |
| 1238 // The next group of objects all implement RenderFrameObserver, so are deleted | 1242 // The next group of objects all implement RenderFrameObserver, so are deleted |
| 1239 // along with the RenderFrame automatically. This is why we just store weak | 1243 // along with the RenderFrame automatically. This is why we just store weak |
| 1240 // references. | 1244 // references. |
| 1241 | 1245 |
| 1242 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. | 1246 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. |
| 1243 UserMediaClientImpl* web_user_media_client_; | 1247 UserMediaClientImpl* web_user_media_client_; |
| 1244 | 1248 |
| 1249 scoped_refptr<RenderMediaLog> media_log_; |
| 1250 |
| 1245 // EncryptedMediaClient attached to this frame; lazily initialized. | 1251 // EncryptedMediaClient attached to this frame; lazily initialized. |
| 1246 std::unique_ptr<media::WebEncryptedMediaClientImpl> | 1252 std::unique_ptr<media::WebEncryptedMediaClientImpl> |
| 1247 web_encrypted_media_client_; | 1253 web_encrypted_media_client_; |
| 1248 | 1254 |
| 1249 // The media permission dispatcher attached to this frame. | 1255 // The media permission dispatcher attached to this frame. |
| 1250 std::unique_ptr<MediaPermissionDispatcher> media_permission_dispatcher_; | 1256 std::unique_ptr<MediaPermissionDispatcher> media_permission_dispatcher_; |
| 1251 | 1257 |
| 1252 #if defined(ENABLE_MOJO_MEDIA) | 1258 #if defined(ENABLE_MOJO_MEDIA) |
| 1253 // The media interface provider attached to this frame, lazily initialized. | 1259 // The media interface provider attached to this frame, lazily initialized. |
| 1254 std::unique_ptr<MediaInterfaceProvider> media_interface_provider_; | 1260 std::unique_ptr<MediaInterfaceProvider> media_interface_provider_; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1426 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; | 1432 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; |
| 1427 | 1433 |
| 1428 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1434 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1429 | 1435 |
| 1430 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1436 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1431 }; | 1437 }; |
| 1432 | 1438 |
| 1433 } // namespace content | 1439 } // namespace content |
| 1434 | 1440 |
| 1435 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1441 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |