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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 // function takes ownership of the provided message pointer. | 245 // function takes ownership of the provided message pointer. |
246 // | 246 // |
247 // If a cross-site request is in progress, we may be suspended while waiting | 247 // If a cross-site request is in progress, we may be suspended while waiting |
248 // for the onbeforeunload handler, so this function might buffer the message | 248 // for the onbeforeunload handler, so this function might buffer the message |
249 // rather than sending it. | 249 // rather than sending it. |
250 void Navigate(const FrameMsg_Navigate_Params& params); | 250 void Navigate(const FrameMsg_Navigate_Params& params); |
251 | 251 |
252 // Load the specified URL; this is a shortcut for Navigate(). | 252 // Load the specified URL; this is a shortcut for Navigate(). |
253 void NavigateToURL(const GURL& url); | 253 void NavigateToURL(const GURL& url); |
254 | 254 |
| 255 // Treat this prospective navigation as thought it originated from the |
| 256 // frame. Used, e.g., for a navigation request that originated from |
| 257 // a RemoteFrame. |
| 258 void OpenURL(const FrameHostMsg_OpenURL_Params& params); |
| 259 |
255 // Stop the load in progress. | 260 // Stop the load in progress. |
256 void Stop(); | 261 void Stop(); |
257 | 262 |
258 // Returns whether navigation messages are currently suspended for this | 263 // Returns whether navigation messages are currently suspended for this |
259 // RenderFrameHost. Only true during a cross-site navigation, while waiting | 264 // RenderFrameHost. Only true during a cross-site navigation, while waiting |
260 // for the onbeforeunload handler. | 265 // for the onbeforeunload handler. |
261 bool are_navigations_suspended() const { return navigations_suspended_; } | 266 bool are_navigations_suspended() const { return navigations_suspended_; } |
262 | 267 |
263 // Suspends (or unsuspends) any navigation messages from being sent from this | 268 // Suspends (or unsuspends) any navigation messages from being sent from this |
264 // RenderFrameHost. This is called when a pending RenderFrameHost is created | 269 // RenderFrameHost. This is called when a pending RenderFrameHost is created |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 | 558 |
554 // NOTE: This must be the last member. | 559 // NOTE: This must be the last member. |
555 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 560 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
556 | 561 |
557 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 562 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
558 }; | 563 }; |
559 | 564 |
560 } // namespace content | 565 } // namespace content |
561 | 566 |
562 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 567 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |