| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // A BrowserPluginGuest represents the browser side of browser <--> renderer | 5 // A BrowserPluginGuest represents the browser side of browser <--> renderer |
| 6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of | 6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of |
| 7 // browser <--> guest renderer communication. The 'guest' renderer is a | 7 // browser <--> guest renderer communication. The 'guest' renderer is a |
| 8 // <browser> tag. | 8 // <browser> tag. |
| 9 // | 9 // |
| 10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a | 10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 virtual void Reload(); | 206 virtual void Reload(); |
| 207 // Stop loading the guest. | 207 // Stop loading the guest. |
| 208 virtual void Stop(); | 208 virtual void Stop(); |
| 209 // Overridden in tests. | 209 // Overridden in tests. |
| 210 virtual void SetDamageBuffer(TransportDIB* damage_buffer, | 210 virtual void SetDamageBuffer(TransportDIB* damage_buffer, |
| 211 #if defined(OS_WIN) | 211 #if defined(OS_WIN) |
| 212 int damage_buffer_size, | 212 int damage_buffer_size, |
| 213 #endif | 213 #endif |
| 214 const gfx::Size& damage_view_size, | 214 const gfx::Size& damage_view_size, |
| 215 float scale_factor); | 215 float scale_factor); |
| 216 void SetCompositingBufferData(int gpu_process_id, |
| 217 uint32 client_id, |
| 218 uint32 context_id, |
| 219 uint32 texture_id_0, |
| 220 uint32 texture_id_1, |
| 221 uint32 sync_point); |
| 216 | 222 |
| 217 private: | 223 private: |
| 218 friend class TestBrowserPluginGuest; | 224 friend class TestBrowserPluginGuest; |
| 219 | 225 |
| 220 BrowserPluginGuest(int instance_id, | 226 BrowserPluginGuest(int instance_id, |
| 221 WebContentsImpl* web_contents, | 227 WebContentsImpl* web_contents, |
| 222 RenderViewHost* render_view_host, | 228 RenderViewHost* render_view_host, |
| 223 const BrowserPluginHostMsg_CreateGuest_Params& params); | 229 const BrowserPluginHostMsg_CreateGuest_Params& params); |
| 224 | 230 |
| 225 // Returns the identifier that uniquely identifies a browser plugin guest | 231 // Returns the identifier that uniquely identifies a browser plugin guest |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 int pending_update_counter_; | 267 int pending_update_counter_; |
| 262 base::TimeDelta guest_hang_timeout_; | 268 base::TimeDelta guest_hang_timeout_; |
| 263 bool focused_; | 269 bool focused_; |
| 264 bool visible_; | 270 bool visible_; |
| 265 bool auto_size_; | 271 bool auto_size_; |
| 266 int max_height_; | 272 int max_height_; |
| 267 int max_width_; | 273 int max_width_; |
| 268 int min_height_; | 274 int min_height_; |
| 269 int min_width_; | 275 int min_width_; |
| 270 | 276 |
| 277 // Hardware accelerated surface params. |
| 278 gfx::GLSurfaceHandle surface_handle_; |
| 279 |
| 271 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 280 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 272 }; | 281 }; |
| 273 | 282 |
| 274 } // namespace content | 283 } // namespace content |
| 275 | 284 |
| 276 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 285 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |