| 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 |
| 192 // Returns whether navigation messages are currently suspended for this | 195 // Returns whether navigation messages are currently suspended for this |
| 193 // RenderFrameHost. Only true during a cross-site navigation, while waiting | 196 // RenderFrameHost. Only true during a cross-site navigation, while waiting |
| 194 // for the onbeforeunload handler. | 197 // for the onbeforeunload handler. |
| 195 bool are_navigations_suspended() const { return navigations_suspended_; } | 198 bool are_navigations_suspended() const { return navigations_suspended_; } |
| 196 | 199 |
| 197 // Suspends (or unsuspends) any navigation messages from being sent from this | 200 // Suspends (or unsuspends) any navigation messages from being sent from this |
| 198 // RenderFrameHost. This is called when a pending RenderFrameHost is created | 201 // RenderFrameHost. This is called when a pending RenderFrameHost is created |
| 199 // for a cross-site navigation, because we must suspend any navigations until | 202 // for a cross-site navigation, because we must suspend any navigations until |
| 200 // we hear back from the old renderer's onbeforeunload handler. Note that it | 203 // we hear back from the old renderer's onbeforeunload handler. Note that it |
| 201 // is important that only one navigation event happen after calling this | 204 // is important that only one navigation event happen after calling this |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; | 427 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; |
| 425 // The most recently received accessibility tree - for testing only. | 428 // The most recently received accessibility tree - for testing only. |
| 426 scoped_ptr<ui::AXTree> ax_tree_for_testing_; | 429 scoped_ptr<ui::AXTree> ax_tree_for_testing_; |
| 427 | 430 |
| 428 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 431 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 429 }; | 432 }; |
| 430 | 433 |
| 431 } // namespace content | 434 } // namespace content |
| 432 | 435 |
| 433 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 436 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |