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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
348 void DidCancelPopupMenu(); | 348 void DidCancelPopupMenu(); |
349 #endif | 349 #endif |
350 | 350 |
351 // PlzNavigate: Indicates that a navigation is ready to commit and can be | 351 // PlzNavigate: Indicates that a navigation is ready to commit and can be |
352 // handled by this RenderFrame. | 352 // handled by this RenderFrame. |
353 void CommitNavigation(ResourceResponse* response, | 353 void CommitNavigation(ResourceResponse* response, |
354 scoped_ptr<StreamHandle> body, | 354 scoped_ptr<StreamHandle> body, |
355 const CommonNavigationParams& common_params, | 355 const CommonNavigationParams& common_params, |
356 const CommitNavigationParams& commit_params); | 356 const CommitNavigationParams& commit_params); |
357 | 357 |
358 // Sets up the Mojo connection between this instance and its associated render | |
359 // frame if it has not yet been set up. | |
360 void SetUpMojoIfNeeded(); | |
nasko
2014/10/23 15:59:08
nit: I don't see "IfNeeded" suffix adding much use
Charlie Reis
2014/10/23 18:38:31
I would be ok with keeping the IfNeeded part. Not
blundell
2014/10/24 14:42:54
Personally I like the |IfNeeded()|. Contrast this
| |
361 | |
362 // Tears down the browser-side state relating to the Mojo connection between | |
363 // this instance and its associated render frame. | |
364 void InvalidateMojoConnection(); | |
365 | |
358 protected: | 366 protected: |
359 friend class RenderFrameHostFactory; | 367 friend class RenderFrameHostFactory; |
360 | 368 |
361 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost | 369 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost |
362 // should be the abstraction needed here, but we need RenderViewHost to pass | 370 // should be the abstraction needed here, but we need RenderViewHost to pass |
363 // into WebContentsObserver::FrameDetached for now. | 371 // into WebContentsObserver::FrameDetached for now. |
364 RenderFrameHostImpl(RenderViewHostImpl* render_view_host, | 372 RenderFrameHostImpl(RenderViewHostImpl* render_view_host, |
365 RenderFrameHostDelegate* delegate, | 373 RenderFrameHostDelegate* delegate, |
366 FrameTree* frame_tree, | 374 FrameTree* frame_tree, |
367 FrameTreeNode* frame_tree_node, | 375 FrameTreeNode* frame_tree_node, |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
542 // IsWaitingForUnloadACK is true. This tells us if the unload request | 550 // IsWaitingForUnloadACK is true. This tells us if the unload request |
543 // is for closing the entire tab ( = false), or only this RenderFrameHost in | 551 // is for closing the entire tab ( = false), or only this RenderFrameHost in |
544 // the case of a cross-site transition ( = true). | 552 // the case of a cross-site transition ( = true). |
545 bool unload_ack_is_for_cross_site_transition_; | 553 bool unload_ack_is_for_cross_site_transition_; |
546 | 554 |
547 // Used to swap out or shut down this RFH when the unload event is taking too | 555 // Used to swap out or shut down this RFH when the unload event is taking too |
548 // long to execute, depending on the number of active frames in the | 556 // long to execute, depending on the number of active frames in the |
549 // SiteInstance. | 557 // SiteInstance. |
550 scoped_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; | 558 scoped_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; |
551 | 559 |
552 ServiceRegistryImpl service_registry_; | 560 scoped_ptr<ServiceRegistryImpl> service_registry_; |
553 | 561 |
554 #if defined(OS_ANDROID) | 562 #if defined(OS_ANDROID) |
555 scoped_ptr<ServiceRegistryAndroid> service_registry_android_; | 563 scoped_ptr<ServiceRegistryAndroid> service_registry_android_; |
556 #endif | 564 #endif |
557 | 565 |
558 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 566 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
559 | 567 |
560 // Callback when an event is received, for testing. | 568 // Callback when an event is received, for testing. |
561 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; | 569 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; |
562 // The most recently received accessibility tree - for testing only. | 570 // The most recently received accessibility tree - for testing only. |
(...skipping 13 matching lines...) Expand all Loading... | |
576 | 584 |
577 // NOTE: This must be the last member. | 585 // NOTE: This must be the last member. |
578 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 586 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
579 | 587 |
580 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 588 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
581 }; | 589 }; |
582 | 590 |
583 } // namespace content | 591 } // namespace content |
584 | 592 |
585 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 593 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |