| 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_CHILD_FRAME_COMPOSITING_HELPER_H_ | 5 #ifndef CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ |
| 6 #define CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ | 6 #define CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 cc::SurfaceSequence sequence); | 105 cc::SurfaceSequence sequence); |
| 106 static void RequireCallbackBrowserPlugin( | 106 static void RequireCallbackBrowserPlugin( |
| 107 scoped_refptr<ThreadSafeSender> sender, | 107 scoped_refptr<ThreadSafeSender> sender, |
| 108 int host_routing_id, | 108 int host_routing_id, |
| 109 int browser_plugin_instance_id, | 109 int browser_plugin_instance_id, |
| 110 cc::SurfaceId id, | 110 cc::SurfaceId id, |
| 111 cc::SurfaceSequence sequence); | 111 cc::SurfaceSequence sequence); |
| 112 void UpdateWebLayer(blink::WebLayer* layer); | 112 void UpdateWebLayer(blink::WebLayer* layer); |
| 113 | 113 |
| 114 int host_routing_id_; | 114 int host_routing_id_; |
| 115 bool opaque_; | |
| 116 | 115 |
| 117 gfx::Size buffer_size_; | 116 gfx::Size buffer_size_; |
| 118 | 117 |
| 119 // The lifetime of this weak pointer should be greater than the lifetime of | 118 // The lifetime of this weak pointer should be greater than the lifetime of |
| 120 // other member objects, as they may access this pointer during their | 119 // other member objects, as they may access this pointer during their |
| 121 // destruction. | 120 // destruction. |
| 122 base::WeakPtr<BrowserPlugin> browser_plugin_; | 121 base::WeakPtr<BrowserPlugin> browser_plugin_; |
| 123 RenderFrameProxy* render_frame_proxy_; | 122 RenderFrameProxy* render_frame_proxy_; |
| 124 | 123 |
| 125 std::unique_ptr<blink::WebLayer> web_layer_; | 124 std::unique_ptr<blink::WebLayer> web_layer_; |
| 126 cc::SurfaceId surface_id_; | 125 cc::SurfaceId surface_id_; |
| 127 blink::WebFrame* frame_; | 126 blink::WebFrame* frame_; |
| 128 | 127 |
| 129 DISALLOW_COPY_AND_ASSIGN(ChildFrameCompositingHelper); | 128 DISALLOW_COPY_AND_ASSIGN(ChildFrameCompositingHelper); |
| 130 }; | 129 }; |
| 131 | 130 |
| 132 } // namespace content | 131 } // namespace content |
| 133 | 132 |
| 134 #endif // CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ | 133 #endif // CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ |
| OLD | NEW |