| 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> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; } | 116 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; } |
| 117 | 117 |
| 118 private: | 118 private: |
| 119 // IPC Message handlers. | 119 // IPC Message handlers. |
| 120 void OnDetach(); | 120 void OnDetach(); |
| 121 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); | 121 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); |
| 122 void OnRouteMessageEvent(const FrameMsg_PostMessage_Params& params); | 122 void OnRouteMessageEvent(const FrameMsg_PostMessage_Params& params); |
| 123 void OnDidChangeOpener(int32_t opener_routing_id); | 123 void OnDidChangeOpener(int32_t opener_routing_id); |
| 124 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); | 124 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); |
| 125 void OnFrameFocused(); | 125 void OnFrameFocused(); |
| 126 void OnSetHasReceivedUserGesture(); |
| 126 | 127 |
| 127 // This RenderFrameProxyHost's routing id. | 128 // This RenderFrameProxyHost's routing id. |
| 128 int routing_id_; | 129 int routing_id_; |
| 129 | 130 |
| 130 // The SiteInstance this proxy is associated with. | 131 // The SiteInstance this proxy is associated with. |
| 131 scoped_refptr<SiteInstance> site_instance_; | 132 scoped_refptr<SiteInstance> site_instance_; |
| 132 | 133 |
| 133 // The renderer process this RenderFrameHostProxy is associated with. It is | 134 // The renderer process this RenderFrameHostProxy is associated with. It is |
| 134 // equivalent to the result of site_instance_->GetProcess(), but that | 135 // equivalent to the result of site_instance_->GetProcess(), but that |
| 135 // method has the side effect of creating the process if it doesn't exist. | 136 // method has the side effect of creating the process if it doesn't exist. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 152 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts | 153 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts |
| 153 // are associated with it. | 154 // are associated with it. |
| 154 RenderViewHostImpl* render_view_host_; | 155 RenderViewHostImpl* render_view_host_; |
| 155 | 156 |
| 156 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); | 157 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 } // namespace | 160 } // namespace |
| 160 | 161 |
| 161 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 162 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
| OLD | NEW |