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_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "content/public/browser/invalidate_type.h" | 9 #include "content/public/browser/invalidate_type.h" |
10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 RenderFrameHostImpl* render_frame_host, | 42 RenderFrameHostImpl* render_frame_host, |
43 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {} | 43 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {} |
44 | 44 |
45 // Document load in |render_frame_host| failed. | 45 // Document load in |render_frame_host| failed. |
46 virtual void DidFailLoadWithError( | 46 virtual void DidFailLoadWithError( |
47 RenderFrameHostImpl* render_frame_host, | 47 RenderFrameHostImpl* render_frame_host, |
48 const GURL& url, | 48 const GURL& url, |
49 int error_code, | 49 int error_code, |
50 const base::string16& error_description) {} | 50 const base::string16& error_description) {} |
51 | 51 |
52 // A redirect was processed in |render_frame_host| during a provisional load. | |
53 virtual void DidRedirectProvisionalLoad( | |
54 RenderFrameHostImpl* render_frame_host, | |
55 const GURL& validated_target_url) {} | |
56 | |
57 // A navigation was committed in |render_frame_host|. | 52 // A navigation was committed in |render_frame_host|. |
58 virtual void DidCommitProvisionalLoad( | 53 virtual void DidCommitProvisionalLoad( |
59 RenderFrameHostImpl* render_frame_host, | 54 RenderFrameHostImpl* render_frame_host, |
60 const GURL& url, | 55 const GURL& url, |
61 ui::PageTransition transition_type) {} | 56 ui::PageTransition transition_type) {} |
62 | 57 |
63 // Handles post-navigation tasks in navigation BEFORE the entry has been | 58 // Handles post-navigation tasks in navigation BEFORE the entry has been |
64 // committed to the NavigationController. | 59 // committed to the NavigationController. |
65 virtual void DidNavigateMainFramePreCommit(bool navigation_is_within_page) {} | 60 virtual void DidNavigateMainFramePreCommit(bool navigation_is_within_page) {} |
66 | 61 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 const OpenURLParams& params) {} | 96 const OpenURLParams& params) {} |
102 | 97 |
103 // Returns whether URLs for aborted browser-initiated navigations should be | 98 // Returns whether URLs for aborted browser-initiated navigations should be |
104 // preserved in the omnibox. Defaults to false. | 99 // preserved in the omnibox. Defaults to false. |
105 virtual bool ShouldPreserveAbortedURLs(); | 100 virtual bool ShouldPreserveAbortedURLs(); |
106 }; | 101 }; |
107 | 102 |
108 } // namspace content | 103 } // namspace content |
109 | 104 |
110 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 105 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
OLD | NEW |