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 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 // Sends a reply to the current find operation handling if it was a | 1112 // Sends a reply to the current find operation handling if it was a |
1112 // synchronous find request. | 1113 // synchronous find request. |
1113 void SendFindReply(int request_id, | 1114 void SendFindReply(int request_id, |
1114 int match_count, | 1115 int match_count, |
1115 int ordinal, | 1116 int ordinal, |
1116 const blink::WebRect& selection_rect, | 1117 const blink::WebRect& selection_rect, |
1117 bool final_status_update); | 1118 bool final_status_update); |
1118 | 1119 |
1119 void InitializeBlameContext(RenderFrameImpl* parent_frame); | 1120 void InitializeBlameContext(RenderFrameImpl* parent_frame); |
1120 | 1121 |
| 1122 // Lazy constructs a RenderMediaLog for use across owned media objects. |
| 1123 const scoped_refptr<RenderMediaLog>& GetMediaLog(); |
| 1124 |
1121 // Stores the WebLocalFrame we are associated with. This is null from the | 1125 // Stores the WebLocalFrame we are associated with. This is null from the |
1122 // constructor until BindToWebFrame is called, and it is null after | 1126 // constructor until BindToWebFrame is called, and it is null after |
1123 // frameDetached is called until destruction (which is asynchronous in the | 1127 // frameDetached is called until destruction (which is asynchronous in the |
1124 // case of the main frame, but not subframes). | 1128 // case of the main frame, but not subframes). |
1125 blink::WebLocalFrame* frame_; | 1129 blink::WebLocalFrame* frame_; |
1126 | 1130 |
1127 // Boolean value indicating whether this RenderFrameImpl object is for the | 1131 // Boolean value indicating whether this RenderFrameImpl object is for the |
1128 // main frame or not. It remains accurate during destruction, even when | 1132 // main frame or not. It remains accurate during destruction, even when |
1129 // |frame_| has been invalidated. | 1133 // |frame_| has been invalidated. |
1130 bool is_main_frame_; | 1134 bool is_main_frame_; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 // of handling a InputMsg_SelectRange IPC. | 1235 // of handling a InputMsg_SelectRange IPC. |
1232 bool handling_select_range_; | 1236 bool handling_select_range_; |
1233 | 1237 |
1234 // The next group of objects all implement RenderFrameObserver, so are deleted | 1238 // The next group of objects all implement RenderFrameObserver, so are deleted |
1235 // along with the RenderFrame automatically. This is why we just store weak | 1239 // along with the RenderFrame automatically. This is why we just store weak |
1236 // references. | 1240 // references. |
1237 | 1241 |
1238 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. | 1242 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. |
1239 UserMediaClientImpl* web_user_media_client_; | 1243 UserMediaClientImpl* web_user_media_client_; |
1240 | 1244 |
| 1245 scoped_refptr<RenderMediaLog> media_log_; |
| 1246 |
1241 // EncryptedMediaClient attached to this frame; lazily initialized. | 1247 // EncryptedMediaClient attached to this frame; lazily initialized. |
1242 std::unique_ptr<media::WebEncryptedMediaClientImpl> | 1248 std::unique_ptr<media::WebEncryptedMediaClientImpl> |
1243 web_encrypted_media_client_; | 1249 web_encrypted_media_client_; |
1244 | 1250 |
1245 // The media permission dispatcher attached to this frame. | 1251 // The media permission dispatcher attached to this frame. |
1246 std::unique_ptr<MediaPermissionDispatcher> media_permission_dispatcher_; | 1252 std::unique_ptr<MediaPermissionDispatcher> media_permission_dispatcher_; |
1247 | 1253 |
1248 #if defined(ENABLE_MOJO_MEDIA) | 1254 #if defined(ENABLE_MOJO_MEDIA) |
1249 // The media interface provider attached to this frame, lazily initialized. | 1255 // The media interface provider attached to this frame, lazily initialized. |
1250 std::unique_ptr<MediaInterfaceProvider> media_interface_provider_; | 1256 std::unique_ptr<MediaInterfaceProvider> media_interface_provider_; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1423 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; | 1429 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; |
1424 | 1430 |
1425 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1431 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1426 | 1432 |
1427 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1433 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1428 }; | 1434 }; |
1429 | 1435 |
1430 } // namespace content | 1436 } // namespace content |
1431 | 1437 |
1432 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1438 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |