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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 } | 60 } |
61 | 61 |
62 namespace blink { | 62 namespace blink { |
63 class WebInputEvent; | 63 class WebInputEvent; |
64 } | 64 } |
65 | 65 |
66 namespace gfx { | 66 namespace gfx { |
67 class Range; | 67 class Range; |
68 } | 68 } |
69 | 69 |
| 70 namespace gpu { |
| 71 struct Mailbox; |
| 72 } |
| 73 |
70 namespace content { | 74 namespace content { |
71 | 75 |
72 class BrowserPluginHostFactory; | 76 class BrowserPluginHostFactory; |
73 class BrowserPluginEmbedder; | 77 class BrowserPluginEmbedder; |
74 class BrowserPluginGuestManager; | 78 class BrowserPluginGuestManager; |
75 class RenderProcessHost; | 79 class RenderProcessHost; |
76 class RenderWidgetHostView; | 80 class RenderWidgetHostView; |
77 class SiteInstance; | 81 class SiteInstance; |
78 struct DropData; | 82 struct DropData; |
79 struct MediaStreamRequest; | 83 struct MediaStreamRequest; |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 void AskEmbedderForGeolocationPermission(int bridge_id, | 283 void AskEmbedderForGeolocationPermission(int bridge_id, |
280 const GURL& requesting_frame, | 284 const GURL& requesting_frame, |
281 const GeolocationCallback& callback); | 285 const GeolocationCallback& callback); |
282 // Cancels pending geolocation request. | 286 // Cancels pending geolocation request. |
283 void CancelGeolocationRequest(int bridge_id); | 287 void CancelGeolocationRequest(int bridge_id); |
284 | 288 |
285 // Allow the embedder to call this for unhandled messages when | 289 // Allow the embedder to call this for unhandled messages when |
286 // BrowserPluginGuest is already destroyed. | 290 // BrowserPluginGuest is already destroyed. |
287 static void AcknowledgeBufferPresent(int route_id, | 291 static void AcknowledgeBufferPresent(int route_id, |
288 int gpu_host_id, | 292 int gpu_host_id, |
289 const std::string& mailbox_name, | 293 const gpu::Mailbox& mailbox, |
290 uint32 sync_point); | 294 uint32 sync_point); |
291 | 295 |
292 // Returns whether BrowserPluginGuest is interested in receiving the given | 296 // Returns whether BrowserPluginGuest is interested in receiving the given |
293 // |message|. | 297 // |message|. |
294 static bool ShouldForwardToBrowserPluginGuest(const IPC::Message& message); | 298 static bool ShouldForwardToBrowserPluginGuest(const IPC::Message& message); |
295 gfx::Rect ToGuestRect(const gfx::Rect& rect); | 299 gfx::Rect ToGuestRect(const gfx::Rect& rect); |
296 | 300 |
297 void DragSourceEndedAt(int client_x, int client_y, int screen_x, | 301 void DragSourceEndedAt(int client_x, int client_y, int screen_x, |
298 int screen_y, blink::WebDragOperation operation); | 302 int screen_y, blink::WebDragOperation operation); |
299 | 303 |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 616 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
613 // permission. | 617 // permission. |
614 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 618 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
615 | 619 |
616 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 620 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
617 }; | 621 }; |
618 | 622 |
619 } // namespace content | 623 } // namespace content |
620 | 624 |
621 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 625 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |