| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 CrossProcessFrameConnector* cross_process_frame_connector() { | 105 CrossProcessFrameConnector* cross_process_frame_connector() { |
| 106 return cross_process_frame_connector_.get(); | 106 return cross_process_frame_connector_.get(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 // Update the frame's opener in the renderer process in response to the | 109 // Update the frame's opener in the renderer process in response to the |
| 110 // opener being modified (e.g., with window.open or being set to null) in | 110 // opener being modified (e.g., with window.open or being set to null) in |
| 111 // another renderer process. | 111 // another renderer process. |
| 112 void UpdateOpener(); | 112 void UpdateOpener(); |
| 113 | 113 |
| 114 // Set this proxy as the focused frame in the renderer process. This is |
| 115 // called to replicate the focused frame when a frame in a different process |
| 116 // becomes focused. |
| 117 void SetFocusedFrame(); |
| 118 |
| 114 void set_render_frame_proxy_created(bool created) { | 119 void set_render_frame_proxy_created(bool created) { |
| 115 render_frame_proxy_created_ = created; | 120 render_frame_proxy_created_ = created; |
| 116 } | 121 } |
| 117 | 122 |
| 118 // Returns if the RenderFrameProxy for this host is alive. | 123 // Returns if the RenderFrameProxy for this host is alive. |
| 119 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; } | 124 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; } |
| 120 | 125 |
| 121 private: | 126 private: |
| 122 // IPC Message handlers. | 127 // IPC Message handlers. |
| 123 void OnDetach(); | 128 void OnDetach(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts | 162 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts |
| 158 // are associated with it. | 163 // are associated with it. |
| 159 RenderViewHostImpl* render_view_host_; | 164 RenderViewHostImpl* render_view_host_; |
| 160 | 165 |
| 161 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); | 166 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); |
| 162 }; | 167 }; |
| 163 | 168 |
| 164 } // namespace | 169 } // namespace |
| 165 | 170 |
| 166 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 171 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
| OLD | NEW |