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

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

Issue 12612005: Revert 186627 (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
33 namespace content { 29 namespace content {
34 30
35 class BrowserPluginCompositingHelper; 31 class BrowserPluginCompositingHelper;
36 class BrowserPluginManager; 32 class BrowserPluginManager;
37 class MockBrowserPlugin; 33 class MockBrowserPlugin;
38 34
39 class CONTENT_EXPORT BrowserPlugin : 35 class CONTENT_EXPORT BrowserPlugin :
40 NON_EXPORTED_BASE(public WebKit::WebPlugin), 36 NON_EXPORTED_BASE(public WebKit::WebPlugin),
41 public MouseLockDispatcher::LockTarget { 37 public MouseLockDispatcher::LockTarget {
42 public: 38 public:
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 // V8 garbage collection callback for |object|. 299 // V8 garbage collection callback for |object|.
304 static void WeakCallbackForPersistObject(v8::Isolate* isolate, 300 static void WeakCallbackForPersistObject(v8::Isolate* isolate,
305 v8::Persistent<v8::Value> object, 301 v8::Persistent<v8::Value> object,
306 void* param); 302 void* param);
307 303
308 // IPC message handlers. 304 // IPC message handlers.
309 // Please keep in alphabetical order. 305 // Please keep in alphabetical order.
310 void OnAdvanceFocus(int instance_id, bool reverse); 306 void OnAdvanceFocus(int instance_id, bool reverse);
311 void OnBuffersSwapped(int instance_id, 307 void OnBuffersSwapped(int instance_id,
312 const gfx::Size& size, 308 const gfx::Size& size,
313 gpu::Mailbox mailbox_name, 309 std::string mailbox_name,
314 int gpu_route_id, 310 int gpu_route_id,
315 int gpu_host_id); 311 int gpu_host_id);
316 void OnGuestContentWindowReady(int instance_id, 312 void OnGuestContentWindowReady(int instance_id,
317 int content_window_routing_id); 313 int content_window_routing_id);
318 void OnGuestGone(int instance_id, int process_id, int status); 314 void OnGuestGone(int instance_id, int process_id, int status);
319 void OnGuestResponsive(int instance_id, int process_id); 315 void OnGuestResponsive(int instance_id, int process_id);
320 void OnGuestUnresponsive(int instance_id, int process_id); 316 void OnGuestUnresponsive(int instance_id, int process_id);
321 void OnLoadAbort(int instance_id, 317 void OnLoadAbort(int instance_id,
322 const GURL& url, 318 const GURL& url,
323 bool is_top_level, 319 bool is_top_level,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 414 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
419 // get called after BrowserPlugin has been destroyed. 415 // get called after BrowserPlugin has been destroyed.
420 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 416 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
421 417
422 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 418 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
423 }; 419 };
424 420
425 } // namespace content 421 } // namespace content
426 422
427 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 423 #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