| 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_RENDERER_RENDER_FRAME_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 void Init(blink::WebRemoteFrame* frame, RenderViewImpl* render_view); | 111 void Init(blink::WebRemoteFrame* frame, RenderViewImpl* render_view); |
| 112 | 112 |
| 113 // IPC::Listener | 113 // IPC::Listener |
| 114 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 114 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 115 | 115 |
| 116 // IPC handlers | 116 // IPC handlers |
| 117 void OnDeleteProxy(); | 117 void OnDeleteProxy(); |
| 118 void OnChildFrameProcessGone(); | 118 void OnChildFrameProcessGone(); |
| 119 void OnCompositorFrameSwapped(const IPC::Message& message); | 119 void OnCompositorFrameSwapped(const IPC::Message& message); |
| 120 void OnDisownOpener(); | 120 void OnDisownOpener(); |
| 121 void OnSwapOut(int frame_routing_id); |
| 121 | 122 |
| 122 // The routing ID by which this RenderFrameProxy is known. | 123 // The routing ID by which this RenderFrameProxy is known. |
| 123 const int routing_id_; | 124 const int routing_id_; |
| 124 | 125 |
| 125 // The routing ID of the local RenderFrame (if any) which this | 126 // The routing ID of the local RenderFrame (if any) which this |
| 126 // RenderFrameProxy is meant to replace in the frame tree. | 127 // RenderFrameProxy is meant to replace in the frame tree. |
| 127 const int frame_routing_id_; | 128 const int frame_routing_id_; |
| 128 | 129 |
| 129 // Stores the WebRemoteFrame we are associated with. | 130 // Stores the WebRemoteFrame we are associated with. |
| 130 blink::WebRemoteFrame* web_frame_; | 131 blink::WebRemoteFrame* web_frame_; |
| 131 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; | 132 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; |
| 132 | 133 |
| 133 RenderViewImpl* render_view_; | 134 RenderViewImpl* render_view_; |
| 134 | 135 |
| 135 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); | 136 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace | 139 } // namespace |
| 139 | 140 |
| 140 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 141 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
| OLD | NEW |