| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 RenderFrameProxy(int routing_id, int frame_routing_id); | 104 RenderFrameProxy(int routing_id, int frame_routing_id); |
| 105 | 105 |
| 106 void Init(blink::WebRemoteFrame* frame, RenderViewImpl* render_view); | 106 void Init(blink::WebRemoteFrame* frame, RenderViewImpl* render_view); |
| 107 | 107 |
| 108 // IPC::Listener | 108 // IPC::Listener |
| 109 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 109 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 110 | 110 |
| 111 // IPC handlers | 111 // IPC handlers |
| 112 void OnDeleteProxy(); | 112 void OnDeleteProxy(); |
| 113 void OnChildFrameProcessGone(); | 113 void OnChildFrameProcessGone(); |
| 114 void OnBuffersSwapped(const FrameMsg_BuffersSwapped_Params& params); | |
| 115 void OnCompositorFrameSwapped(const IPC::Message& message); | 114 void OnCompositorFrameSwapped(const IPC::Message& message); |
| 116 void OnDisownOpener(); | 115 void OnDisownOpener(); |
| 117 | 116 |
| 118 // The routing ID by which this RenderFrameProxy is known. | 117 // The routing ID by which this RenderFrameProxy is known. |
| 119 const int routing_id_; | 118 const int routing_id_; |
| 120 | 119 |
| 121 // The routing ID of the local RenderFrame (if any) which this | 120 // The routing ID of the local RenderFrame (if any) which this |
| 122 // RenderFrameProxy is meant to replace in the frame tree. | 121 // RenderFrameProxy is meant to replace in the frame tree. |
| 123 const int frame_routing_id_; | 122 const int frame_routing_id_; |
| 124 | 123 |
| 125 // Stores the WebRemoteFrame we are associated with. | 124 // Stores the WebRemoteFrame we are associated with. |
| 126 blink::WebRemoteFrame* web_frame_; | 125 blink::WebRemoteFrame* web_frame_; |
| 127 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; | 126 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; |
| 128 | 127 |
| 129 RenderViewImpl* render_view_; | 128 RenderViewImpl* render_view_; |
| 130 | 129 |
| 131 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); | 130 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); |
| 132 }; | 131 }; |
| 133 | 132 |
| 134 } // namespace | 133 } // namespace |
| 135 | 134 |
| 136 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 135 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
| OLD | NEW |