| 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 WebInputEvent; | 44 class WebInputEvent; |
| 45 class WebMouseEvent; | 45 class WebMouseEvent; |
| 46 class WebContentDecryptionModule; | 46 class WebContentDecryptionModule; |
| 47 class WebMediaPlayer; | 47 class WebMediaPlayer; |
| 48 class WebNotificationPresenter; | 48 class WebNotificationPresenter; |
| 49 class WebPushClient; | 49 class WebPushClient; |
| 50 class WebSecurityOrigin; | 50 class WebSecurityOrigin; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 79 class RendererPpapiHost; | 79 class RendererPpapiHost; |
| 80 class RenderFrameObserver; | 80 class RenderFrameObserver; |
| 81 class RenderViewImpl; | 81 class RenderViewImpl; |
| 82 class RenderWidget; | 82 class RenderWidget; |
| 83 class RenderWidgetFullscreenPepper; | 83 class RenderWidgetFullscreenPepper; |
| 84 class ScreenOrientationDispatcher; | 84 class ScreenOrientationDispatcher; |
| 85 class UserMediaClientImpl; | 85 class UserMediaClientImpl; |
| 86 struct CommitNavigationParams; | 86 struct CommitNavigationParams; |
| 87 struct CommonNavigationParams; | 87 struct CommonNavigationParams; |
| 88 struct CustomContextMenuContext; | 88 struct CustomContextMenuContext; |
| 89 struct RequestNavigationParams; |
| 89 struct ResourceResponseHead; | 90 struct ResourceResponseHead; |
| 90 | 91 |
| 91 class CONTENT_EXPORT RenderFrameImpl | 92 class CONTENT_EXPORT RenderFrameImpl |
| 92 : public RenderFrame, | 93 : public RenderFrame, |
| 93 NON_EXPORTED_BASE(public blink::WebFrameClient), | 94 NON_EXPORTED_BASE(public blink::WebFrameClient), |
| 94 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { | 95 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { |
| 95 public: | 96 public: |
| 96 // Creates a new RenderFrame. |render_view| is the RenderView object that this | 97 // Creates a new RenderFrame. |render_view| is the RenderView object that this |
| 97 // frame belongs to. | 98 // frame belongs to. |
| 98 // Callers *must* call |SetWebFrame| immediately after creation. | 99 // Callers *must* call |SetWebFrame| immediately after creation. |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 void OnDisownOpener(); | 552 void OnDisownOpener(); |
| 552 #if defined(OS_ANDROID) | 553 #if defined(OS_ANDROID) |
| 553 void OnSelectPopupMenuItems(bool canceled, | 554 void OnSelectPopupMenuItems(bool canceled, |
| 554 const std::vector<int>& selected_indices); | 555 const std::vector<int>& selected_indices); |
| 555 #elif defined(OS_MACOSX) | 556 #elif defined(OS_MACOSX) |
| 556 void OnSelectPopupMenuItem(int selected_index); | 557 void OnSelectPopupMenuItem(int selected_index); |
| 557 void OnCopyToFindPboard(); | 558 void OnCopyToFindPboard(); |
| 558 #endif | 559 #endif |
| 559 | 560 |
| 560 // PlzNavigate | 561 // PlzNavigate |
| 562 void OnRequestNavigation(const CommonNavigationParams& common_params, |
| 563 const RequestNavigationParams& request_params); |
| 561 void OnCommitNavigation(const ResourceResponseHead& response, | 564 void OnCommitNavigation(const ResourceResponseHead& response, |
| 562 const GURL& stream_url, | 565 const GURL& stream_url, |
| 563 const CommonNavigationParams& common_params, | 566 const CommonNavigationParams& common_params, |
| 564 const CommitNavigationParams& commit_params); | 567 const CommitNavigationParams& commit_params); |
| 565 | 568 |
| 566 // Virtual since overridden by WebTestProxy for layout tests. | 569 // Virtual since overridden by WebTestProxy for layout tests. |
| 567 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( | 570 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( |
| 568 RenderFrame* render_frame, | 571 RenderFrame* render_frame, |
| 569 const NavigationPolicyInfo& info); | 572 const NavigationPolicyInfo& info); |
| 570 void OpenURL(blink::WebFrame* frame, | 573 void OpenURL(blink::WebFrame* frame, |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 #endif | 776 #endif |
| 774 | 777 |
| 775 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 778 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 776 | 779 |
| 777 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 780 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 778 }; | 781 }; |
| 779 | 782 |
| 780 } // namespace content | 783 } // namespace content |
| 781 | 784 |
| 782 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 785 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |