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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 12440005: Use gpu::Mailbox in IPCs instead of std::string (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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
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 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
7 7
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/process_util.h" 12 #include "base/process_util.h"
13 #include "base/sequenced_task_runner_helpers.h" 13 #include "base/sequenced_task_runner_helpers.h"
14 #if defined(OS_WIN) 14 #if defined(OS_WIN)
15 #include "base/shared_memory.h" 15 #include "base/shared_memory.h"
16 #endif 16 #endif
17 #include "content/common/browser_plugin/browser_plugin_message_enums.h" 17 #include "content/common/browser_plugin/browser_plugin_message_enums.h"
18 #include "content/renderer/browser_plugin/browser_plugin_backing_store.h" 18 #include "content/renderer/browser_plugin/browser_plugin_backing_store.h"
19 #include "content/renderer/browser_plugin/browser_plugin_bindings.h" 19 #include "content/renderer/browser_plugin/browser_plugin_bindings.h"
20 #include "content/renderer/mouse_lock_dispatcher.h" 20 #include "content/renderer/mouse_lock_dispatcher.h"
21 #include "content/renderer/render_view_impl.h" 21 #include "content/renderer/render_view_impl.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h"
23 23
24 struct BrowserPluginHostMsg_AutoSize_Params; 24 struct BrowserPluginHostMsg_AutoSize_Params;
25 struct BrowserPluginHostMsg_ResizeGuest_Params; 25 struct BrowserPluginHostMsg_ResizeGuest_Params;
26 struct BrowserPluginMsg_LoadCommit_Params; 26 struct BrowserPluginMsg_LoadCommit_Params;
27 struct BrowserPluginMsg_UpdateRect_Params; 27 struct BrowserPluginMsg_UpdateRect_Params;
28 28
29 namespace gpu {
30 struct Mailbox;
31 }
32
29 namespace content { 33 namespace content {
30 34
31 class BrowserPluginCompositingHelper; 35 class BrowserPluginCompositingHelper;
32 class BrowserPluginManager; 36 class BrowserPluginManager;
33 class MockBrowserPlugin; 37 class MockBrowserPlugin;
34 38
35 class CONTENT_EXPORT BrowserPlugin : 39 class CONTENT_EXPORT BrowserPlugin :
36 NON_EXPORTED_BASE(public WebKit::WebPlugin), 40 NON_EXPORTED_BASE(public WebKit::WebPlugin),
37 public MouseLockDispatcher::LockTarget { 41 public MouseLockDispatcher::LockTarget {
38 public: 42 public:
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // V8 garbage collection callback for |object|. 310 // V8 garbage collection callback for |object|.
307 static void WeakCallbackForPersistObject(v8::Isolate* isolate, 311 static void WeakCallbackForPersistObject(v8::Isolate* isolate,
308 v8::Persistent<v8::Value> object, 312 v8::Persistent<v8::Value> object,
309 void* param); 313 void* param);
310 314
311 // IPC message handlers. 315 // IPC message handlers.
312 // Please keep in alphabetical order. 316 // Please keep in alphabetical order.
313 void OnAdvanceFocus(int instance_id, bool reverse); 317 void OnAdvanceFocus(int instance_id, bool reverse);
314 void OnBuffersSwapped(int instance_id, 318 void OnBuffersSwapped(int instance_id,
315 const gfx::Size& size, 319 const gfx::Size& size,
316 std::string mailbox_name, 320 gpu::Mailbox mailbox_name,
317 int gpu_route_id, 321 int gpu_route_id,
318 int gpu_host_id); 322 int gpu_host_id);
319 void OnGuestContentWindowReady(int instance_id, 323 void OnGuestContentWindowReady(int instance_id,
320 int content_window_routing_id); 324 int content_window_routing_id);
321 void OnGuestGone(int instance_id, int process_id, int status); 325 void OnGuestGone(int instance_id, int process_id, int status);
322 void OnGuestResponsive(int instance_id, int process_id); 326 void OnGuestResponsive(int instance_id, int process_id);
323 void OnGuestUnresponsive(int instance_id, int process_id); 327 void OnGuestUnresponsive(int instance_id, int process_id);
324 void OnLoadAbort(int instance_id, 328 void OnLoadAbort(int instance_id,
325 const GURL& url, 329 const GURL& url,
326 bool is_top_level, 330 bool is_top_level,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 420 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
417 // get called after BrowserPlugin has been destroyed. 421 // get called after BrowserPlugin has been destroyed.
418 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 422 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
419 423
420 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 424 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
421 }; 425 };
422 426
423 } // namespace content 427 } // namespace content
424 428
425 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 429 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW
« no previous file with comments | « content/common/gpu/texture_image_transport_surface.cc ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698