| 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 OnPrintRemoteFrame(const gfx::Rect& rect, int page_num); |
| 125 | 126 |
| 126 // This RenderFrameProxyHost's routing id. | 127 // This RenderFrameProxyHost's routing id. |
| 127 int routing_id_; | 128 int routing_id_; |
| 128 | 129 |
| 129 // The SiteInstance this proxy is associated with. | 130 // The SiteInstance this proxy is associated with. |
| 130 scoped_refptr<SiteInstance> site_instance_; | 131 scoped_refptr<SiteInstance> site_instance_; |
| 131 | 132 |
| 132 // The renderer process this RenderFrameHostProxy is associated with. It is | 133 // The renderer process this RenderFrameHostProxy is associated with. It is |
| 133 // equivalent to the result of site_instance_->GetProcess(), but that | 134 // equivalent to the result of site_instance_->GetProcess(), but that |
| 134 // method has the side effect of creating the process if it doesn't exist. | 135 // method has the side effect of creating the process if it doesn't exist. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 151 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts | 152 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts |
| 152 // are associated with it. | 153 // are associated with it. |
| 153 RenderViewHostImpl* render_view_host_; | 154 RenderViewHostImpl* render_view_host_; |
| 154 | 155 |
| 155 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); | 156 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 } // namespace | 159 } // namespace |
| 159 | 160 |
| 160 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 161 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
| OLD | NEW |