| 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 is the browser side of a browser <--> embedder | 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder |
| 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder | 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder |
| 7 // renderer side of browser <--> embedder renderer communication. | 7 // renderer side of browser <--> embedder renderer communication. |
| 8 // | 8 // |
| 9 // BrowserPluginGuest lives on the UI thread of the browser process. It has a | 9 // BrowserPluginGuest lives on the UI thread of the browser process. It has a |
| 10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The | 10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 | 291 |
| 292 void RequestNewWindowPermission(WebContentsImpl* new_contents, | 292 void RequestNewWindowPermission(WebContentsImpl* new_contents, |
| 293 WindowOpenDisposition disposition, | 293 WindowOpenDisposition disposition, |
| 294 const gfx::Rect& initial_bounds, | 294 const gfx::Rect& initial_bounds, |
| 295 bool user_gesture); | 295 bool user_gesture); |
| 296 | 296 |
| 297 // Message handlers for messages from embedder. | 297 // Message handlers for messages from embedder. |
| 298 | 298 |
| 299 void OnCompositorFrameACK(int instance_id, | 299 void OnCompositorFrameACK(int instance_id, |
| 300 int route_id, | 300 int route_id, |
| 301 uint32 output_surface_id, |
| 301 int renderer_host_id, | 302 int renderer_host_id, |
| 302 const cc::CompositorFrameAck& ack); | 303 const cc::CompositorFrameAck& ack); |
| 303 | 304 |
| 304 // Allows or denies a permission request access, after the embedder has had a | 305 // Allows or denies a permission request access, after the embedder has had a |
| 305 // chance to decide. | 306 // chance to decide. |
| 306 void OnRespondPermission(int instance_id, | 307 void OnRespondPermission(int instance_id, |
| 307 BrowserPluginPermissionType permission_type, | 308 BrowserPluginPermissionType permission_type, |
| 308 int request_id, | 309 int request_id, |
| 309 bool should_allow); | 310 bool should_allow); |
| 310 // Handles drag events from the embedder. | 311 // Handles drag events from the embedder. |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 std::queue<IPC::Message*> pending_messages_; | 483 std::queue<IPC::Message*> pending_messages_; |
| 483 | 484 |
| 484 scoped_ptr<BrowserPluginGuestDelegate> delegate_; | 485 scoped_ptr<BrowserPluginGuestDelegate> delegate_; |
| 485 | 486 |
| 486 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 487 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 487 }; | 488 }; |
| 488 | 489 |
| 489 } // namespace content | 490 } // namespace content |
| 490 | 491 |
| 491 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 492 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |