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_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
244 | 244 |
245 // Resume navigation paused after receiving response headers. | 245 // Resume navigation paused after receiving response headers. |
246 void ResumeResponseDeferredAtStart(); | 246 void ResumeResponseDeferredAtStart(); |
247 | 247 |
248 // Called when a renderer's frame navigates. | 248 // Called when a renderer's frame navigates. |
249 void DidNavigateFrame(RenderFrameHostImpl* render_frame_host); | 249 void DidNavigateFrame(RenderFrameHostImpl* render_frame_host); |
250 | 250 |
251 // Called when a renderer sets its opener to null. | 251 // Called when a renderer sets its opener to null. |
252 void DidDisownOpener(RenderFrameHost* render_frame_host); | 252 void DidDisownOpener(RenderFrameHost* render_frame_host); |
253 | 253 |
254 // Helper method to create and initialize a RenderFrameHost. If |swapped_out| | 254 // Helper method to create and initialize a RenderFrameHost. |
255 // is true, it will be initially placed on the swapped out hosts list. | |
256 // Returns the routing id of the *view* associated with the frame. | 255 // Returns the routing id of the *view* associated with the frame. |
257 int CreateRenderFrame(SiteInstance* instance, | 256 int CreateRenderFrame(SiteInstance* instance, |
Charlie Reis
2014/10/08 21:21:13
Thanks for updating the comment. Can you also men
| |
258 int opener_route_id, | 257 int opener_route_id, |
259 bool swapped_out, | 258 int flags); |
260 bool for_main_frame_navigation, | |
261 bool hidden); | |
262 | 259 |
263 // Helper method to create and initialize a RenderFrameProxyHost and return | 260 // Helper method to create and initialize a RenderFrameProxyHost and return |
264 // its routing id. | 261 // its routing id. |
265 int CreateRenderFrameProxy(SiteInstance* instance); | 262 int CreateRenderFrameProxy(SiteInstance* instance); |
266 | 263 |
267 // Sets the passed passed interstitial as the currently showing interstitial. | 264 // Sets the passed passed interstitial as the currently showing interstitial. |
268 // |interstitial_page| should be non NULL (use the remove_interstitial_page | 265 // |interstitial_page| should be non NULL (use the remove_interstitial_page |
269 // method to unset the interstitial) and no interstitial page should be set | 266 // method to unset the interstitial) and no interstitial page should be set |
270 // when there is already a non NULL interstitial page set. | 267 // when there is already a non NULL interstitial page set. |
271 void set_interstitial_page(InterstitialPageImpl* interstitial_page) { | 268 void set_interstitial_page(InterstitialPageImpl* interstitial_page) { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
390 // the opener route if needed and stores it in pending_render_frame_host_. | 387 // the opener route if needed and stores it in pending_render_frame_host_. |
391 void CreateRenderFrameHostForNewSiteInstance( | 388 void CreateRenderFrameHostForNewSiteInstance( |
392 SiteInstance* old_instance, | 389 SiteInstance* old_instance, |
393 SiteInstance* new_instance, | 390 SiteInstance* new_instance, |
394 bool is_main_frame); | 391 bool is_main_frame); |
395 | 392 |
396 // Creates a RenderFrameHost and corresponding RenderViewHost if necessary. | 393 // Creates a RenderFrameHost and corresponding RenderViewHost if necessary. |
397 scoped_ptr<RenderFrameHostImpl> CreateRenderFrameHost(SiteInstance* instance, | 394 scoped_ptr<RenderFrameHostImpl> CreateRenderFrameHost(SiteInstance* instance, |
398 int view_routing_id, | 395 int view_routing_id, |
399 int frame_routing_id, | 396 int frame_routing_id, |
400 bool swapped_out, | 397 int flags); |
401 bool hidden); | |
402 | 398 |
403 // Sets up the necessary state for a new RenderViewHost with the given opener, | 399 // Sets up the necessary state for a new RenderViewHost with the given opener, |
404 // if necessary. It creates a RenderFrameProxy in the target renderer process | 400 // if necessary. It creates a RenderFrameProxy in the target renderer process |
405 // with the given |proxy_routing_id|, which is used to route IPC messages when | 401 // with the given |proxy_routing_id|, which is used to route IPC messages when |
406 // in swapped out state. Returns early if the RenderViewHost has already been | 402 // in swapped out state. Returns early if the RenderViewHost has already been |
407 // initialized for another RenderFrameHost. | 403 // initialized for another RenderFrameHost. |
408 // TODO(creis): opener_route_id is currently for the RenderViewHost but should | 404 // TODO(creis): opener_route_id is currently for the RenderViewHost but should |
409 // be for the RenderFrame, since frames can have openers. | 405 // be for the RenderFrame, since frames can have openers. |
410 bool InitRenderView(RenderViewHostImpl* render_view_host, | 406 bool InitRenderView(RenderViewHostImpl* render_view_host, |
411 int opener_route_id, | 407 int opener_route_id, |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
531 NotificationRegistrar registrar_; | 527 NotificationRegistrar registrar_; |
532 | 528 |
533 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 529 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
534 | 530 |
535 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 531 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
536 }; | 532 }; |
537 | 533 |
538 } // namespace content | 534 } // namespace content |
539 | 535 |
540 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 536 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |