Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 148003006: Use gpu::Mailbox instead of std:string in IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed typo Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698