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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 // function takes ownership of the provided message pointer. | 185 // function takes ownership of the provided message pointer. |
186 // | 186 // |
187 // If a cross-site request is in progress, we may be suspended while waiting | 187 // If a cross-site request is in progress, we may be suspended while waiting |
188 // for the onbeforeunload handler, so this function might buffer the message | 188 // for the onbeforeunload handler, so this function might buffer the message |
189 // rather than sending it. | 189 // rather than sending it. |
190 void Navigate(const FrameMsg_Navigate_Params& params); | 190 void Navigate(const FrameMsg_Navigate_Params& params); |
191 | 191 |
192 // Load the specified URL; this is a shortcut for Navigate(). | 192 // Load the specified URL; this is a shortcut for Navigate(). |
193 void NavigateToURL(const GURL& url); | 193 void NavigateToURL(const GURL& url); |
194 | 194 |
| 195 // Stop the load in progress. |
| 196 void Stop(); |
| 197 |
195 // Returns whether navigation messages are currently suspended for this | 198 // Returns whether navigation messages are currently suspended for this |
196 // RenderFrameHost. Only true during a cross-site navigation, while waiting | 199 // RenderFrameHost. Only true during a cross-site navigation, while waiting |
197 // for the onbeforeunload handler. | 200 // for the onbeforeunload handler. |
198 bool are_navigations_suspended() const { return navigations_suspended_; } | 201 bool are_navigations_suspended() const { return navigations_suspended_; } |
199 | 202 |
200 // Suspends (or unsuspends) any navigation messages from being sent from this | 203 // Suspends (or unsuspends) any navigation messages from being sent from this |
201 // RenderFrameHost. This is called when a pending RenderFrameHost is created | 204 // RenderFrameHost. This is called when a pending RenderFrameHost is created |
202 // for a cross-site navigation, because we must suspend any navigations until | 205 // 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 | 206 // 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 | 207 // is important that only one navigation event happen after calling this |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; | 446 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; |
444 // The most recently received accessibility tree - for testing only. | 447 // The most recently received accessibility tree - for testing only. |
445 scoped_ptr<ui::AXTree> ax_tree_for_testing_; | 448 scoped_ptr<ui::AXTree> ax_tree_for_testing_; |
446 | 449 |
447 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 450 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
448 }; | 451 }; |
449 | 452 |
450 } // namespace content | 453 } // namespace content |
451 | 454 |
452 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 455 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |