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