| 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 class BrowserContext; | 26 class BrowserContext; |
| 27 class CrossProcessFrameConnector; | 27 class CrossProcessFrameConnector; |
| 28 class CrossSiteTransferringRequest; | 28 class CrossSiteTransferringRequest; |
| 29 class FrameTreeNode; | 29 class FrameTreeNode; |
| 30 class InterstitialPageImpl; | 30 class InterstitialPageImpl; |
| 31 class NavigationControllerImpl; | 31 class NavigationControllerImpl; |
| 32 class NavigationEntry; | 32 class NavigationEntry; |
| 33 class NavigationEntryImpl; | 33 class NavigationEntryImpl; |
| 34 class NavigationRequest; |
| 34 class NavigatorTestWithBrowserSideNavigation; | 35 class NavigatorTestWithBrowserSideNavigation; |
| 35 class RenderFrameHost; | 36 class RenderFrameHost; |
| 36 class RenderFrameHostDelegate; | 37 class RenderFrameHostDelegate; |
| 37 class RenderFrameHostImpl; | 38 class RenderFrameHostImpl; |
| 38 class RenderFrameHostManagerTest; | 39 class RenderFrameHostManagerTest; |
| 39 class RenderFrameProxyHost; | 40 class RenderFrameProxyHost; |
| 40 class RenderViewHost; | 41 class RenderViewHost; |
| 41 class RenderViewHostImpl; | 42 class RenderViewHostImpl; |
| 42 class RenderWidgetHostDelegate; | 43 class RenderWidgetHostDelegate; |
| 43 class RenderWidgetHostView; | 44 class RenderWidgetHostView; |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 void ResetProxyHosts(); | 366 void ResetProxyHosts(); |
| 366 | 367 |
| 367 // Returns the routing id for a RenderFrameHost or RenderFrameHostProxy | 368 // Returns the routing id for a RenderFrameHost or RenderFrameHostProxy |
| 368 // that has the given SiteInstance and is associated with this | 369 // that has the given SiteInstance and is associated with this |
| 369 // RenderFrameHostManager. Returns MSG_ROUTING_NONE if none is found. | 370 // RenderFrameHostManager. Returns MSG_ROUTING_NONE if none is found. |
| 370 int GetRoutingIdForSiteInstance(SiteInstance* site_instance); | 371 int GetRoutingIdForSiteInstance(SiteInstance* site_instance); |
| 371 | 372 |
| 372 // PlzNavigate | 373 // PlzNavigate |
| 373 // Notifies the RFHM that a navigation has begun so that it can speculatively | 374 // Notifies the RFHM that a navigation has begun so that it can speculatively |
| 374 // create a new RenderFrameHost (and potentially a new process) if needed. | 375 // create a new RenderFrameHost (and potentially a new process) if needed. |
| 375 void BeginNavigation(const CommonNavigationParams& common_params); | 376 void BeginNavigation(const NavigationRequest& request); |
| 376 | 377 |
| 377 // PlzNavigate | 378 // PlzNavigate |
| 378 // Called (possibly several times) during a navigation to select or create an | 379 // Called (possibly several times) during a navigation to select or create an |
| 379 // appropriate RenderFrameHost for the provided URL. The returned pointer will | 380 // appropriate RenderFrameHost for the provided URL. The returned pointer will |
| 380 // be for the current or the speculative RenderFrameHost and the instance is | 381 // be for the current or the speculative RenderFrameHost and the instance is |
| 381 // owned by this manager. | 382 // owned by this manager. |
| 382 RenderFrameHostImpl* GetFrameHostForNavigation(const GURL& url, | 383 RenderFrameHostImpl* GetFrameHostForNavigation( |
| 383 ui::PageTransition transition); | 384 const NavigationRequest& request); |
| 384 | 385 |
| 385 // PlzNavigate | 386 // PlzNavigate |
| 386 // Clean up any state for any ongoing navigation. | 387 // Clean up any state for any ongoing navigation. |
| 387 void CleanUpNavigation(); | 388 void CleanUpNavigation(); |
| 388 | 389 |
| 389 // PlzNavigate | 390 // PlzNavigate |
| 390 // Clears the speculative members, returning the RenderFrameHost to the caller | 391 // Clears the speculative members, returning the RenderFrameHost to the caller |
| 391 // for disposal. | 392 // for disposal. |
| 392 scoped_ptr<RenderFrameHostImpl> UnsetSpeculativeRenderFrameHost(); | 393 scoped_ptr<RenderFrameHostImpl> UnsetSpeculativeRenderFrameHost(); |
| 393 | 394 |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 bool should_reuse_web_ui_; | 671 bool should_reuse_web_ui_; |
| 671 | 672 |
| 672 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 673 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 673 | 674 |
| 674 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 675 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 675 }; | 676 }; |
| 676 | 677 |
| 677 } // namespace content | 678 } // namespace content |
| 678 | 679 |
| 679 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 680 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |