| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 WebContentsImpl* embedder_web_contents() const { | 126 WebContentsImpl* embedder_web_contents() const { |
| 127 return embedder_web_contents_; | 127 return embedder_web_contents_; |
| 128 } | 128 } |
| 129 | 129 |
| 130 RenderWidgetHostView* GetEmbedderRenderWidgetHostView(); | 130 RenderWidgetHostView* GetEmbedderRenderWidgetHostView(); |
| 131 | 131 |
| 132 bool focused() const { return focused_; } | 132 bool focused() const { return focused_; } |
| 133 bool visible() const { return guest_visible_; } | 133 bool visible() const { return guest_visible_; } |
| 134 void clear_damage_buffer() { damage_buffer_.reset(); } | 134 void clear_damage_buffer() { damage_buffer_.reset(); } |
| 135 | 135 |
| 136 BrowserPluginGuest* opener() const { return opener_; } | 136 BrowserPluginGuest* opener() const { return opener_.get(); } |
| 137 | 137 |
| 138 void UpdateVisibility(); | 138 void UpdateVisibility(); |
| 139 | 139 |
| 140 // NotificationObserver implementation. | 140 // NotificationObserver implementation. |
| 141 virtual void Observe(int type, | 141 virtual void Observe(int type, |
| 142 const NotificationSource& source, | 142 const NotificationSource& source, |
| 143 const NotificationDetails& details) OVERRIDE; | 143 const NotificationDetails& details) OVERRIDE; |
| 144 | 144 |
| 145 // WebContentsObserver implementation. | 145 // WebContentsObserver implementation. |
| 146 virtual void DidStartProvisionalLoadForFrame( | 146 virtual void DidStartProvisionalLoadForFrame( |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 // This is a queue of messages that are destined to be sent to the embedder | 505 // This is a queue of messages that are destined to be sent to the embedder |
| 506 // once the guest is attached to a particular embedder. | 506 // once the guest is attached to a particular embedder. |
| 507 std::queue<IPC::Message*> pending_messages_; | 507 std::queue<IPC::Message*> pending_messages_; |
| 508 | 508 |
| 509 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 509 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 510 }; | 510 }; |
| 511 | 511 |
| 512 } // namespace content | 512 } // namespace content |
| 513 | 513 |
| 514 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 514 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |