| 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 <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/browser/frame_host/render_frame_host_impl.h" | 12 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 10 #include "content/browser/site_instance_impl.h" | 13 #include "content/browser/site_instance_impl.h" |
| 11 #include "ipc/ipc_listener.h" | 14 #include "ipc/ipc_listener.h" |
| 12 #include "ipc/ipc_sender.h" | 15 #include "ipc/ipc_sender.h" |
| 13 #include "third_party/WebKit/public/platform/WebFocusType.h" | 16 #include "third_party/WebKit/public/platform/WebFocusType.h" |
| 14 | 17 |
| 15 struct FrameMsg_PostMessage_Params; | 18 struct FrameMsg_PostMessage_Params; |
| 16 | 19 |
| 17 namespace content { | 20 namespace content { |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 } | 125 } |
| 123 | 126 |
| 124 // Returns if the RenderFrameProxy for this host is alive. | 127 // Returns if the RenderFrameProxy for this host is alive. |
| 125 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; } | 128 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; } |
| 126 | 129 |
| 127 private: | 130 private: |
| 128 // IPC Message handlers. | 131 // IPC Message handlers. |
| 129 void OnDetach(); | 132 void OnDetach(); |
| 130 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); | 133 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); |
| 131 void OnRouteMessageEvent(const FrameMsg_PostMessage_Params& params); | 134 void OnRouteMessageEvent(const FrameMsg_PostMessage_Params& params); |
| 132 void OnDidChangeOpener(int32 opener_routing_id); | 135 void OnDidChangeOpener(int32_t opener_routing_id); |
| 133 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); | 136 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); |
| 134 void OnFrameFocused(); | 137 void OnFrameFocused(); |
| 135 | 138 |
| 136 // This RenderFrameProxyHost's routing id. | 139 // This RenderFrameProxyHost's routing id. |
| 137 int routing_id_; | 140 int routing_id_; |
| 138 | 141 |
| 139 // The SiteInstance this proxy is associated with. | 142 // The SiteInstance this proxy is associated with. |
| 140 scoped_refptr<SiteInstance> site_instance_; | 143 scoped_refptr<SiteInstance> site_instance_; |
| 141 | 144 |
| 142 // The renderer process this RenderFrameHostProxy is associated with. It is | 145 // The renderer process this RenderFrameHostProxy is associated with. It is |
| (...skipping 22 matching lines...) Expand all Loading... |
| 165 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts | 168 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts |
| 166 // are associated with it. | 169 // are associated with it. |
| 167 RenderViewHostImpl* render_view_host_; | 170 RenderViewHostImpl* render_view_host_; |
| 168 | 171 |
| 169 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); | 172 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); |
| 170 }; | 173 }; |
| 171 | 174 |
| 172 } // namespace | 175 } // namespace |
| 173 | 176 |
| 174 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 177 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
| OLD | NEW |