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_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 bool user_gesture) {} | 107 bool user_gesture) {} |
108 | 108 |
109 // The RenderFrameHostImpl wants to transfer the request to a new renderer. | 109 // The RenderFrameHostImpl wants to transfer the request to a new renderer. |
110 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened | 110 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened |
111 // before the transfer. | 111 // before the transfer. |
112 virtual void RequestTransferURL( | 112 virtual void RequestTransferURL( |
113 RenderFrameHostImpl* render_frame_host, | 113 RenderFrameHostImpl* render_frame_host, |
114 const GURL& url, | 114 const GURL& url, |
115 const std::vector<GURL>& redirect_chain, | 115 const std::vector<GURL>& redirect_chain, |
116 const Referrer& referrer, | 116 const Referrer& referrer, |
117 PageTransition page_transition, | 117 ui::PageTransition page_transition, |
118 WindowOpenDisposition disposition, | 118 WindowOpenDisposition disposition, |
119 const GlobalRequestID& transferred_global_request_id, | 119 const GlobalRequestID& transferred_global_request_id, |
120 bool should_replace_current_entry, | 120 bool should_replace_current_entry, |
121 bool user_gesture) {} | 121 bool user_gesture) {} |
122 | 122 |
123 // PlzNavigate | 123 // PlzNavigate |
124 // Signal |render_frame_host| that a navigation is ready to commit (the | 124 // Signal |render_frame_host| that a navigation is ready to commit (the |
125 // response to the navigation request has been received). | 125 // response to the navigation request has been received). |
126 virtual void CommitNavigation(RenderFrameHostImpl* render_frame_host, | 126 virtual void CommitNavigation(RenderFrameHostImpl* render_frame_host, |
127 const NavigationBeforeCommitInfo& info) {}; | 127 const NavigationBeforeCommitInfo& info) {}; |
128 | 128 |
129 protected: | 129 protected: |
130 friend class base::RefCounted<Navigator>; | 130 friend class base::RefCounted<Navigator>; |
131 virtual ~Navigator() {} | 131 virtual ~Navigator() {} |
132 }; | 132 }; |
133 | 133 |
134 } // namespace content | 134 } // namespace content |
135 | 135 |
136 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 136 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
OLD | NEW |