| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 // more. | 614 // more. |
| 615 void SetPendingNavigationParams( | 615 void SetPendingNavigationParams( |
| 616 scoped_ptr<NavigationParams> navigation_params); | 616 scoped_ptr<NavigationParams> navigation_params); |
| 617 | 617 |
| 618 // Expose MediaPermission to the non-UI threads. Any calls to this will be | 618 // Expose MediaPermission to the non-UI threads. Any calls to this will be |
| 619 // redirected to |media_permission_dispatcher_| on UI thread and have the | 619 // redirected to |media_permission_dispatcher_| on UI thread and have the |
| 620 // callback called on |caller_task_runner|. | 620 // callback called on |caller_task_runner|. |
| 621 scoped_ptr<media::MediaPermission> CreateMediaPermissionProxy( | 621 scoped_ptr<media::MediaPermission> CreateMediaPermissionProxy( |
| 622 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner); | 622 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner); |
| 623 | 623 |
| 624 // Sends the current frame's navigation state to the browser. |
| 625 void SendUpdateState(); |
| 626 |
| 624 protected: | 627 protected: |
| 625 explicit RenderFrameImpl(const CreateParams& params); | 628 explicit RenderFrameImpl(const CreateParams& params); |
| 626 | 629 |
| 627 private: | 630 private: |
| 628 friend class RenderFrameImplTest; | 631 friend class RenderFrameImplTest; |
| 629 friend class RenderFrameObserver; | 632 friend class RenderFrameObserver; |
| 630 friend class RendererAccessibilityTest; | 633 friend class RendererAccessibilityTest; |
| 631 friend class TestRenderFrame; | 634 friend class TestRenderFrame; |
| 632 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); | 635 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); |
| 633 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 636 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 | 843 |
| 841 // PlzNavigate | 844 // PlzNavigate |
| 842 // Sends a FrameHostMsg_BeginNavigation to the browser based on the contents | 845 // Sends a FrameHostMsg_BeginNavigation to the browser based on the contents |
| 843 // of the WebURLRequest. | 846 // of the WebURLRequest. |
| 844 void BeginNavigation(blink::WebURLRequest* request); | 847 void BeginNavigation(blink::WebURLRequest* request); |
| 845 | 848 |
| 846 // Loads a data url. | 849 // Loads a data url. |
| 847 void LoadDataURL(const CommonNavigationParams& params, | 850 void LoadDataURL(const CommonNavigationParams& params, |
| 848 blink::WebFrame* frame); | 851 blink::WebFrame* frame); |
| 849 | 852 |
| 850 // Sends the current frame's navigation state to the browser. | |
| 851 void SendUpdateState(); | |
| 852 | |
| 853 // Sends a proper FrameHostMsg_DidFailProvisionalLoadWithError_Params IPC for | 853 // Sends a proper FrameHostMsg_DidFailProvisionalLoadWithError_Params IPC for |
| 854 // the failed request |request|. | 854 // the failed request |request|. |
| 855 void SendFailedProvisionalLoad(const blink::WebURLRequest& request, | 855 void SendFailedProvisionalLoad(const blink::WebURLRequest& request, |
| 856 const blink::WebURLError& error, | 856 const blink::WebURLError& error, |
| 857 blink::WebLocalFrame* frame); | 857 blink::WebLocalFrame* frame); |
| 858 | 858 |
| 859 bool ShouldDisplayErrorPageForFailedLoad(int error_code, | 859 bool ShouldDisplayErrorPageForFailedLoad(int error_code, |
| 860 const GURL& unreachable_url); | 860 const GURL& unreachable_url); |
| 861 | 861 |
| 862 // Returns the URL being loaded by the |frame_|'s request. | 862 // Returns the URL being loaded by the |frame_|'s request. |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 #endif | 1102 #endif |
| 1103 | 1103 |
| 1104 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1104 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1105 | 1105 |
| 1106 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1106 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1107 }; | 1107 }; |
| 1108 | 1108 |
| 1109 } // namespace content | 1109 } // namespace content |
| 1110 | 1110 |
| 1111 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1111 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |