| 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 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 void BeginNavigation(blink::WebURLRequest* request); | 732 void BeginNavigation(blink::WebURLRequest* request); |
| 733 | 733 |
| 734 // Loads a data url. | 734 // Loads a data url. |
| 735 void LoadDataURL(const CommonNavigationParams& params, | 735 void LoadDataURL(const CommonNavigationParams& params, |
| 736 blink::WebFrame* frame); | 736 blink::WebFrame* frame); |
| 737 | 737 |
| 738 // Sends a proper FrameHostMsg_DidFailProvisionalLoadWithError_Params IPC for | 738 // Sends a proper FrameHostMsg_DidFailProvisionalLoadWithError_Params IPC for |
| 739 // the failed request |request|. | 739 // the failed request |request|. |
| 740 void SendFailedProvisionalLoad(const blink::WebURLRequest& request, | 740 void SendFailedProvisionalLoad(const blink::WebURLRequest& request, |
| 741 const blink::WebURLError& error, | 741 const blink::WebURLError& error, |
| 742 int nav_entry_id, |
| 742 blink::WebLocalFrame* frame); | 743 blink::WebLocalFrame* frame); |
| 743 | 744 |
| 744 bool ShouldDisplayErrorPageForFailedLoad(int error_code, | 745 bool ShouldDisplayErrorPageForFailedLoad(int error_code, |
| 745 const GURL& unreachable_url); | 746 const GURL& unreachable_url); |
| 746 | 747 |
| 747 // Returns the URL being loaded by the |frame_|'s request. | 748 // Returns the URL being loaded by the |frame_|'s request. |
| 748 GURL GetLoadingUrl() const; | 749 GURL GetLoadingUrl() const; |
| 749 | 750 |
| 750 // If we initiated a navigation, this function will populate |document_state| | 751 // If we initiated a navigation, this function will populate |document_state| |
| 751 // with the navigation information saved in OnNavigate(). | 752 // with the navigation information saved in OnNavigate(). |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 #endif | 933 #endif |
| 933 | 934 |
| 934 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 935 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 935 | 936 |
| 936 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 937 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 937 }; | 938 }; |
| 938 | 939 |
| 939 } // namespace content | 940 } // namespace content |
| 940 | 941 |
| 941 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 942 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |