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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 class BrowserContext; | 24 class BrowserContext; |
25 class CrossProcessFrameConnector; | 25 class CrossProcessFrameConnector; |
26 class CrossSiteTransferringRequest; | 26 class CrossSiteTransferringRequest; |
27 class InterstitialPageImpl; | 27 class InterstitialPageImpl; |
28 class FrameTreeNode; | 28 class FrameTreeNode; |
29 class NavigationControllerImpl; | 29 class NavigationControllerImpl; |
30 class NavigationEntry; | 30 class NavigationEntry; |
31 class NavigationEntryImpl; | 31 class NavigationEntryImpl; |
| 32 class NavigationParameters; |
32 class NavigationRequest; | 33 class NavigationRequest; |
33 class RenderFrameHost; | 34 class RenderFrameHost; |
34 class RenderFrameHostDelegate; | 35 class RenderFrameHostDelegate; |
35 class RenderFrameHost; | 36 class RenderFrameHost; |
36 class RenderFrameHostImpl; | 37 class RenderFrameHostImpl; |
37 class RenderFrameHostManagerTest; | 38 class RenderFrameHostManagerTest; |
38 class RenderFrameProxyHost; | 39 class RenderFrameProxyHost; |
39 class RenderViewHost; | 40 class RenderViewHost; |
40 class RenderViewHostImpl; | 41 class RenderViewHostImpl; |
41 class RenderWidgetHostDelegate; | 42 class RenderWidgetHostDelegate; |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 void ResetProxyHosts(); | 310 void ResetProxyHosts(); |
310 | 311 |
311 // Returns the routing id for a RenderFrameHost or RenderFrameHostProxy | 312 // Returns the routing id for a RenderFrameHost or RenderFrameHostProxy |
312 // that has the given SiteInstance and is associated with this | 313 // that has the given SiteInstance and is associated with this |
313 // RenderFrameHostManager. Returns MSG_ROUTING_NONE if none is found. | 314 // RenderFrameHostManager. Returns MSG_ROUTING_NONE if none is found. |
314 int GetRoutingIdForSiteInstance(SiteInstance* site_instance); | 315 int GetRoutingIdForSiteInstance(SiteInstance* site_instance); |
315 | 316 |
316 // PlzNavigate: sends a RequestNavigation IPC to the renderer to ask it to | 317 // PlzNavigate: sends a RequestNavigation IPC to the renderer to ask it to |
317 // navigate. If no live renderer is present, then the navigation request will | 318 // navigate. If no live renderer is present, then the navigation request will |
318 // be sent directly to the ResourceDispatcherHost. | 319 // be sent directly to the ResourceDispatcherHost. |
319 bool RequestNavigation(const NavigationEntryImpl& entry, | 320 bool RequestNavigation( |
320 const FrameMsg_Navigate_Params& navigate_params); | 321 scoped_ptr<NavigationParameters> navigation_parameters); |
321 | 322 |
322 // PlzNavigate: Used to start a navigation. OnBeginNavigation is called | 323 // PlzNavigate: Used to start a navigation. OnBeginNavigation is called |
323 // directly by RequestNavigation when there is no live renderer. Otherwise, it | 324 // directly by RequestNavigation when there is no live renderer. Otherwise, it |
324 // is called following a BeginNavigation IPC from the renderer (which in | 325 // is called following a BeginNavigation IPC from the renderer (which in |
325 // browser-initiated navigation also happens after RequestNavigation has been | 326 // browser-initiated navigation also happens after RequestNavigation has been |
326 // called). | 327 // called). |
327 void OnBeginNavigation(const FrameHostMsg_BeginNavigation_Params& params); | 328 void OnBeginNavigation(const FrameHostMsg_BeginNavigation_Params& params); |
328 | 329 |
329 // PlzNavigate: Called when a navigation request has received a response, to | 330 // PlzNavigate: Called when a navigation request has received a response, to |
330 // select a renderer to use for the navigation. | 331 // select a renderer to use for the navigation. |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 // The intersitial page currently shown if any, not own by this class | 529 // The intersitial page currently shown if any, not own by this class |
529 // (the InterstitialPage is self-owned, it deletes itself when hidden). | 530 // (the InterstitialPage is self-owned, it deletes itself when hidden). |
530 InterstitialPageImpl* interstitial_page_; | 531 InterstitialPageImpl* interstitial_page_; |
531 | 532 |
532 NotificationRegistrar registrar_; | 533 NotificationRegistrar registrar_; |
533 | 534 |
534 // PlzNavigate: Owns a navigation request that originated in that frame until | 535 // PlzNavigate: Owns a navigation request that originated in that frame until |
535 // it commits. | 536 // it commits. |
536 scoped_ptr<NavigationRequest> navigation_request_; | 537 scoped_ptr<NavigationRequest> navigation_request_; |
537 | 538 |
| 539 // PlzNavigate: Holds info that should be sent to the renderer when the |
| 540 // navigation is about to commit. |
| 541 scoped_ptr<NavigationParameters> navigation_parameters_; |
| 542 |
538 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 543 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
539 | 544 |
540 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 545 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
541 }; | 546 }; |
542 | 547 |
543 } // namespace content | 548 } // namespace content |
544 | 549 |
545 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 550 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |