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