| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 198 |
| 199 void PointerLockPermissionResponse(bool allow); | 199 void PointerLockPermissionResponse(bool allow); |
| 200 | 200 |
| 201 void SwapCompositorFrame(uint32 output_surface_id, | 201 void SwapCompositorFrame(uint32 output_surface_id, |
| 202 int host_process_id, | 202 int host_process_id, |
| 203 int host_routing_id, | 203 int host_routing_id, |
| 204 scoped_ptr<cc::CompositorFrame> frame); | 204 scoped_ptr<cc::CompositorFrame> frame); |
| 205 | 205 |
| 206 void SetContentsOpaque(bool opaque); | 206 void SetContentsOpaque(bool opaque); |
| 207 | 207 |
| 208 void OnFindReply(int request_id, |
| 209 int number_of_matches, |
| 210 const gfx::Rect& selection_rect, |
| 211 int active_match_ordinal, |
| 212 bool final_update); |
| 213 |
| 208 private: | 214 private: |
| 209 class EmbedderWebContentsObserver; | 215 class EmbedderWebContentsObserver; |
| 210 | 216 |
| 211 // BrowserPluginGuest is a WebContentsObserver of |web_contents| and | 217 // BrowserPluginGuest is a WebContentsObserver of |web_contents| and |
| 212 // |web_contents| has to stay valid for the lifetime of BrowserPluginGuest. | 218 // |web_contents| has to stay valid for the lifetime of BrowserPluginGuest. |
| 213 BrowserPluginGuest(bool has_render_view, | 219 BrowserPluginGuest(bool has_render_view, |
| 214 WebContentsImpl* web_contents, | 220 WebContentsImpl* web_contents, |
| 215 BrowserPluginGuestDelegate* delegate); | 221 BrowserPluginGuestDelegate* delegate); |
| 216 | 222 |
| 217 void WillDestroy(); | 223 void WillDestroy(); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 380 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
| 375 // permission. | 381 // permission. |
| 376 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 382 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
| 377 | 383 |
| 378 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 384 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 379 }; | 385 }; |
| 380 | 386 |
| 381 } // namespace content | 387 } // namespace content |
| 382 | 388 |
| 383 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 389 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |