| 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_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 
| 6 #define CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 
| 7 | 7 | 
| 8 #include "cc/output/compositor_frame.h" | 8 #include "cc/output/compositor_frame.h" | 
| 9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" | 
| 10 | 10 | 
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 63   explicit CrossProcessFrameConnector( | 63   explicit CrossProcessFrameConnector( | 
| 64       RenderFrameHostImpl* frame_proxy_in_parent_renderer); | 64       RenderFrameHostImpl* frame_proxy_in_parent_renderer); | 
| 65   virtual ~CrossProcessFrameConnector(); | 65   virtual ~CrossProcessFrameConnector(); | 
| 66 | 66 | 
| 67   bool OnMessageReceived(const IPC::Message &msg); | 67   bool OnMessageReceived(const IPC::Message &msg); | 
| 68 | 68 | 
| 69   // |view| corresponds to B2's RenderWidgetHostViewChildFrame in the example | 69   // |view| corresponds to B2's RenderWidgetHostViewChildFrame in the example | 
| 70   // above. | 70   // above. | 
| 71   void set_view(RenderWidgetHostViewChildFrame* view); | 71   void set_view(RenderWidgetHostViewChildFrame* view); | 
| 72 | 72 | 
|  | 73   void RenderProcessGone(); | 
|  | 74 | 
| 73   // 'Platform' functionality exposed to RenderWidgetHostViewChildFrame. | 75   // 'Platform' functionality exposed to RenderWidgetHostViewChildFrame. | 
| 74   // These methods can forward messages to the child frame proxy in the parent | 76   // These methods can forward messages to the child frame proxy in the parent | 
| 75   // frame's renderer or attempt to handle them within the browser process. | 77   // frame's renderer or attempt to handle them within the browser process. | 
| 76   void ChildFrameBuffersSwapped( | 78   void ChildFrameBuffersSwapped( | 
| 77       const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 79       const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 
| 78       int gpu_host_id); | 80       int gpu_host_id); | 
| 79 | 81 | 
| 80   void ChildFrameCompositorFrameSwapped(uint32 output_surface_id, | 82   void ChildFrameCompositorFrameSwapped(uint32 output_surface_id, | 
| 81                                         int host_id, | 83                                         int host_id, | 
| 82                                         int route_id, | 84                                         int route_id, | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 102   // The RenderWidgetHostView for the frame. Initially NULL. | 104   // The RenderWidgetHostView for the frame. Initially NULL. | 
| 103   RenderWidgetHostViewChildFrame* view_; | 105   RenderWidgetHostViewChildFrame* view_; | 
| 104 | 106 | 
| 105   gfx::Rect child_frame_rect_; | 107   gfx::Rect child_frame_rect_; | 
| 106 }; | 108 }; | 
| 107 | 109 | 
| 108 }  // namespace content | 110 }  // namespace content | 
| 109 | 111 | 
| 110 #endif  // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 112 #endif  // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 
| 111 | 113 | 
| OLD | NEW | 
|---|