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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 class RendererPpapiHost; | 80 class RendererPpapiHost; |
81 class RenderFrameObserver; | 81 class RenderFrameObserver; |
82 class RenderViewImpl; | 82 class RenderViewImpl; |
83 class RenderWidget; | 83 class RenderWidget; |
84 class RenderWidgetFullscreenPepper; | 84 class RenderWidgetFullscreenPepper; |
85 class ScreenOrientationDispatcher; | 85 class ScreenOrientationDispatcher; |
86 class UserMediaClientImpl; | 86 class UserMediaClientImpl; |
87 struct CommitNavigationParams; | 87 struct CommitNavigationParams; |
88 struct CommonNavigationParams; | 88 struct CommonNavigationParams; |
89 struct CustomContextMenuContext; | 89 struct CustomContextMenuContext; |
| 90 struct FrameReplicationState; |
90 struct RequestNavigationParams; | 91 struct RequestNavigationParams; |
91 struct ResourceResponseHead; | 92 struct ResourceResponseHead; |
92 | 93 |
93 class CONTENT_EXPORT RenderFrameImpl | 94 class CONTENT_EXPORT RenderFrameImpl |
94 : public RenderFrame, | 95 : public RenderFrame, |
95 NON_EXPORTED_BASE(public blink::WebFrameClient), | 96 NON_EXPORTED_BASE(public blink::WebFrameClient), |
96 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { | 97 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { |
97 public: | 98 public: |
98 // Creates a new RenderFrame. |render_view| is the RenderView object that this | 99 // Creates a new RenderFrame. |render_view| is the RenderView object that this |
99 // frame belongs to. | 100 // frame belongs to. |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); | 502 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); |
502 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 503 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
503 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); | 504 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); |
504 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); | 505 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); |
505 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest, | 506 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest, |
506 AccessibilityMessagesQueueWhileSwappedOut); | 507 AccessibilityMessagesQueueWhileSwappedOut); |
507 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 508 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
508 OnExtendSelectionAndDelete); | 509 OnExtendSelectionAndDelete); |
509 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ReloadWhileSwappedOut); | 510 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ReloadWhileSwappedOut); |
510 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); | 511 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); |
| 512 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OriginReplicationForSwapOut); |
511 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 513 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
512 SetEditableSelectionAndComposition); | 514 SetEditableSelectionAndComposition); |
513 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 515 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
514 OnSetAccessibilityMode); | 516 OnSetAccessibilityMode); |
515 | 517 |
516 typedef std::map<GURL, double> HostZoomLevels; | 518 typedef std::map<GURL, double> HostZoomLevels; |
517 | 519 |
518 // Functions to add and remove observers for this object. | 520 // Functions to add and remove observers for this object. |
519 void AddObserver(RenderFrameObserver* observer); | 521 void AddObserver(RenderFrameObserver* observer); |
520 void RemoveObserver(RenderFrameObserver* observer); | 522 void RemoveObserver(RenderFrameObserver* observer); |
521 | 523 |
522 // Builds and sends DidCommitProvisionalLoad to the host. | 524 // Builds and sends DidCommitProvisionalLoad to the host. |
523 void SendDidCommitProvisionalLoad(blink::WebFrame* frame); | 525 void SendDidCommitProvisionalLoad(blink::WebFrame* frame); |
524 | 526 |
525 // Gets the focused element. If no such element exists then the element will | 527 // Gets the focused element. If no such element exists then the element will |
526 // be NULL. | 528 // be NULL. |
527 blink::WebElement GetFocusedElement(); | 529 blink::WebElement GetFocusedElement(); |
528 | 530 |
529 // IPC message handlers ------------------------------------------------------ | 531 // IPC message handlers ------------------------------------------------------ |
530 // | 532 // |
531 // The documentation for these functions should be in | 533 // The documentation for these functions should be in |
532 // content/common/*_messages.h for the message that the function is handling. | 534 // content/common/*_messages.h for the message that the function is handling. |
533 void OnBeforeUnload(); | 535 void OnBeforeUnload(); |
534 void OnSwapOut(int proxy_routing_id); | 536 void OnSwapOut(int proxy_routing_id, |
| 537 const FrameReplicationState& replicated_frame_state); |
535 void OnStop(); | 538 void OnStop(); |
536 void OnShowContextMenu(const gfx::Point& location); | 539 void OnShowContextMenu(const gfx::Point& location); |
537 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); | 540 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); |
538 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, | 541 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, |
539 unsigned action); | 542 unsigned action); |
540 void OnUndo(); | 543 void OnUndo(); |
541 void OnRedo(); | 544 void OnRedo(); |
542 void OnCut(); | 545 void OnCut(); |
543 void OnCopy(); | 546 void OnCopy(); |
544 void OnPaste(); | 547 void OnPaste(); |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 #endif | 810 #endif |
808 | 811 |
809 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 812 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
810 | 813 |
811 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 814 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
812 }; | 815 }; |
813 | 816 |
814 } // namespace content | 817 } // namespace content |
815 | 818 |
816 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 819 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |