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" |
11 #include "content/public/common/page_transition_types.h" | 11 #include "ui/base/page_transition_types.h" |
12 #include "ui/base/window_open_disposition.h" | 12 #include "ui/base/window_open_disposition.h" |
13 | 13 |
14 class GURL; | 14 class GURL; |
15 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 15 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
16 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 16 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 class RenderFrameHostImpl; | 20 class RenderFrameHostImpl; |
21 struct LoadCommittedDetails; | 21 struct LoadCommittedDetails; |
(...skipping 29 matching lines...) Expand all Loading... |
51 | 51 |
52 // A redirect was processed in |render_frame_host| during a provisional load. | 52 // A redirect was processed in |render_frame_host| during a provisional load. |
53 virtual void DidRedirectProvisionalLoad( | 53 virtual void DidRedirectProvisionalLoad( |
54 RenderFrameHostImpl* render_frame_host, | 54 RenderFrameHostImpl* render_frame_host, |
55 const GURL& validated_target_url) {} | 55 const GURL& validated_target_url) {} |
56 | 56 |
57 // A navigation was committed in |render_frame_host|. | 57 // A navigation was committed in |render_frame_host|. |
58 virtual void DidCommitProvisionalLoad( | 58 virtual void DidCommitProvisionalLoad( |
59 RenderFrameHostImpl* render_frame_host, | 59 RenderFrameHostImpl* render_frame_host, |
60 const GURL& url, | 60 const GURL& url, |
61 PageTransition transition_type) {} | 61 ui::PageTransition transition_type) {} |
62 | 62 |
63 // Handles post-navigation tasks in navigation BEFORE the entry has been | 63 // Handles post-navigation tasks in navigation BEFORE the entry has been |
64 // committed to the NavigationController. | 64 // committed to the NavigationController. |
65 virtual void DidNavigateMainFramePreCommit(bool navigation_is_within_page) {} | 65 virtual void DidNavigateMainFramePreCommit(bool navigation_is_within_page) {} |
66 | 66 |
67 // Handles post-navigation tasks in navigation AFTER the entry has been | 67 // Handles post-navigation tasks in navigation AFTER the entry has been |
68 // committed to the NavigationController. Note that the NavigationEntry is | 68 // committed to the NavigationController. Note that the NavigationEntry is |
69 // not provided since it may be invalid/changed after being committed. The | 69 // not provided since it may be invalid/changed after being committed. The |
70 // NavigationController's last committed entry is for this navigation. | 70 // NavigationController's last committed entry is for this navigation. |
71 virtual void DidNavigateMainFramePostCommit( | 71 virtual void DidNavigateMainFramePostCommit( |
(...skipping 29 matching lines...) Expand all Loading... |
101 const OpenURLParams& params) {} | 101 const OpenURLParams& params) {} |
102 | 102 |
103 // Returns whether URLs for aborted browser-initiated navigations should be | 103 // Returns whether URLs for aborted browser-initiated navigations should be |
104 // preserved in the omnibox. Defaults to false. | 104 // preserved in the omnibox. Defaults to false. |
105 virtual bool ShouldPreserveAbortedURLs(); | 105 virtual bool ShouldPreserveAbortedURLs(); |
106 }; | 106 }; |
107 | 107 |
108 } // namspace content | 108 } // namspace content |
109 | 109 |
110 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 110 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
OLD | NEW |