Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 692973005: Pass origin information for remote frame creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add EXPECT_TRUE to NavigateToURL in new tests; nits Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 class RendererPpapiHost; 82 class RendererPpapiHost;
83 class RenderFrameObserver; 83 class RenderFrameObserver;
84 class RenderViewImpl; 84 class RenderViewImpl;
85 class RenderWidget; 85 class RenderWidget;
86 class RenderWidgetFullscreenPepper; 86 class RenderWidgetFullscreenPepper;
87 class ScreenOrientationDispatcher; 87 class ScreenOrientationDispatcher;
88 class UserMediaClientImpl; 88 class UserMediaClientImpl;
89 struct CommitNavigationParams; 89 struct CommitNavigationParams;
90 struct CommonNavigationParams; 90 struct CommonNavigationParams;
91 struct CustomContextMenuContext; 91 struct CustomContextMenuContext;
92 struct FrameReplicationState;
92 struct RequestNavigationParams; 93 struct RequestNavigationParams;
93 struct ResourceResponseHead; 94 struct ResourceResponseHead;
94 95
95 class CONTENT_EXPORT RenderFrameImpl 96 class CONTENT_EXPORT RenderFrameImpl
96 : public RenderFrame, 97 : public RenderFrame,
97 NON_EXPORTED_BASE(public blink::WebFrameClient), 98 NON_EXPORTED_BASE(public blink::WebFrameClient),
98 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { 99 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) {
99 public: 100 public:
100 // 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
101 // frame belongs to. 102 // frame belongs to.
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); 504 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem);
504 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); 505 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange);
505 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); 506 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase);
506 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); 507 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate);
507 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest, 508 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest,
508 AccessibilityMessagesQueueWhileSwappedOut); 509 AccessibilityMessagesQueueWhileSwappedOut);
509 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, 510 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
510 OnExtendSelectionAndDelete); 511 OnExtendSelectionAndDelete);
511 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ReloadWhileSwappedOut); 512 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ReloadWhileSwappedOut);
512 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); 513 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK);
514 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OriginReplicationForSwapOut);
513 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, 515 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
514 SetEditableSelectionAndComposition); 516 SetEditableSelectionAndComposition);
515 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, 517 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
516 OnSetAccessibilityMode); 518 OnSetAccessibilityMode);
517 519
518 typedef std::map<GURL, double> HostZoomLevels; 520 typedef std::map<GURL, double> HostZoomLevels;
519 521
520 // Functions to add and remove observers for this object. 522 // Functions to add and remove observers for this object.
521 void AddObserver(RenderFrameObserver* observer); 523 void AddObserver(RenderFrameObserver* observer);
522 void RemoveObserver(RenderFrameObserver* observer); 524 void RemoveObserver(RenderFrameObserver* observer);
523 525
524 // Builds and sends DidCommitProvisionalLoad to the host. 526 // Builds and sends DidCommitProvisionalLoad to the host.
525 void SendDidCommitProvisionalLoad(blink::WebFrame* frame); 527 void SendDidCommitProvisionalLoad(blink::WebFrame* frame);
526 528
527 // Gets the focused element. If no such element exists then the element will 529 // Gets the focused element. If no such element exists then the element will
528 // be NULL. 530 // be NULL.
529 blink::WebElement GetFocusedElement(); 531 blink::WebElement GetFocusedElement();
530 532
531 // IPC message handlers ------------------------------------------------------ 533 // IPC message handlers ------------------------------------------------------
532 // 534 //
533 // The documentation for these functions should be in 535 // The documentation for these functions should be in
534 // content/common/*_messages.h for the message that the function is handling. 536 // content/common/*_messages.h for the message that the function is handling.
535 void OnBeforeUnload(); 537 void OnBeforeUnload();
536 void OnSwapOut(int proxy_routing_id); 538 void OnSwapOut(int proxy_routing_id,
539 const FrameReplicationState& remote_frame_state);
537 void OnStop(); 540 void OnStop();
538 void OnShowContextMenu(const gfx::Point& location); 541 void OnShowContextMenu(const gfx::Point& location);
539 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); 542 void OnContextMenuClosed(const CustomContextMenuContext& custom_context);
540 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, 543 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context,
541 unsigned action); 544 unsigned action);
542 void OnUndo(); 545 void OnUndo();
543 void OnRedo(); 546 void OnRedo();
544 void OnCut(); 547 void OnCut();
545 void OnCopy(); 548 void OnCopy();
546 void OnPaste(); 549 void OnPaste();
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 #endif 815 #endif
813 816
814 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 817 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
815 818
816 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 819 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
817 }; 820 };
818 821
819 } // namespace content 822 } // namespace content
820 823
821 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 824 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698