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_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // function takes ownership of the provided message pointer. | 182 // function takes ownership of the provided message pointer. |
183 // | 183 // |
184 // If a cross-site request is in progress, we may be suspended while waiting | 184 // If a cross-site request is in progress, we may be suspended while waiting |
185 // for the onbeforeunload handler, so this function might buffer the message | 185 // for the onbeforeunload handler, so this function might buffer the message |
186 // rather than sending it. | 186 // rather than sending it. |
187 void Navigate(const FrameMsg_Navigate_Params& params); | 187 void Navigate(const FrameMsg_Navigate_Params& params); |
188 | 188 |
189 // Load the specified URL; this is a shortcut for Navigate(). | 189 // Load the specified URL; this is a shortcut for Navigate(). |
190 void NavigateToURL(const GURL& url); | 190 void NavigateToURL(const GURL& url); |
191 | 191 |
192 // Stop the load in progress. | |
193 void Stop(); | |
194 | |
195 // Returns whether navigation messages are currently suspended for this | 192 // Returns whether navigation messages are currently suspended for this |
196 // RenderFrameHost. Only true during a cross-site navigation, while waiting | 193 // RenderFrameHost. Only true during a cross-site navigation, while waiting |
197 // for the onbeforeunload handler. | 194 // for the onbeforeunload handler. |
198 bool are_navigations_suspended() const { return navigations_suspended_; } | 195 bool are_navigations_suspended() const { return navigations_suspended_; } |
199 | 196 |
200 // Suspends (or unsuspends) any navigation messages from being sent from this | 197 // Suspends (or unsuspends) any navigation messages from being sent from this |
201 // RenderFrameHost. This is called when a pending RenderFrameHost is created | 198 // RenderFrameHost. This is called when a pending RenderFrameHost is created |
202 // for a cross-site navigation, because we must suspend any navigations until | 199 // for a cross-site navigation, because we must suspend any navigations until |
203 // we hear back from the old renderer's onbeforeunload handler. Note that it | 200 // we hear back from the old renderer's onbeforeunload handler. Note that it |
204 // is important that only one navigation event happen after calling this | 201 // is important that only one navigation event happen after calling this |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; | 424 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; |
428 // The most recently received accessibility tree - for testing only. | 425 // The most recently received accessibility tree - for testing only. |
429 scoped_ptr<ui::AXTree> ax_tree_for_testing_; | 426 scoped_ptr<ui::AXTree> ax_tree_for_testing_; |
430 | 427 |
431 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 428 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
432 }; | 429 }; |
433 | 430 |
434 } // namespace content | 431 } // namespace content |
435 | 432 |
436 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 433 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |