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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // this BrowserPluginGuest, and its new unattached windows. | 114 // this BrowserPluginGuest, and its new unattached windows. |
115 void Destroy(); | 115 void Destroy(); |
116 | 116 |
117 // Returns the identifier that uniquely identifies a browser plugin guest | 117 // Returns the identifier that uniquely identifies a browser plugin guest |
118 // within an embedder. | 118 // within an embedder. |
119 int instance_id() const { return instance_id_; } | 119 int instance_id() const { return instance_id_; } |
120 | 120 |
121 bool OnMessageReceivedFromEmbedder(const IPC::Message& message); | 121 bool OnMessageReceivedFromEmbedder(const IPC::Message& message); |
122 | 122 |
123 void Initialize(const BrowserPluginHostMsg_Attach_Params& params, | 123 void Initialize(const BrowserPluginHostMsg_Attach_Params& params, |
124 WebContentsImpl* embedder_web_contents); | 124 WebContentsImpl* embedder_web_contents, |
| 125 const base::DictionaryValue& extra_params); |
125 | 126 |
126 WebContentsImpl* embedder_web_contents() const { | 127 WebContentsImpl* embedder_web_contents() const { |
127 return embedder_web_contents_; | 128 return embedder_web_contents_; |
128 } | 129 } |
129 | 130 |
130 // Returns the embedder's RenderWidgetHostView if it is available. | 131 // Returns the embedder's RenderWidgetHostView if it is available. |
131 // Returns NULL otherwise. | 132 // Returns NULL otherwise. |
132 RenderWidgetHostView* GetEmbedderRenderWidgetHostView(); | 133 RenderWidgetHostView* GetEmbedderRenderWidgetHostView(); |
133 | 134 |
134 bool focused() const { return focused_; } | 135 bool focused() const { return focused_; } |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 460 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
460 // permission. | 461 // permission. |
461 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 462 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
462 | 463 |
463 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 464 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
464 }; | 465 }; |
465 | 466 |
466 } // namespace content | 467 } // namespace content |
467 | 468 |
468 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 469 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |