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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
382 | 382 |
383 // PlzNavigate | 383 // PlzNavigate |
384 // Notifies the RFHM that a navigation has begun so that it can speculatively | 384 // Notifies the RFHM that a navigation has begun so that it can speculatively |
385 // create a new RenderFrameHost (and potentially a new process) if needed. | 385 // create a new RenderFrameHost (and potentially a new process) if needed. |
386 void BeginNavigation(const NavigationRequest& request); | 386 void BeginNavigation(const NavigationRequest& request); |
387 | 387 |
388 // PlzNavigate | 388 // PlzNavigate |
389 // Called (possibly several times) during a navigation to select or create an | 389 // Called (possibly several times) during a navigation to select or create an |
390 // appropriate RenderFrameHost for the provided URL. The returned pointer will | 390 // appropriate RenderFrameHost for the provided URL. The returned pointer will |
391 // be for the current or the speculative RenderFrameHost and the instance is | 391 // be for the current or the speculative RenderFrameHost and the instance is |
392 // owned by this manager. | 392 // owned by this manager. ¬for_commit¬ is true if it is the final call in the |
nasko
2015/03/30 22:35:22
nit: The characters around "for_commit" aren't som
| |
393 // navigation, and the renderer selected will commit the navigation. | |
393 RenderFrameHostImpl* GetFrameHostForNavigation( | 394 RenderFrameHostImpl* GetFrameHostForNavigation( |
394 const NavigationRequest& request); | 395 const NavigationRequest& request, |
396 bool for_commit); | |
395 | 397 |
396 // PlzNavigate | 398 // PlzNavigate |
397 // Clean up any state for any ongoing navigation. | 399 // Clean up any state for any ongoing navigation. |
398 void CleanUpNavigation(); | 400 void CleanUpNavigation(); |
399 | 401 |
400 // PlzNavigate | 402 // PlzNavigate |
401 // Clears the speculative members, returning the RenderFrameHost to the caller | 403 // Clears the speculative members, returning the RenderFrameHost to the caller |
402 // for disposal. | 404 // for disposal. |
403 scoped_ptr<RenderFrameHostImpl> UnsetSpeculativeRenderFrameHost(); | 405 scoped_ptr<RenderFrameHostImpl> UnsetSpeculativeRenderFrameHost(); |
404 | 406 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
614 | 616 |
615 // For use in creating RenderFrameHosts. | 617 // For use in creating RenderFrameHosts. |
616 FrameTreeNode* frame_tree_node_; | 618 FrameTreeNode* frame_tree_node_; |
617 | 619 |
618 // Our delegate, not owned by us. Guaranteed non-NULL. | 620 // Our delegate, not owned by us. Guaranteed non-NULL. |
619 Delegate* delegate_; | 621 Delegate* delegate_; |
620 | 622 |
621 // Whether a navigation requiring different RenderFrameHosts is pending. This | 623 // Whether a navigation requiring different RenderFrameHosts is pending. This |
622 // is either for cross-site requests or when required for the process type | 624 // is either for cross-site requests or when required for the process type |
623 // (like WebUI). | 625 // (like WebUI). |
624 // PlzNavigate: |cross_navigation_pending_| is not used for browser-side | 626 // PlzNavigate: |cross_navigation_pending_| is used to signal that the |
627 // speculative_render_frame_host_ is in the process of committing the | |
625 // navigation. | 628 // navigation. |
626 bool cross_navigation_pending_; | 629 bool cross_navigation_pending_; |
627 | 630 |
628 // Implemented by the owner of this class. These delegates are installed into | 631 // Implemented by the owner of this class. These delegates are installed into |
629 // all the RenderFrameHosts that we create. | 632 // all the RenderFrameHosts that we create. |
630 RenderFrameHostDelegate* render_frame_delegate_; | 633 RenderFrameHostDelegate* render_frame_delegate_; |
631 RenderViewHostDelegate* render_view_delegate_; | 634 RenderViewHostDelegate* render_view_delegate_; |
632 RenderWidgetHostDelegate* render_widget_delegate_; | 635 RenderWidgetHostDelegate* render_widget_delegate_; |
633 | 636 |
634 // Our RenderFrameHost and its associated Web UI (if any, will be NULL for | 637 // Our RenderFrameHost and its associated Web UI (if any, will be NULL for |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
703 bool should_reuse_web_ui_; | 706 bool should_reuse_web_ui_; |
704 | 707 |
705 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 708 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
706 | 709 |
707 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 710 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
708 }; | 711 }; |
709 | 712 |
710 } // namespace content | 713 } // namespace content |
711 | 714 |
712 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 715 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |