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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 class RenderViewImpl; | 96 class RenderViewImpl; |
97 class RenderWidget; | 97 class RenderWidget; |
98 class RenderWidgetFullscreenPepper; | 98 class RenderWidgetFullscreenPepper; |
99 class ScreenOrientationDispatcher; | 99 class ScreenOrientationDispatcher; |
100 class UserMediaClientImpl; | 100 class UserMediaClientImpl; |
101 enum class SandboxFlags; | 101 enum class SandboxFlags; |
102 struct CommitNavigationParams; | 102 struct CommitNavigationParams; |
103 struct CommonNavigationParams; | 103 struct CommonNavigationParams; |
104 struct CustomContextMenuContext; | 104 struct CustomContextMenuContext; |
105 struct FrameReplicationState; | 105 struct FrameReplicationState; |
| 106 struct HistoryNavigationParams; |
106 struct RequestNavigationParams; | 107 struct RequestNavigationParams; |
107 struct ResourceResponseHead; | 108 struct ResourceResponseHead; |
108 | 109 |
109 class CONTENT_EXPORT RenderFrameImpl | 110 class CONTENT_EXPORT RenderFrameImpl |
110 : public RenderFrame, | 111 : public RenderFrame, |
111 NON_EXPORTED_BASE(public blink::WebFrameClient), | 112 NON_EXPORTED_BASE(public blink::WebFrameClient), |
112 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { | 113 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { |
113 public: | 114 public: |
114 // Creates a new RenderFrame. |render_view| is the RenderView object that this | 115 // Creates a new RenderFrame. |render_view| is the RenderView object that this |
115 // frame belongs to. | 116 // frame belongs to. |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 void OnSelectPopupMenuItems(bool canceled, | 627 void OnSelectPopupMenuItems(bool canceled, |
627 const std::vector<int>& selected_indices); | 628 const std::vector<int>& selected_indices); |
628 #elif defined(OS_MACOSX) | 629 #elif defined(OS_MACOSX) |
629 void OnSelectPopupMenuItem(int selected_index); | 630 void OnSelectPopupMenuItem(int selected_index); |
630 void OnCopyToFindPboard(); | 631 void OnCopyToFindPboard(); |
631 #endif | 632 #endif |
632 | 633 |
633 void OnCommitNavigation(const ResourceResponseHead& response, | 634 void OnCommitNavigation(const ResourceResponseHead& response, |
634 const GURL& stream_url, | 635 const GURL& stream_url, |
635 const CommonNavigationParams& common_params, | 636 const CommonNavigationParams& common_params, |
636 const CommitNavigationParams& commit_params); | 637 const CommitNavigationParams& commit_params, |
| 638 const HistoryNavigationParams& history_params); |
637 | 639 |
638 // Virtual since overridden by WebTestProxy for layout tests. | 640 // Virtual since overridden by WebTestProxy for layout tests. |
639 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( | 641 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( |
640 RenderFrame* render_frame, | 642 RenderFrame* render_frame, |
641 const NavigationPolicyInfo& info); | 643 const NavigationPolicyInfo& info); |
642 void OpenURL(blink::WebFrame* frame, | 644 void OpenURL(blink::WebFrame* frame, |
643 const GURL& url, | 645 const GURL& url, |
644 const Referrer& referrer, | 646 const Referrer& referrer, |
645 blink::WebNavigationPolicy policy); | 647 blink::WebNavigationPolicy policy); |
646 | 648 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 blink::WebMediaPlayerClient* client); | 694 blink::WebMediaPlayerClient* client); |
693 | 695 |
694 // Creates a factory object used for creating audio and video renderers. | 696 // Creates a factory object used for creating audio and video renderers. |
695 // The method is virtual so that layouttests can override it. | 697 // The method is virtual so that layouttests can override it. |
696 virtual scoped_ptr<MediaStreamRendererFactory> CreateRendererFactory(); | 698 virtual scoped_ptr<MediaStreamRendererFactory> CreateRendererFactory(); |
697 | 699 |
698 // Checks that the RenderView is ready to display the navigation to |url|. If | 700 // Checks that the RenderView is ready to display the navigation to |url|. If |
699 // the return value is false, the navigation should be abandoned. | 701 // the return value is false, the navigation should be abandoned. |
700 bool PrepareRenderViewForNavigation( | 702 bool PrepareRenderViewForNavigation( |
701 const GURL& url, | 703 const GURL& url, |
702 bool check_for_stale_navigation, | |
703 bool is_history_navigation, | 704 bool is_history_navigation, |
704 int current_history_list_offset, | 705 const HistoryNavigationParams& history_params, |
705 bool* is_reload, | 706 bool* is_reload, |
706 blink::WebURLRequest::CachePolicy* cache_policy); | 707 blink::WebURLRequest::CachePolicy* cache_policy); |
707 | 708 |
708 // PlzNavigate | 709 // PlzNavigate |
709 // Sends a FrameHostMsg_BeginNavigation to the browser based on the contents | 710 // Sends a FrameHostMsg_BeginNavigation to the browser based on the contents |
710 // of the WebURLRequest. | 711 // of the WebURLRequest. |
711 void BeginNavigation(blink::WebURLRequest* request); | 712 void BeginNavigation(blink::WebURLRequest* request); |
712 | 713 |
713 // Loads a data url. | 714 // Loads a data url. |
714 void LoadDataURL(const CommonNavigationParams& params, | 715 void LoadDataURL(const CommonNavigationParams& params, |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 #endif | 875 #endif |
875 | 876 |
876 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 877 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
877 | 878 |
878 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 879 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
879 }; | 880 }; |
880 | 881 |
881 } // namespace content | 882 } // namespace content |
882 | 883 |
883 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 884 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |