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 19 matching lines...) Expand all Loading... |
30 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" | 30 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" |
31 #include "ui/gfx/range/range.h" | 31 #include "ui/gfx/range/range.h" |
32 | 32 |
33 #if defined(OS_ANDROID) | 33 #if defined(OS_ANDROID) |
34 #include "content/renderer/media/android/renderer_media_player_manager.h" | 34 #include "content/renderer/media/android/renderer_media_player_manager.h" |
35 #endif | 35 #endif |
36 | 36 |
37 class GURL; | 37 class GURL; |
38 class TransportDIB; | 38 class TransportDIB; |
39 struct FrameMsg_Navigate_Params; | 39 struct FrameMsg_Navigate_Params; |
40 struct FrameMsg_CommitNavigation_Params; | 40 struct FrameMsg_RequestNavigation_Params; |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 class WebGeolocationClient; | 43 class WebGeolocationClient; |
44 class WebMouseEvent; | 44 class WebMouseEvent; |
45 class WebContentDecryptionModule; | 45 class WebContentDecryptionModule; |
46 class WebMediaPlayer; | 46 class WebMediaPlayer; |
47 class WebNotificationPresenter; | 47 class WebNotificationPresenter; |
48 class WebPushClient; | 48 class WebPushClient; |
49 class WebSecurityOrigin; | 49 class WebSecurityOrigin; |
50 struct WebCompositionUnderline; | 50 struct WebCompositionUnderline; |
(...skipping 27 matching lines...) Expand all Loading... |
78 class RendererPpapiHost; | 78 class RendererPpapiHost; |
79 class RenderFrameObserver; | 79 class RenderFrameObserver; |
80 class RenderViewImpl; | 80 class RenderViewImpl; |
81 class RenderWidget; | 81 class RenderWidget; |
82 class RenderWidgetFullscreenPepper; | 82 class RenderWidgetFullscreenPepper; |
83 class ScreenOrientationDispatcher; | 83 class ScreenOrientationDispatcher; |
84 class UserMediaClientImpl; | 84 class UserMediaClientImpl; |
85 struct CommitNavigationParams; | 85 struct CommitNavigationParams; |
86 struct CommonNavigationParams; | 86 struct CommonNavigationParams; |
87 struct CustomContextMenuContext; | 87 struct CustomContextMenuContext; |
| 88 struct RequestNavigationParams; |
88 struct ResourceResponseHead; | 89 struct ResourceResponseHead; |
89 | 90 |
90 class CONTENT_EXPORT RenderFrameImpl | 91 class CONTENT_EXPORT RenderFrameImpl |
91 : public RenderFrame, | 92 : public RenderFrame, |
92 NON_EXPORTED_BASE(public blink::WebFrameClient), | 93 NON_EXPORTED_BASE(public blink::WebFrameClient), |
93 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { | 94 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { |
94 public: | 95 public: |
95 // Creates a new RenderFrame. |render_view| is the RenderView object that this | 96 // Creates a new RenderFrame. |render_view| is the RenderView object that this |
96 // frame belongs to. | 97 // frame belongs to. |
97 // Callers *must* call |SetWebFrame| immediately after creation. | 98 // Callers *must* call |SetWebFrame| immediately after creation. |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 void OnDisownOpener(); | 550 void OnDisownOpener(); |
550 #if defined(OS_ANDROID) | 551 #if defined(OS_ANDROID) |
551 void OnSelectPopupMenuItems(bool canceled, | 552 void OnSelectPopupMenuItems(bool canceled, |
552 const std::vector<int>& selected_indices); | 553 const std::vector<int>& selected_indices); |
553 #elif defined(OS_MACOSX) | 554 #elif defined(OS_MACOSX) |
554 void OnSelectPopupMenuItem(int selected_index); | 555 void OnSelectPopupMenuItem(int selected_index); |
555 void OnCopyToFindPboard(); | 556 void OnCopyToFindPboard(); |
556 #endif | 557 #endif |
557 | 558 |
558 // PlzNavigate | 559 // PlzNavigate |
| 560 void OnRequestNavigation(const CommonNavigationParams& common_params, |
| 561 const RequestNavigationParams& request_params); |
559 void OnCommitNavigation(const ResourceResponseHead& response, | 562 void OnCommitNavigation(const ResourceResponseHead& response, |
560 const GURL& stream_url, | 563 const GURL& stream_url, |
561 const CommonNavigationParams& common_params, | 564 const CommonNavigationParams& common_params, |
562 const CommitNavigationParams& commit_params); | 565 const CommitNavigationParams& commit_params); |
563 | 566 |
564 // Virtual since overridden by WebTestProxy for layout tests. | 567 // Virtual since overridden by WebTestProxy for layout tests. |
565 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( | 568 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( |
566 RenderFrame* render_frame, | 569 RenderFrame* render_frame, |
567 const NavigationPolicyInfo& info); | 570 const NavigationPolicyInfo& info); |
568 void OpenURL(blink::WebFrame* frame, | 571 void OpenURL(blink::WebFrame* frame, |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 #endif | 774 #endif |
772 | 775 |
773 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 776 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
774 | 777 |
775 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 778 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
776 }; | 779 }; |
777 | 780 |
778 } // namespace content | 781 } // namespace content |
779 | 782 |
780 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 783 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |