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 15 matching lines...) Expand all Loading... |
26 #include "third_party/WebKit/public/web/WebAXObject.h" | 26 #include "third_party/WebKit/public/web/WebAXObject.h" |
27 #include "third_party/WebKit/public/web/WebDataSource.h" | 27 #include "third_party/WebKit/public/web/WebDataSource.h" |
28 #include "third_party/WebKit/public/web/WebFrameClient.h" | 28 #include "third_party/WebKit/public/web/WebFrameClient.h" |
29 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" | 29 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" |
30 #include "ui/gfx/range/range.h" | 30 #include "ui/gfx/range/range.h" |
31 | 31 |
32 #if defined(OS_ANDROID) | 32 #if defined(OS_ANDROID) |
33 #include "content/renderer/media/android/renderer_media_player_manager.h" | 33 #include "content/renderer/media/android/renderer_media_player_manager.h" |
34 #endif | 34 #endif |
35 | 35 |
| 36 class GURL; |
36 class TransportDIB; | 37 class TransportDIB; |
37 struct FrameMsg_Navigate_Params; | 38 struct FrameMsg_Navigate_Params; |
38 | 39 |
39 namespace blink { | 40 namespace blink { |
40 class WebGeolocationClient; | 41 class WebGeolocationClient; |
41 class WebInputEvent; | 42 class WebInputEvent; |
42 class WebMouseEvent; | 43 class WebMouseEvent; |
43 class WebContentDecryptionModule; | 44 class WebContentDecryptionModule; |
44 class WebMediaPlayer; | 45 class WebMediaPlayer; |
45 class WebNotificationPresenter; | 46 class WebNotificationPresenter; |
(...skipping 26 matching lines...) Expand all Loading... |
72 class RendererAccessibility; | 73 class RendererAccessibility; |
73 class RendererCdmManager; | 74 class RendererCdmManager; |
74 class RendererMediaPlayerManager; | 75 class RendererMediaPlayerManager; |
75 class RendererPpapiHost; | 76 class RendererPpapiHost; |
76 class RenderFrameObserver; | 77 class RenderFrameObserver; |
77 class RenderViewImpl; | 78 class RenderViewImpl; |
78 class RenderWidget; | 79 class RenderWidget; |
79 class RenderWidgetFullscreenPepper; | 80 class RenderWidgetFullscreenPepper; |
80 class ScreenOrientationDispatcher; | 81 class ScreenOrientationDispatcher; |
81 class UserMediaClientImpl; | 82 class UserMediaClientImpl; |
| 83 struct CommitNavigationParams; |
| 84 struct CommonNavigationParams; |
82 struct CustomContextMenuContext; | 85 struct CustomContextMenuContext; |
83 | 86 |
84 class CONTENT_EXPORT RenderFrameImpl | 87 class CONTENT_EXPORT RenderFrameImpl |
85 : public RenderFrame, | 88 : public RenderFrame, |
86 NON_EXPORTED_BASE(public blink::WebFrameClient), | 89 NON_EXPORTED_BASE(public blink::WebFrameClient), |
87 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { | 90 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { |
88 public: | 91 public: |
89 // Creates a new RenderFrame. |render_view| is the RenderView object that this | 92 // Creates a new RenderFrame. |render_view| is the RenderView object that this |
90 // frame belongs to. | 93 // frame belongs to. |
91 // Callers *must* call |SetWebFrame| immediately after creation. | 94 // Callers *must* call |SetWebFrame| immediately after creation. |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 void OnSetAccessibilityMode(AccessibilityMode new_mode); | 543 void OnSetAccessibilityMode(AccessibilityMode new_mode); |
541 void OnDisownOpener(); | 544 void OnDisownOpener(); |
542 #if defined(OS_ANDROID) | 545 #if defined(OS_ANDROID) |
543 void OnSelectPopupMenuItems(bool canceled, | 546 void OnSelectPopupMenuItems(bool canceled, |
544 const std::vector<int>& selected_indices); | 547 const std::vector<int>& selected_indices); |
545 #elif defined(OS_MACOSX) | 548 #elif defined(OS_MACOSX) |
546 void OnSelectPopupMenuItem(int selected_index); | 549 void OnSelectPopupMenuItem(int selected_index); |
547 void OnCopyToFindPboard(); | 550 void OnCopyToFindPboard(); |
548 #endif | 551 #endif |
549 | 552 |
| 553 // PlzNavigate |
| 554 void OnCommitNavigation(const GURL& stream_url, |
| 555 const CommonNavigationParams& common_params, |
| 556 const CommitNavigationParams& commit_params); |
| 557 |
550 // Virtual since overridden by WebTestProxy for layout tests. | 558 // Virtual since overridden by WebTestProxy for layout tests. |
551 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( | 559 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( |
552 RenderFrame* render_frame, | 560 RenderFrame* render_frame, |
553 const NavigationPolicyInfo& info); | 561 const NavigationPolicyInfo& info); |
554 void OpenURL(blink::WebFrame* frame, | 562 void OpenURL(blink::WebFrame* frame, |
555 const GURL& url, | 563 const GURL& url, |
556 const Referrer& referrer, | 564 const Referrer& referrer, |
557 blink::WebNavigationPolicy policy); | 565 blink::WebNavigationPolicy policy); |
558 | 566 |
559 // Update current main frame's encoding and send it to browser window. | 567 // Update current main frame's encoding and send it to browser window. |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 #endif | 761 #endif |
754 | 762 |
755 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 763 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
756 | 764 |
757 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 765 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
758 }; | 766 }; |
759 | 767 |
760 } // namespace content | 768 } // namespace content |
761 | 769 |
762 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 770 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |