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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "content/public/common/referrer.h" | 21 #include "content/public/common/referrer.h" |
22 #include "content/public/renderer/render_frame.h" | 22 #include "content/public/renderer/render_frame.h" |
23 #include "content/renderer/render_frame_proxy.h" | 23 #include "content/renderer/render_frame_proxy.h" |
24 #include "content/renderer/renderer_webcookiejar_impl.h" | 24 #include "content/renderer/renderer_webcookiejar_impl.h" |
25 #include "ipc/ipc_message.h" | 25 #include "ipc/ipc_message.h" |
26 #include "media/blink/webmediaplayer_delegate.h" | 26 #include "media/blink/webmediaplayer_delegate.h" |
27 #include "third_party/WebKit/public/web/WebAXObject.h" | 27 #include "third_party/WebKit/public/web/WebAXObject.h" |
28 #include "third_party/WebKit/public/web/WebDataSource.h" | 28 #include "third_party/WebKit/public/web/WebDataSource.h" |
29 #include "third_party/WebKit/public/web/WebFrameClient.h" | 29 #include "third_party/WebKit/public/web/WebFrameClient.h" |
30 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" | 30 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" |
| 31 #include "third_party/WebKit/public/web/WebRemoteFrame.h" |
31 #include "ui/gfx/range/range.h" | 32 #include "ui/gfx/range/range.h" |
32 | 33 |
33 #if defined(OS_ANDROID) | 34 #if defined(OS_ANDROID) |
34 #include "content/renderer/media/android/renderer_media_player_manager.h" | 35 #include "content/renderer/media/android/renderer_media_player_manager.h" |
35 #endif | 36 #endif |
36 | 37 |
37 class GURL; | 38 class GURL; |
38 class TransportDIB; | 39 class TransportDIB; |
39 struct FrameHostMsg_AddNavigationTransitionData_Params; | 40 struct FrameHostMsg_AddNavigationTransitionData_Params; |
40 struct FrameMsg_Navigate_Params; | 41 struct FrameMsg_Navigate_Params; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 class RendererPpapiHost; | 82 class RendererPpapiHost; |
82 class RenderFrameObserver; | 83 class RenderFrameObserver; |
83 class RenderViewImpl; | 84 class RenderViewImpl; |
84 class RenderWidget; | 85 class RenderWidget; |
85 class RenderWidgetFullscreenPepper; | 86 class RenderWidgetFullscreenPepper; |
86 class ScreenOrientationDispatcher; | 87 class ScreenOrientationDispatcher; |
87 class UserMediaClientImpl; | 88 class UserMediaClientImpl; |
88 struct CommitNavigationParams; | 89 struct CommitNavigationParams; |
89 struct CommonNavigationParams; | 90 struct CommonNavigationParams; |
90 struct CustomContextMenuContext; | 91 struct CustomContextMenuContext; |
| 92 struct FrameReplicationState; |
91 struct RequestNavigationParams; | 93 struct RequestNavigationParams; |
92 struct ResourceResponseHead; | 94 struct ResourceResponseHead; |
93 | 95 |
94 class CONTENT_EXPORT RenderFrameImpl | 96 class CONTENT_EXPORT RenderFrameImpl |
95 : public RenderFrame, | 97 : public RenderFrame, |
96 NON_EXPORTED_BASE(public blink::WebFrameClient), | 98 NON_EXPORTED_BASE(public blink::WebFrameClient), |
97 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { | 99 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { |
98 public: | 100 public: |
99 // Creates a new RenderFrame. |render_view| is the RenderView object that this | 101 // Creates a new RenderFrame. |render_view| is the RenderView object that this |
100 // frame belongs to. | 102 // frame belongs to. |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); | 508 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); |
507 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 509 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
508 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); | 510 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); |
509 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); | 511 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); |
510 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest, | 512 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest, |
511 AccessibilityMessagesQueueWhileSwappedOut); | 513 AccessibilityMessagesQueueWhileSwappedOut); |
512 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 514 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
513 OnExtendSelectionAndDelete); | 515 OnExtendSelectionAndDelete); |
514 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ReloadWhileSwappedOut); | 516 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ReloadWhileSwappedOut); |
515 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); | 517 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); |
| 518 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OriginReplicationForSwapOut); |
516 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 519 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
517 SetEditableSelectionAndComposition); | 520 SetEditableSelectionAndComposition); |
518 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 521 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
519 OnSetAccessibilityMode); | 522 OnSetAccessibilityMode); |
520 | 523 |
521 typedef std::map<GURL, double> HostZoomLevels; | 524 typedef std::map<GURL, double> HostZoomLevels; |
522 | 525 |
523 // Functions to add and remove observers for this object. | 526 // Functions to add and remove observers for this object. |
524 void AddObserver(RenderFrameObserver* observer); | 527 void AddObserver(RenderFrameObserver* observer); |
525 void RemoveObserver(RenderFrameObserver* observer); | 528 void RemoveObserver(RenderFrameObserver* observer); |
526 | 529 |
527 // Builds and sends DidCommitProvisionalLoad to the host. | 530 // Builds and sends DidCommitProvisionalLoad to the host. |
528 void SendDidCommitProvisionalLoad(blink::WebFrame* frame); | 531 void SendDidCommitProvisionalLoad(blink::WebFrame* frame); |
529 | 532 |
530 // Gets the focused element. If no such element exists then the element will | 533 // Gets the focused element. If no such element exists then the element will |
531 // be NULL. | 534 // be NULL. |
532 blink::WebElement GetFocusedElement(); | 535 blink::WebElement GetFocusedElement(); |
533 | 536 |
534 // IPC message handlers ------------------------------------------------------ | 537 // IPC message handlers ------------------------------------------------------ |
535 // | 538 // |
536 // The documentation for these functions should be in | 539 // The documentation for these functions should be in |
537 // content/common/*_messages.h for the message that the function is handling. | 540 // content/common/*_messages.h for the message that the function is handling. |
538 void OnBeforeUnload(); | 541 void OnBeforeUnload(); |
539 void OnSwapOut(int proxy_routing_id); | 542 void OnSwapOut(int proxy_routing_id, |
| 543 const FrameReplicationState& remote_frame_state); |
540 void OnStop(); | 544 void OnStop(); |
541 void OnShowContextMenu(const gfx::Point& location); | 545 void OnShowContextMenu(const gfx::Point& location); |
542 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); | 546 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); |
543 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, | 547 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, |
544 unsigned action); | 548 unsigned action); |
545 void OnUndo(); | 549 void OnUndo(); |
546 void OnRedo(); | 550 void OnRedo(); |
547 void OnCut(); | 551 void OnCut(); |
548 void OnCopy(); | 552 void OnCopy(); |
549 void OnPaste(); | 553 void OnPaste(); |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 #endif | 816 #endif |
813 | 817 |
814 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 818 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
815 | 819 |
816 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 820 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
817 }; | 821 }; |
818 | 822 |
819 } // namespace content | 823 } // namespace content |
820 | 824 |
821 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 825 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |