OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROXY_HOST_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/browser/frame_host/render_frame_host_impl.h" | 9 #include "content/browser/frame_host/render_frame_host_impl.h" |
10 #include "content/browser/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // IPC::Sender | 93 // IPC::Sender |
94 virtual bool Send(IPC::Message* msg) OVERRIDE; | 94 virtual bool Send(IPC::Message* msg) OVERRIDE; |
95 | 95 |
96 // IPC::Listener | 96 // IPC::Listener |
97 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 97 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
98 | 98 |
99 CrossProcessFrameConnector* cross_process_frame_connector() { | 99 CrossProcessFrameConnector* cross_process_frame_connector() { |
100 return cross_process_frame_connector_.get(); | 100 return cross_process_frame_connector_.get(); |
101 } | 101 } |
102 | 102 |
| 103 // Set the frame's opener to null in the renderer process in response to an |
| 104 // action in another renderer process. |
| 105 void DisownOpener(); |
| 106 |
103 private: | 107 private: |
104 // This RenderFrameProxyHost's routing id. | 108 // This RenderFrameProxyHost's routing id. |
105 int routing_id_; | 109 int routing_id_; |
106 | 110 |
107 // The SiteInstance this proxy is associated with. | 111 // The SiteInstance this proxy is associated with. |
108 scoped_refptr<SiteInstance> site_instance_; | 112 scoped_refptr<SiteInstance> site_instance_; |
109 | 113 |
110 // The node in the frame tree where this proxy is located. | 114 // The node in the frame tree where this proxy is located. |
111 FrameTreeNode* frame_tree_node_; | 115 FrameTreeNode* frame_tree_node_; |
112 | 116 |
113 // When a RenderFrameHost is in a different process from its parent in the | 117 // When a RenderFrameHost is in a different process from its parent in the |
114 // frame tree, this class connects its associated RenderWidgetHostView | 118 // frame tree, this class connects its associated RenderWidgetHostView |
115 // to this RenderFrameProxyHost, which corresponds to the same frame in the | 119 // to this RenderFrameProxyHost, which corresponds to the same frame in the |
116 // parent's renderer process. | 120 // parent's renderer process. |
117 scoped_ptr<CrossProcessFrameConnector> cross_process_frame_connector_; | 121 scoped_ptr<CrossProcessFrameConnector> cross_process_frame_connector_; |
118 | 122 |
119 // TODO(nasko): This can be removed once we don't have a swapped out state on | 123 // TODO(nasko): This can be removed once we don't have a swapped out state on |
120 // RenderFrameHosts. See https://crbug.com/357747. | 124 // RenderFrameHosts. See https://crbug.com/357747. |
121 scoped_ptr<RenderFrameHostImpl> render_frame_host_; | 125 scoped_ptr<RenderFrameHostImpl> render_frame_host_; |
122 | 126 |
123 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); | 127 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); |
124 }; | 128 }; |
125 | 129 |
126 } // namespace | 130 } // namespace |
127 | 131 |
128 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 132 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
OLD | NEW |