| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 void OnSetAccessibilityMode(AccessibilityMode new_mode); | 545 void OnSetAccessibilityMode(AccessibilityMode new_mode); |
| 543 void OnDisownOpener(); | 546 void OnDisownOpener(); |
| 544 #if defined(OS_ANDROID) | 547 #if defined(OS_ANDROID) |
| 545 void OnSelectPopupMenuItems(bool canceled, | 548 void OnSelectPopupMenuItems(bool canceled, |
| 546 const std::vector<int>& selected_indices); | 549 const std::vector<int>& selected_indices); |
| 547 #elif defined(OS_MACOSX) | 550 #elif defined(OS_MACOSX) |
| 548 void OnSelectPopupMenuItem(int selected_index); | 551 void OnSelectPopupMenuItem(int selected_index); |
| 549 void OnCopyToFindPboard(); | 552 void OnCopyToFindPboard(); |
| 550 #endif | 553 #endif |
| 551 | 554 |
| 555 // PlzNavigate |
| 556 void OnCommitNavigation(const GURL& stream_url, |
| 557 const CommonNavigationParams& common_params, |
| 558 const CommitNavigationParams& commit_params); |
| 559 |
| 552 // Virtual since overridden by WebTestProxy for layout tests. | 560 // Virtual since overridden by WebTestProxy for layout tests. |
| 553 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( | 561 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( |
| 554 RenderFrame* render_frame, | 562 RenderFrame* render_frame, |
| 555 const NavigationPolicyInfo& info); | 563 const NavigationPolicyInfo& info); |
| 556 void OpenURL(blink::WebFrame* frame, | 564 void OpenURL(blink::WebFrame* frame, |
| 557 const GURL& url, | 565 const GURL& url, |
| 558 const Referrer& referrer, | 566 const Referrer& referrer, |
| 559 blink::WebNavigationPolicy policy); | 567 blink::WebNavigationPolicy policy); |
| 560 | 568 |
| 561 // Update current main frame's encoding and send it to browser window. | 569 // 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... |
| 755 #endif | 763 #endif |
| 756 | 764 |
| 757 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 765 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 758 | 766 |
| 759 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 767 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 760 }; | 768 }; |
| 761 | 769 |
| 762 } // namespace content | 770 } // namespace content |
| 763 | 771 |
| 764 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 772 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |