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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
480 void CreateOuterDelegateProxy(SiteInstance* outer_contents_site_instance, | 480 void CreateOuterDelegateProxy(SiteInstance* outer_contents_site_instance, |
481 RenderFrameHostImpl* render_frame_host); | 481 RenderFrameHostImpl* render_frame_host); |
482 | 482 |
483 // Sets the child RenderWidgetHostView for this frame, which must be part of | 483 // Sets the child RenderWidgetHostView for this frame, which must be part of |
484 // an inner WebContents. | 484 // an inner WebContents. |
485 void SetRWHViewForInnerContents(RenderWidgetHostView* child_rwhv); | 485 void SetRWHViewForInnerContents(RenderWidgetHostView* child_rwhv); |
486 | 486 |
487 // Returns the number of RenderFrameProxyHosts for this frame. | 487 // Returns the number of RenderFrameProxyHosts for this frame. |
488 int GetProxyCount(); | 488 int GetProxyCount(); |
489 | 489 |
490 // Sends an IPC message to every process in the FrameTree. | |
nasko
2016/03/03 18:28:57
Let's mention in the comment that it is only suppo
lfg
2016/03/03 22:09:38
Done.
| |
491 void SendPageMessage(IPC::Message* msg); | |
492 | |
490 // Returns a const reference to the map of proxy hosts. The keys are | 493 // Returns a const reference to the map of proxy hosts. The keys are |
491 // SiteInstance IDs, the values are RenderFrameProxyHosts. | 494 // SiteInstance IDs, the values are RenderFrameProxyHosts. |
492 const std::unordered_map<int32_t, scoped_ptr<RenderFrameProxyHost>>& | 495 const std::unordered_map<int32_t, scoped_ptr<RenderFrameProxyHost>>& |
493 GetAllProxyHostsForTesting() const { | 496 GetAllProxyHostsForTesting() const { |
494 return proxy_hosts_; | 497 return proxy_hosts_; |
495 } | 498 } |
496 | 499 |
497 // SiteInstanceImpl::Observer | 500 // SiteInstanceImpl::Observer |
498 void ActiveFrameCountIsZero(SiteInstanceImpl* site_instance) override; | 501 void ActiveFrameCountIsZero(SiteInstanceImpl* site_instance) override; |
499 void RenderProcessGone(SiteInstanceImpl* site_instance) override; | 502 void RenderProcessGone(SiteInstanceImpl* site_instance) override; |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
778 scoped_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 781 scoped_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
779 | 782 |
780 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 783 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
781 | 784 |
782 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 785 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
783 }; | 786 }; |
784 | 787 |
785 } // namespace content | 788 } // namespace content |
786 | 789 |
787 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 790 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |