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

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: 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 // V8 garbage collection callback for |object|. 306 // V8 garbage collection callback for |object|.
303 static void WeakCallbackForPersistObject(v8::Isolate* isolate, 307 static void WeakCallbackForPersistObject(v8::Isolate* isolate,
304 v8::Persistent<v8::Value> object, 308 v8::Persistent<v8::Value> object,
305 void* param); 309 void* param);
306 310
307 // IPC message handlers. 311 // IPC message handlers.
308 // Please keep in alphabetical order. 312 // Please keep in alphabetical order.
309 void OnAdvanceFocus(int instance_id, bool reverse); 313 void OnAdvanceFocus(int instance_id, bool reverse);
310 void OnBuffersSwapped(int instance_id, 314 void OnBuffersSwapped(int instance_id,
311 const gfx::Size& size, 315 const gfx::Size& size,
312 std::string mailbox_name, 316 gpu::Mailbox mailbox_name,
313 int gpu_route_id, 317 int gpu_route_id,
314 int gpu_host_id); 318 int gpu_host_id);
315 void OnGuestContentWindowReady(int instance_id, 319 void OnGuestContentWindowReady(int instance_id,
316 int content_window_routing_id); 320 int content_window_routing_id);
317 void OnGuestGone(int instance_id, int process_id, int status); 321 void OnGuestGone(int instance_id, int process_id, int status);
318 void OnGuestResponsive(int instance_id, int process_id); 322 void OnGuestResponsive(int instance_id, int process_id);
319 void OnGuestUnresponsive(int instance_id, int process_id); 323 void OnGuestUnresponsive(int instance_id, int process_id);
320 void OnLoadAbort(int instance_id, 324 void OnLoadAbort(int instance_id,
321 const GURL& url, 325 const GURL& url,
322 bool is_top_level, 326 bool is_top_level,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 421 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
418 // get called after BrowserPlugin has been destroyed. 422 // get called after BrowserPlugin has been destroyed.
419 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 423 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
420 424
421 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 425 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
422 }; 426 };
423 427
424 } // namespace content 428 } // namespace content
425 429
426 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 430 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698