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. Any | 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any |
10 // messages about the guest render process that the embedder might be interested | 10 // messages about the guest render process that the embedder might be interested |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 // Whether or not our embedder has seen a DragSourceEndedAt() call. | 437 // Whether or not our embedder has seen a DragSourceEndedAt() call. |
438 bool seen_embedder_drag_source_ended_at_; | 438 bool seen_embedder_drag_source_ended_at_; |
439 | 439 |
440 // Indicates the URL dragged into the guest if any. | 440 // Indicates the URL dragged into the guest if any. |
441 GURL dragged_url_; | 441 GURL dragged_url_; |
442 | 442 |
443 // This is a queue of messages that are destined to be sent to the embedder | 443 // This is a queue of messages that are destined to be sent to the embedder |
444 // once the guest is attached to a particular embedder. | 444 // once the guest is attached to a particular embedder. |
445 std::deque<linked_ptr<IPC::Message> > pending_messages_; | 445 std::deque<linked_ptr<IPC::Message> > pending_messages_; |
446 | 446 |
| 447 std::unique_ptr<DropData> current_drop_data_; |
| 448 |
447 BrowserPluginGuestDelegate* const delegate_; | 449 BrowserPluginGuestDelegate* const delegate_; |
448 | 450 |
449 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 451 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
450 // permission. | 452 // permission. |
451 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 453 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
452 | 454 |
453 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 455 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
454 }; | 456 }; |
455 | 457 |
456 } // namespace content | 458 } // namespace content |
457 | 459 |
458 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 460 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |