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 11 matching lines...) Expand all Loading... |
22 #include "base/process/process_handle.h" | 22 #include "base/process/process_handle.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "content/common/accessibility_mode_enums.h" | 24 #include "content/common/accessibility_mode_enums.h" |
25 #include "content/common/frame_message_enums.h" | 25 #include "content/common/frame_message_enums.h" |
26 #include "content/common/mojo/service_registry_impl.h" | 26 #include "content/common/mojo/service_registry_impl.h" |
27 #include "content/public/common/console_message_level.h" | 27 #include "content/public/common/console_message_level.h" |
28 #include "content/public/common/javascript_message_type.h" | 28 #include "content/public/common/javascript_message_type.h" |
29 #include "content/public/common/referrer.h" | 29 #include "content/public/common/referrer.h" |
30 #include "content/public/common/stop_find_action.h" | 30 #include "content/public/common/stop_find_action.h" |
31 #include "content/public/renderer/render_frame.h" | 31 #include "content/public/renderer/render_frame.h" |
| 32 #include "content/renderer/frame_blame_context.h" |
32 #include "content/renderer/render_frame_proxy.h" | 33 #include "content/renderer/render_frame_proxy.h" |
33 #include "content/renderer/renderer_webcookiejar_impl.h" | 34 #include "content/renderer/renderer_webcookiejar_impl.h" |
34 #include "ipc/ipc_message.h" | 35 #include "ipc/ipc_message.h" |
35 #include "ipc/ipc_platform_file.h" | 36 #include "ipc/ipc_platform_file.h" |
36 #include "media/blink/webmediaplayer_delegate.h" | 37 #include "media/blink/webmediaplayer_delegate.h" |
37 #include "media/blink/webmediaplayer_params.h" | 38 #include "media/blink/webmediaplayer_params.h" |
38 #include "mojo/shell/public/interfaces/connector.mojom.h" | 39 #include "mojo/shell/public/interfaces/connector.mojom.h" |
39 #include "mojo/shell/public/interfaces/interface_provider.mojom.h" | 40 #include "mojo/shell/public/interfaces/interface_provider.mojom.h" |
40 #include "third_party/WebKit/public/platform/WebFocusType.h" | 41 #include "third_party/WebKit/public/platform/WebFocusType.h" |
41 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" | 42 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 blink::WebMediaSession* media_session) override; | 423 blink::WebMediaSession* media_session) override; |
423 blink::WebMediaSession* createMediaSession() override; | 424 blink::WebMediaSession* createMediaSession() override; |
424 blink::WebApplicationCacheHost* createApplicationCacheHost( | 425 blink::WebApplicationCacheHost* createApplicationCacheHost( |
425 blink::WebApplicationCacheHostClient* client) override; | 426 blink::WebApplicationCacheHostClient* client) override; |
426 blink::WebWorkerContentSettingsClientProxy* | 427 blink::WebWorkerContentSettingsClientProxy* |
427 createWorkerContentSettingsClientProxy() override; | 428 createWorkerContentSettingsClientProxy() override; |
428 blink::WebExternalPopupMenu* createExternalPopupMenu( | 429 blink::WebExternalPopupMenu* createExternalPopupMenu( |
429 const blink::WebPopupMenuInfo& popup_menu_info, | 430 const blink::WebPopupMenuInfo& popup_menu_info, |
430 blink::WebExternalPopupMenuClient* popup_menu_client) override; | 431 blink::WebExternalPopupMenuClient* popup_menu_client) override; |
431 blink::WebCookieJar* cookieJar() override; | 432 blink::WebCookieJar* cookieJar() override; |
| 433 blink::BlameContext* frameBlameContext() override; |
432 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; | 434 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; |
433 void didAccessInitialDocument() override; | 435 void didAccessInitialDocument() override; |
434 blink::WebFrame* createChildFrame( | 436 blink::WebFrame* createChildFrame( |
435 blink::WebLocalFrame* parent, | 437 blink::WebLocalFrame* parent, |
436 blink::WebTreeScopeType scope, | 438 blink::WebTreeScopeType scope, |
437 const blink::WebString& name, | 439 const blink::WebString& name, |
438 const blink::WebString& unique_name, | 440 const blink::WebString& unique_name, |
439 blink::WebSandboxFlags sandbox_flags, | 441 blink::WebSandboxFlags sandbox_flags, |
440 const blink::WebFrameOwnerProperties& frame_owner_properties) override; | 442 const blink::WebFrameOwnerProperties& frame_owner_properties) override; |
441 void didChangeOpener(blink::WebFrame* frame) override; | 443 void didChangeOpener(blink::WebFrame* frame) override; |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 blink::WebPlugin* GetWebPluginForFind(); | 974 blink::WebPlugin* GetWebPluginForFind(); |
973 | 975 |
974 // Sends a reply to the current find operation handling if it was a | 976 // Sends a reply to the current find operation handling if it was a |
975 // synchronous find request. | 977 // synchronous find request. |
976 void SendFindReply(int request_id, | 978 void SendFindReply(int request_id, |
977 int match_count, | 979 int match_count, |
978 int ordinal, | 980 int ordinal, |
979 const blink::WebRect& selection_rect, | 981 const blink::WebRect& selection_rect, |
980 bool final_status_update); | 982 bool final_status_update); |
981 | 983 |
| 984 void InitializeBlameContext(RenderFrameImpl* parent_frame); |
| 985 |
982 // Stores the WebLocalFrame we are associated with. This is null from the | 986 // Stores the WebLocalFrame we are associated with. This is null from the |
983 // constructor until BindToWebFrame is called, and it is null after | 987 // constructor until BindToWebFrame is called, and it is null after |
984 // frameDetached is called until destruction (which is asynchronous in the | 988 // frameDetached is called until destruction (which is asynchronous in the |
985 // case of the main frame, but not subframes). | 989 // case of the main frame, but not subframes). |
986 blink::WebLocalFrame* frame_; | 990 blink::WebLocalFrame* frame_; |
987 | 991 |
988 // Boolean value indicating whether this RenderFrameImpl object is for the | 992 // Boolean value indicating whether this RenderFrameImpl object is for the |
989 // main frame or not. It remains accurate during destruction, even when | 993 // main frame or not. It remains accurate during destruction, even when |
990 // |frame_| has been invalidated. | 994 // |frame_| has been invalidated. |
991 bool is_main_frame_; | 995 bool is_main_frame_; |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1196 #if defined(ENABLE_WEBVR) | 1200 #if defined(ENABLE_WEBVR) |
1197 // The VR dispatcher attached to the frame, lazily initialized. | 1201 // The VR dispatcher attached to the frame, lazily initialized. |
1198 scoped_ptr<VRDispatcher> vr_dispatcher_; | 1202 scoped_ptr<VRDispatcher> vr_dispatcher_; |
1199 #endif | 1203 #endif |
1200 | 1204 |
1201 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1205 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
1202 // The external popup for the currently showing select popup. | 1206 // The external popup for the currently showing select popup. |
1203 scoped_ptr<ExternalPopupMenu> external_popup_menu_; | 1207 scoped_ptr<ExternalPopupMenu> external_popup_menu_; |
1204 #endif | 1208 #endif |
1205 | 1209 |
| 1210 FrameBlameContext* blame_context_; // Not owned. |
| 1211 |
1206 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1212 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1207 | 1213 |
1208 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1214 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1209 }; | 1215 }; |
1210 | 1216 |
1211 } // namespace content | 1217 } // namespace content |
1212 | 1218 |
1213 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1219 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |