| 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" |
| 11 #include "ipc/ipc_listener.h" | 11 #include "ipc/ipc_listener.h" |
| 12 #include "ipc/ipc_sender.h" | 12 #include "ipc/ipc_sender.h" |
| 13 #include "third_party/WebKit/public/platform/WebFocusType.h" |
| 13 | 14 |
| 14 struct FrameMsg_PostMessage_Params; | 15 struct FrameMsg_PostMessage_Params; |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 | 18 |
| 18 class CrossProcessFrameConnector; | 19 class CrossProcessFrameConnector; |
| 19 class FrameTreeNode; | 20 class FrameTreeNode; |
| 20 class RenderProcessHost; | 21 class RenderProcessHost; |
| 21 class RenderFrameHostImpl; | 22 class RenderFrameHostImpl; |
| 22 class RenderViewHostImpl; | 23 class RenderViewHostImpl; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 123 |
| 123 // Returns if the RenderFrameProxy for this host is alive. | 124 // Returns if the RenderFrameProxy for this host is alive. |
| 124 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; } | 125 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; } |
| 125 | 126 |
| 126 private: | 127 private: |
| 127 // IPC Message handlers. | 128 // IPC Message handlers. |
| 128 void OnDetach(); | 129 void OnDetach(); |
| 129 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); | 130 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); |
| 130 void OnRouteMessageEvent(const FrameMsg_PostMessage_Params& params); | 131 void OnRouteMessageEvent(const FrameMsg_PostMessage_Params& params); |
| 131 void OnDidChangeOpener(int32 opener_routing_id); | 132 void OnDidChangeOpener(int32 opener_routing_id); |
| 133 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); |
| 132 | 134 |
| 133 // This RenderFrameProxyHost's routing id. | 135 // This RenderFrameProxyHost's routing id. |
| 134 int routing_id_; | 136 int routing_id_; |
| 135 | 137 |
| 136 // The SiteInstance this proxy is associated with. | 138 // The SiteInstance this proxy is associated with. |
| 137 scoped_refptr<SiteInstance> site_instance_; | 139 scoped_refptr<SiteInstance> site_instance_; |
| 138 | 140 |
| 139 // The renderer process this RenderFrameHostProxy is associated with. It is | 141 // The renderer process this RenderFrameHostProxy is associated with. It is |
| 140 // equivalent to the result of site_instance_->GetProcess(), but that | 142 // equivalent to the result of site_instance_->GetProcess(), but that |
| 141 // method has the side effect of creating the process if it doesn't exist. | 143 // method has the side effect of creating the process if it doesn't exist. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 162 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts | 164 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts |
| 163 // are associated with it. | 165 // are associated with it. |
| 164 RenderViewHostImpl* render_view_host_; | 166 RenderViewHostImpl* render_view_host_; |
| 165 | 167 |
| 166 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); | 168 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); |
| 167 }; | 169 }; |
| 168 | 170 |
| 169 } // namespace | 171 } // namespace |
| 170 | 172 |
| 171 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 173 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
| OLD | NEW |