| 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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 | 491 |
| 492 // A map to store relevant info for a request keyed by the request's id. | 492 // A map to store relevant info for a request keyed by the request's id. |
| 493 typedef std::map<int, PermissionRequest*> RequestMap; | 493 typedef std::map<int, PermissionRequest*> RequestMap; |
| 494 RequestMap permission_request_map_; | 494 RequestMap permission_request_map_; |
| 495 | 495 |
| 496 // Indicates that this BrowserPluginGuest has associated renderer-side state. | 496 // Indicates that this BrowserPluginGuest has associated renderer-side state. |
| 497 // This is used to determine whether or not to create a new RenderView when | 497 // This is used to determine whether or not to create a new RenderView when |
| 498 // this guest is attached. | 498 // this guest is attached. |
| 499 bool has_render_view_; | 499 bool has_render_view_; |
| 500 | 500 |
| 501 // Indicates whether BrowserPluginGuest::Destroy has been called. |
| 502 bool is_being_destroyed_; |
| 503 |
| 501 // This is a queue of messages that are destined to be sent to the embedder | 504 // This is a queue of messages that are destined to be sent to the embedder |
| 502 // once the guest is attached to a particular embedder. | 505 // once the guest is attached to a particular embedder. |
| 503 std::queue<IPC::Message*> pending_messages_; | 506 std::queue<IPC::Message*> pending_messages_; |
| 504 | 507 |
| 505 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 508 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 506 }; | 509 }; |
| 507 | 510 |
| 508 } // namespace content | 511 } // namespace content |
| 509 | 512 |
| 510 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 513 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |