| 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 BrowserPluginEmbedder has a list of guests it manages. | 5 // A BrowserPluginEmbedder has a list of guests it manages. |
| 6 // In the beginning when a renderer sees one or more guests (BrowserPlugin | 6 // In the beginning when a renderer sees one or more guests (BrowserPlugin |
| 7 // instance(s)) and there is a request to navigate to them, the WebContents for | 7 // instance(s)) and there is a request to navigate to them, the WebContents for |
| 8 // that renderer creates a BrowserPluginEmbedder for itself. The | 8 // that renderer creates a BrowserPluginEmbedder for itself. The |
| 9 // BrowserPluginEmbedder, in turn, manages a set of BrowserPluginGuests -- one | 9 // BrowserPluginEmbedder, in turn, manages a set of BrowserPluginGuests -- one |
| 10 // BrowserPluginGuest for each guest in the embedding WebContents. Note that | 10 // BrowserPluginGuest for each guest in the embedding WebContents. Note that |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 // Message handlers. | 120 // Message handlers. |
| 121 | 121 |
| 122 void OnAllocateInstanceID(int request_id); | 122 void OnAllocateInstanceID(int request_id); |
| 123 void OnCreateGuest(int instance_id, | 123 void OnCreateGuest(int instance_id, |
| 124 const BrowserPluginHostMsg_CreateGuest_Params& params); | 124 const BrowserPluginHostMsg_CreateGuest_Params& params); |
| 125 void OnPluginAtPositionResponse(int instance_id, | 125 void OnPluginAtPositionResponse(int instance_id, |
| 126 int request_id, | 126 int request_id, |
| 127 const gfx::Point& position); | 127 const gfx::Point& position); |
| 128 void OnPluginDestroyed(int instance_id); | 128 void OnPluginDestroyed(int instance_id); |
| 129 void OnAllowMediaAccess(int instance_id, int request_id, bool should_allow); |
| 129 void OnSwapBuffersACK(int route_id, | 130 void OnSwapBuffersACK(int route_id, |
| 130 int gpu_host_id, | 131 int gpu_host_id, |
| 131 const std::string& mailbox_name, | 132 const std::string& mailbox_name, |
| 132 uint32 sync_point); | 133 uint32 sync_point); |
| 133 | 134 |
| 134 // Static factory instance (always NULL for non-test). | 135 // Static factory instance (always NULL for non-test). |
| 135 static BrowserPluginHostFactory* factory_; | 136 static BrowserPluginHostFactory* factory_; |
| 136 | 137 |
| 137 // A scoped container for notification registries. | 138 // A scoped container for notification registries. |
| 138 NotificationRegistrar registrar_; | 139 NotificationRegistrar registrar_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 151 // Next request id for BrowserPluginMsg_PluginAtPositionRequest query. | 152 // Next request id for BrowserPluginMsg_PluginAtPositionRequest query. |
| 152 int next_get_render_view_request_id_; | 153 int next_get_render_view_request_id_; |
| 153 int next_instance_id_; | 154 int next_instance_id_; |
| 154 | 155 |
| 155 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); | 156 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 } // namespace content | 159 } // namespace content |
| 159 | 160 |
| 160 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ | 161 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ |
| OLD | NEW |