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 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 const std::vector<int>& selected_indices); | 646 const std::vector<int>& selected_indices); |
647 #elif defined(OS_MACOSX) | 647 #elif defined(OS_MACOSX) |
648 void OnSelectPopupMenuItem(int selected_index); | 648 void OnSelectPopupMenuItem(int selected_index); |
649 void OnCopyToFindPboard(); | 649 void OnCopyToFindPboard(); |
650 #endif | 650 #endif |
651 | 651 |
652 void OnCommitNavigation(const ResourceResponseHead& response, | 652 void OnCommitNavigation(const ResourceResponseHead& response, |
653 const GURL& stream_url, | 653 const GURL& stream_url, |
654 const CommonNavigationParams& common_params, | 654 const CommonNavigationParams& common_params, |
655 const RequestNavigationParams& request_params); | 655 const RequestNavigationParams& request_params); |
| 656 void OnFailedNavigation(const CommonNavigationParams& common_params, |
| 657 const RequestNavigationParams& request_params, |
| 658 bool has_stale_copy_in_cache, |
| 659 int error_code); |
656 | 660 |
657 // Virtual since overridden by WebTestProxy for layout tests. | 661 // Virtual since overridden by WebTestProxy for layout tests. |
658 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( | 662 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( |
659 RenderFrame* render_frame, | 663 RenderFrame* render_frame, |
660 const NavigationPolicyInfo& info); | 664 const NavigationPolicyInfo& info); |
661 void OpenURL(blink::WebFrame* frame, | 665 void OpenURL(blink::WebFrame* frame, |
662 const GURL& url, | 666 const GURL& url, |
663 const Referrer& referrer, | 667 const Referrer& referrer, |
664 blink::WebNavigationPolicy policy); | 668 blink::WebNavigationPolicy policy); |
665 | 669 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 | 729 |
726 // PlzNavigate | 730 // PlzNavigate |
727 // Sends a FrameHostMsg_BeginNavigation to the browser based on the contents | 731 // Sends a FrameHostMsg_BeginNavigation to the browser based on the contents |
728 // of the WebURLRequest. | 732 // of the WebURLRequest. |
729 void BeginNavigation(blink::WebURLRequest* request); | 733 void BeginNavigation(blink::WebURLRequest* request); |
730 | 734 |
731 // Loads a data url. | 735 // Loads a data url. |
732 void LoadDataURL(const CommonNavigationParams& params, | 736 void LoadDataURL(const CommonNavigationParams& params, |
733 blink::WebFrame* frame); | 737 blink::WebFrame* frame); |
734 | 738 |
| 739 // Sends a proper FrameHostMsg_DidFailProvisionalLoadWithError_Params IPC for |
| 740 // the failed request |request|. |
| 741 void SendFailedProvisionalLoad(const blink::WebURLRequest& request, |
| 742 const blink::WebURLError& error, |
| 743 blink::WebLocalFrame* frame); |
| 744 |
| 745 bool ShouldDisplayErrorPageForFailedLoad(int error_code, |
| 746 const GURL& unreachable_url); |
| 747 |
735 // Returns the URL being loaded by the |frame_|'s request. | 748 // Returns the URL being loaded by the |frame_|'s request. |
736 GURL GetLoadingUrl() const; | 749 GURL GetLoadingUrl() const; |
737 | 750 |
738 // If we initiated a navigation, this function will populate |document_state| | 751 // If we initiated a navigation, this function will populate |document_state| |
739 // with the navigation information saved in OnNavigate(). | 752 // with the navigation information saved in OnNavigate(). |
740 void PopulateDocumentStateFromPending(DocumentState* document_state); | 753 void PopulateDocumentStateFromPending(DocumentState* document_state); |
741 | 754 |
742 // Returns a new NavigationState populated with the navigation information | 755 // Returns a new NavigationState populated with the navigation information |
743 // saved in OnNavigate(). | 756 // saved in OnNavigate(). |
744 NavigationState* CreateNavigationStateFromPending(); | 757 NavigationState* CreateNavigationStateFromPending(); |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
918 #endif | 931 #endif |
919 | 932 |
920 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 933 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
921 | 934 |
922 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 935 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
923 }; | 936 }; |
924 | 937 |
925 } // namespace content | 938 } // namespace content |
926 | 939 |
927 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 940 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |