| 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 void DidCancelPopupMenu(); | 356 void DidCancelPopupMenu(); |
| 357 #endif | 357 #endif |
| 358 | 358 |
| 359 // PlzNavigate: Indicates that a navigation is ready to commit and can be | 359 // PlzNavigate: Indicates that a navigation is ready to commit and can be |
| 360 // handled by this RenderFrame. | 360 // handled by this RenderFrame. |
| 361 void CommitNavigation(ResourceResponse* response, | 361 void CommitNavigation(ResourceResponse* response, |
| 362 scoped_ptr<StreamHandle> body, | 362 scoped_ptr<StreamHandle> body, |
| 363 const CommonNavigationParams& common_params, | 363 const CommonNavigationParams& common_params, |
| 364 const CommitNavigationParams& commit_params); | 364 const CommitNavigationParams& commit_params); |
| 365 | 365 |
| 366 // Sets up the Mojo connection between this instance and its associated render |
| 367 // frame if it has not yet been set up. |
| 368 void SetUpMojoIfNeeded(); |
| 369 |
| 370 // Tears down the browser-side state relating to the Mojo connection between |
| 371 // this instance and its associated render frame. |
| 372 void InvalidateMojoConnection(); |
| 373 |
| 366 protected: | 374 protected: |
| 367 friend class RenderFrameHostFactory; | 375 friend class RenderFrameHostFactory; |
| 368 | 376 |
| 369 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost | 377 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost |
| 370 // should be the abstraction needed here, but we need RenderViewHost to pass | 378 // should be the abstraction needed here, but we need RenderViewHost to pass |
| 371 // into WebContentsObserver::FrameDetached for now. | 379 // into WebContentsObserver::FrameDetached for now. |
| 372 RenderFrameHostImpl(RenderViewHostImpl* render_view_host, | 380 RenderFrameHostImpl(RenderViewHostImpl* render_view_host, |
| 373 RenderFrameHostDelegate* delegate, | 381 RenderFrameHostDelegate* delegate, |
| 374 FrameTree* frame_tree, | 382 FrameTree* frame_tree, |
| 375 FrameTreeNode* frame_tree_node, | 383 FrameTreeNode* frame_tree_node, |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 // IsWaitingForUnloadACK is true. This tells us if the unload request | 559 // IsWaitingForUnloadACK is true. This tells us if the unload request |
| 552 // is for closing the entire tab ( = false), or only this RenderFrameHost in | 560 // is for closing the entire tab ( = false), or only this RenderFrameHost in |
| 553 // the case of a cross-site transition ( = true). | 561 // the case of a cross-site transition ( = true). |
| 554 bool unload_ack_is_for_cross_site_transition_; | 562 bool unload_ack_is_for_cross_site_transition_; |
| 555 | 563 |
| 556 // Used to swap out or shut down this RFH when the unload event is taking too | 564 // Used to swap out or shut down this RFH when the unload event is taking too |
| 557 // long to execute, depending on the number of active frames in the | 565 // long to execute, depending on the number of active frames in the |
| 558 // SiteInstance. | 566 // SiteInstance. |
| 559 scoped_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; | 567 scoped_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; |
| 560 | 568 |
| 561 ServiceRegistryImpl service_registry_; | 569 scoped_ptr<ServiceRegistryImpl> service_registry_; |
| 562 | 570 |
| 563 #if defined(OS_ANDROID) | 571 #if defined(OS_ANDROID) |
| 564 scoped_ptr<ServiceRegistryAndroid> service_registry_android_; | 572 scoped_ptr<ServiceRegistryAndroid> service_registry_android_; |
| 565 #endif | 573 #endif |
| 566 | 574 |
| 567 // The object managing the accessibility tree for this frame. | 575 // The object managing the accessibility tree for this frame. |
| 568 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 576 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
| 569 | 577 |
| 570 // This is nonzero if we sent an accessibility reset to the renderer and | 578 // This is nonzero if we sent an accessibility reset to the renderer and |
| 571 // we're waiting for an IPC containing this reset token (sequentially | 579 // we're waiting for an IPC containing this reset token (sequentially |
| (...skipping 18 matching lines...) Expand all Loading... |
| 590 | 598 |
| 591 // NOTE: This must be the last member. | 599 // NOTE: This must be the last member. |
| 592 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 600 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 593 | 601 |
| 594 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 602 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 595 }; | 603 }; |
| 596 | 604 |
| 597 } // namespace content | 605 } // namespace content |
| 598 | 606 |
| 599 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 607 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |