| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 // Deletes any proxy hosts associated with this node. Used during destruction | 377 // Deletes any proxy hosts associated with this node. Used during destruction |
| 378 // of WebContentsImpl. | 378 // of WebContentsImpl. |
| 379 void ResetProxyHosts(); | 379 void ResetProxyHosts(); |
| 380 | 380 |
| 381 // Returns the routing id for a RenderFrameHost or RenderFrameHostProxy | 381 // Returns the routing id for a RenderFrameHost or RenderFrameHostProxy |
| 382 // that has the given SiteInstance and is associated with this | 382 // that has the given SiteInstance and is associated with this |
| 383 // RenderFrameHostManager. Returns MSG_ROUTING_NONE if none is found. | 383 // RenderFrameHostManager. Returns MSG_ROUTING_NONE if none is found. |
| 384 int GetRoutingIdForSiteInstance(SiteInstance* site_instance); | 384 int GetRoutingIdForSiteInstance(SiteInstance* site_instance); |
| 385 | 385 |
| 386 // PlzNavigate | 386 // PlzNavigate |
| 387 // Notifies the RFHM that a navigation has begun so that it can speculatively | 387 // Notifies the RenderFrameHostManager that a new NavigationRequest has been |
| 388 // create a new RenderFrameHost (and potentially a new process) if needed. | 388 // created and set in the FrameTreeNode so that it can speculatively create a |
| 389 void BeginNavigation(const NavigationRequest& request); | 389 // new RenderFrameHost (and potentially a new process) if needed. |
| 390 void DidCreateNavigationRequest(const NavigationRequest& request); |
| 390 | 391 |
| 391 // PlzNavigate | 392 // PlzNavigate |
| 392 // Called (possibly several times) during a navigation to select or create an | 393 // Called (possibly several times) during a navigation to select or create an |
| 393 // appropriate RenderFrameHost for the provided URL. The returned pointer will | 394 // appropriate RenderFrameHost for the provided URL. The returned pointer will |
| 394 // be for the current or the speculative RenderFrameHost and the instance is | 395 // be for the current or the speculative RenderFrameHost and the instance is |
| 395 // owned by this manager. | 396 // owned by this manager. |
| 396 RenderFrameHostImpl* GetFrameHostForNavigation( | 397 RenderFrameHostImpl* GetFrameHostForNavigation( |
| 397 const NavigationRequest& request); | 398 const NavigationRequest& request); |
| 398 | 399 |
| 399 // PlzNavigate | 400 // PlzNavigate |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 bool should_reuse_web_ui_; | 735 bool should_reuse_web_ui_; |
| 735 | 736 |
| 736 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 737 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 737 | 738 |
| 738 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 739 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 739 }; | 740 }; |
| 740 | 741 |
| 741 } // namespace content | 742 } // namespace content |
| 742 | 743 |
| 743 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 744 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |