| 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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 const std::vector<int>& selected_indices); | 654 const std::vector<int>& selected_indices); |
| 655 #elif defined(OS_MACOSX) | 655 #elif defined(OS_MACOSX) |
| 656 void OnSelectPopupMenuItem(int selected_index); | 656 void OnSelectPopupMenuItem(int selected_index); |
| 657 void OnCopyToFindPboard(); | 657 void OnCopyToFindPboard(); |
| 658 #endif | 658 #endif |
| 659 | 659 |
| 660 void OnCommitNavigation(const ResourceResponseHead& response, | 660 void OnCommitNavigation(const ResourceResponseHead& response, |
| 661 const GURL& stream_url, | 661 const GURL& stream_url, |
| 662 const CommonNavigationParams& common_params, | 662 const CommonNavigationParams& common_params, |
| 663 const RequestNavigationParams& request_params); | 663 const RequestNavigationParams& request_params); |
| 664 void OnFailedNavigation(const CommonNavigationParams& common_params, |
| 665 const RequestNavigationParams& request_params, |
| 666 bool has_stale_copy_in_cache, |
| 667 int error_code); |
| 664 | 668 |
| 665 // Virtual since overridden by WebTestProxy for layout tests. | 669 // Virtual since overridden by WebTestProxy for layout tests. |
| 666 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( | 670 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( |
| 667 RenderFrame* render_frame, | 671 RenderFrame* render_frame, |
| 668 const NavigationPolicyInfo& info); | 672 const NavigationPolicyInfo& info); |
| 669 void OpenURL(blink::WebFrame* frame, | 673 void OpenURL(blink::WebFrame* frame, |
| 670 const GURL& url, | 674 const GURL& url, |
| 671 const Referrer& referrer, | 675 const Referrer& referrer, |
| 672 blink::WebNavigationPolicy policy); | 676 blink::WebNavigationPolicy policy); |
| 673 | 677 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 | 737 |
| 734 // PlzNavigate | 738 // PlzNavigate |
| 735 // Sends a FrameHostMsg_BeginNavigation to the browser based on the contents | 739 // Sends a FrameHostMsg_BeginNavigation to the browser based on the contents |
| 736 // of the WebURLRequest. | 740 // of the WebURLRequest. |
| 737 void BeginNavigation(blink::WebURLRequest* request); | 741 void BeginNavigation(blink::WebURLRequest* request); |
| 738 | 742 |
| 739 // Loads a data url. | 743 // Loads a data url. |
| 740 void LoadDataURL(const CommonNavigationParams& params, | 744 void LoadDataURL(const CommonNavigationParams& params, |
| 741 blink::WebFrame* frame); | 745 blink::WebFrame* frame); |
| 742 | 746 |
| 747 // Sends a proper FrameHostMsg_DidFailProvisionalLoadWithError_Params IPC for |
| 748 // the failed request |request|. |
| 749 void SendFailedProvisionalLoad(const blink::WebURLRequest& request, |
| 750 const blink::WebURLError& error, |
| 751 blink::WebLocalFrame* frame); |
| 752 |
| 753 bool ShouldDisplayErrorPageForFailedLoad(int error_code, |
| 754 const GURL& unreachable_url); |
| 755 |
| 743 // Returns the URL being loaded by the |frame_|'s request. | 756 // Returns the URL being loaded by the |frame_|'s request. |
| 744 GURL GetLoadingUrl() const; | 757 GURL GetLoadingUrl() const; |
| 745 | 758 |
| 746 // If we initiated a navigation, this function will populate |document_state| | 759 // If we initiated a navigation, this function will populate |document_state| |
| 747 // with the navigation information saved in OnNavigate(). | 760 // with the navigation information saved in OnNavigate(). |
| 748 void PopulateDocumentStateFromPending(DocumentState* document_state); | 761 void PopulateDocumentStateFromPending(DocumentState* document_state); |
| 749 | 762 |
| 750 // Returns a new NavigationState populated with the navigation information | 763 // Returns a new NavigationState populated with the navigation information |
| 751 // saved in OnNavigate(). | 764 // saved in OnNavigate(). |
| 752 NavigationState* CreateNavigationStateFromPending(); | 765 NavigationState* CreateNavigationStateFromPending(); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 #endif | 941 #endif |
| 929 | 942 |
| 930 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 943 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 931 | 944 |
| 932 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 945 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 933 }; | 946 }; |
| 934 | 947 |
| 935 } // namespace content | 948 } // namespace content |
| 936 | 949 |
| 937 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 950 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |