Chromium Code Reviews| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 102 | 102 |
| 103 CrossProcessFrameConnector* cross_process_frame_connector() { | 103 CrossProcessFrameConnector* cross_process_frame_connector() { |
| 104 return cross_process_frame_connector_.get(); | 104 return cross_process_frame_connector_.get(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 // Set the frame's opener to null in the renderer process in response to an | 107 // Set the frame's opener to null in the renderer process in response to an |
| 108 // action in another renderer process. | 108 // action in another renderer process. |
| 109 void DisownOpener(); | 109 void DisownOpener(); |
| 110 | 110 |
| 111 private: | 111 private: |
| 112 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); | |
|
Charlie Reis
2014/09/18 20:22:27
Add:
// IPC Message handlers.
Nate Chapin
2014/09/18 22:39:02
Done.
| |
| 113 | |
| 112 // This RenderFrameProxyHost's routing id. | 114 // This RenderFrameProxyHost's routing id. |
| 113 int routing_id_; | 115 int routing_id_; |
| 114 | 116 |
| 115 // The SiteInstance this proxy is associated with. | 117 // The SiteInstance this proxy is associated with. |
| 116 scoped_refptr<SiteInstance> site_instance_; | 118 scoped_refptr<SiteInstance> site_instance_; |
| 117 | 119 |
| 118 // The node in the frame tree where this proxy is located. | 120 // The node in the frame tree where this proxy is located. |
| 119 FrameTreeNode* frame_tree_node_; | 121 FrameTreeNode* frame_tree_node_; |
| 120 | 122 |
| 121 // When a RenderFrameHost is in a different process from its parent in the | 123 // When a RenderFrameHost is in a different process from its parent in the |
| 122 // frame tree, this class connects its associated RenderWidgetHostView | 124 // frame tree, this class connects its associated RenderWidgetHostView |
| 123 // to this RenderFrameProxyHost, which corresponds to the same frame in the | 125 // to this RenderFrameProxyHost, which corresponds to the same frame in the |
| 124 // parent's renderer process. | 126 // parent's renderer process. |
| 125 scoped_ptr<CrossProcessFrameConnector> cross_process_frame_connector_; | 127 scoped_ptr<CrossProcessFrameConnector> cross_process_frame_connector_; |
| 126 | 128 |
| 127 // TODO(nasko): This can be removed once we don't have a swapped out state on | 129 // TODO(nasko): This can be removed once we don't have a swapped out state on |
| 128 // RenderFrameHosts. See https://crbug.com/357747. | 130 // RenderFrameHosts. See https://crbug.com/357747. |
| 129 scoped_ptr<RenderFrameHostImpl> render_frame_host_; | 131 scoped_ptr<RenderFrameHostImpl> render_frame_host_; |
| 130 | 132 |
| 131 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); | 133 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); |
| 132 }; | 134 }; |
| 133 | 135 |
| 134 } // namespace | 136 } // namespace |
| 135 | 137 |
| 136 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 138 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
| OLD | NEW |