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

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

Issue 1206753003: Add a TestRenderFrame to use in RenderViewTests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months 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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 535
536 #if defined(ENABLE_WEBVR) 536 #if defined(ENABLE_WEBVR)
537 blink::WebVRClient* webVRClient() override; 537 blink::WebVRClient* webVRClient() override;
538 #endif 538 #endif
539 539
540 // WebMediaPlayerDelegate implementation: 540 // WebMediaPlayerDelegate implementation:
541 void DidPlay(blink::WebMediaPlayer* player) override; 541 void DidPlay(blink::WebMediaPlayer* player) override;
542 void DidPause(blink::WebMediaPlayer* player) override; 542 void DidPause(blink::WebMediaPlayer* player) override;
543 void PlayerGone(blink::WebMediaPlayer* player) override; 543 void PlayerGone(blink::WebMediaPlayer* player) override;
544 544
545 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move
546 // this back to private member.
547 void OnNavigate(const CommonNavigationParams& common_params,
548 const StartNavigationParams& start_params,
549 const RequestNavigationParams& request_params);
550
551 // Make this frame show an empty, unscriptable page. 545 // Make this frame show an empty, unscriptable page.
552 // TODO(nasko): Remove this method once swapped out state is no longer used. 546 // TODO(nasko): Remove this method once swapped out state is no longer used.
553 void NavigateToSwappedOutURL(); 547 void NavigateToSwappedOutURL();
554 548
555 // Binds this render frame's service registry. 549 // Binds this render frame's service registry.
556 void BindServiceRegistry( 550 void BindServiceRegistry(
557 mojo::InterfaceRequest<mojo::ServiceProvider> services, 551 mojo::InterfaceRequest<mojo::ServiceProvider> services,
558 mojo::ServiceProviderPtr exposed_services); 552 mojo::ServiceProviderPtr exposed_services);
559 553
560 ManifestManager* manifest_manager(); 554 ManifestManager* manifest_manager();
561 555
562 // TODO(creis): Remove when the only caller, the HistoryController, is no 556 // TODO(creis): Remove when the only caller, the HistoryController, is no
563 // more. 557 // more.
564 void SetPendingNavigationParams( 558 void SetPendingNavigationParams(
565 scoped_ptr<NavigationParams> navigation_params); 559 scoped_ptr<NavigationParams> navigation_params);
566 560
567 protected: 561 protected:
568 RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id); 562 RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id);
569 563
570 private: 564 private:
571 friend class RenderFrameImplTest; 565 friend class RenderFrameImplTest;
572 friend class RenderFrameObserver; 566 friend class RenderFrameObserver;
573 friend class RenderViewImplTest;
574 friend class RendererAccessibilityTest; 567 friend class RendererAccessibilityTest;
568 friend class TestRenderFrame;
575 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); 569 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem);
576 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); 570 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange);
577 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); 571 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase);
578 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); 572 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate);
579 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest, 573 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest,
580 AccessibilityMessagesQueueWhileSwappedOut); 574 AccessibilityMessagesQueueWhileSwappedOut);
581 575
582 // A wrapper class used as the callback for JavaScript executed 576 // A wrapper class used as the callback for JavaScript executed
583 // in an isolated world. 577 // in an isolated world.
584 class JavaScriptIsolatedWorldRequest 578 class JavaScriptIsolatedWorldRequest
(...skipping 26 matching lines...) Expand all
611 605
612 // Builds and sends DidCommitProvisionalLoad to the host. 606 // Builds and sends DidCommitProvisionalLoad to the host.
613 void SendDidCommitProvisionalLoad(blink::WebFrame* frame, 607 void SendDidCommitProvisionalLoad(blink::WebFrame* frame,
614 blink::WebHistoryCommitType commit_type, 608 blink::WebHistoryCommitType commit_type,
615 const blink::WebHistoryItem& item); 609 const blink::WebHistoryItem& item);
616 610
617 // IPC message handlers ------------------------------------------------------ 611 // IPC message handlers ------------------------------------------------------
618 // 612 //
619 // The documentation for these functions should be in 613 // The documentation for these functions should be in
620 // content/common/*_messages.h for the message that the function is handling. 614 // content/common/*_messages.h for the message that the function is handling.
615 void OnNavigate(const CommonNavigationParams& common_params,
616 const StartNavigationParams& start_params,
617 const RequestNavigationParams& request_params);
618
nasko 2015/06/24 14:18:02 nit: No need for extra empty line here, since this
clamy 2015/06/24 14:51:03 Done.
621 void OnBeforeUnload(); 619 void OnBeforeUnload();
622 void OnSwapOut(int proxy_routing_id, 620 void OnSwapOut(int proxy_routing_id,
623 bool is_loading, 621 bool is_loading,
624 const FrameReplicationState& replicated_frame_state); 622 const FrameReplicationState& replicated_frame_state);
625 void OnStop(); 623 void OnStop();
626 void OnShowContextMenu(const gfx::Point& location); 624 void OnShowContextMenu(const gfx::Point& location);
627 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); 625 void OnContextMenuClosed(const CustomContextMenuContext& custom_context);
628 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, 626 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context,
629 unsigned action); 627 unsigned action);
630 void OnUndo(); 628 void OnUndo();
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 #endif 996 #endif
999 997
1000 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 998 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1001 999
1002 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1000 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1003 }; 1001 };
1004 1002
1005 } // namespace content 1003 } // namespace content
1006 1004
1007 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1005 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698