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

Side by Side Diff: content/renderer/pepper/pepper_plugin_delegate_impl.h

Issue 12673002: pepper: Use the RenderThread's shared context as the parent context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: null context3d in swiftshader 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_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/id_map.h" 14 #include "base/id_map.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "base/observer_list.h" 18 #include "base/observer_list.h"
19 #include "content/public/renderer/render_view_observer.h" 19 #include "content/public/renderer/render_view_observer.h"
20 #include "content/renderer/mouse_lock_dispatcher.h" 20 #include "content/renderer/mouse_lock_dispatcher.h"
21 #include "content/renderer/pepper/pepper_parent_context_provider.h"
22 #include "content/renderer/render_view_pepper_helper.h" 21 #include "content/renderer/render_view_pepper_helper.h"
23 #include "ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h" 22 #include "ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h"
24 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h" 23 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h"
25 #include "ui/base/ime/text_input_type.h" 24 #include "ui/base/ime/text_input_type.h"
26 #include "webkit/plugins/ppapi/plugin_delegate.h" 25 #include "webkit/plugins/ppapi/plugin_delegate.h"
27 26
28 namespace base { 27 namespace base {
29 class FilePath; 28 class FilePath;
30 } 29 }
31 30
(...skipping 24 matching lines...) Expand all
56 class ContextProviderCommandBuffer; 55 class ContextProviderCommandBuffer;
57 class GamepadSharedMemoryReader; 56 class GamepadSharedMemoryReader;
58 class PepperBrokerImpl; 57 class PepperBrokerImpl;
59 class PepperDeviceEnumerationEventHandler; 58 class PepperDeviceEnumerationEventHandler;
60 class RenderViewImpl; 59 class RenderViewImpl;
61 60
62 class PepperPluginDelegateImpl 61 class PepperPluginDelegateImpl
63 : public webkit::ppapi::PluginDelegate, 62 : public webkit::ppapi::PluginDelegate,
64 public RenderViewPepperHelper, 63 public RenderViewPepperHelper,
65 public base::SupportsWeakPtr<PepperPluginDelegateImpl>, 64 public base::SupportsWeakPtr<PepperPluginDelegateImpl>,
66 public PepperParentContextProvider,
67 public RenderViewObserver { 65 public RenderViewObserver {
68 public: 66 public:
69 explicit PepperPluginDelegateImpl(RenderViewImpl* render_view); 67 explicit PepperPluginDelegateImpl(RenderViewImpl* render_view);
70 virtual ~PepperPluginDelegateImpl(); 68 virtual ~PepperPluginDelegateImpl();
71 69
72 RenderViewImpl* render_view() { return render_view_; } 70 RenderViewImpl* render_view() { return render_view_; }
73 71
74 // Sets up the renderer host and out-of-process proxy for an external plugin 72 // Sets up the renderer host and out-of-process proxy for an external plugin
75 // module. Returns the renderer host, or NULL if it couldn't be created. 73 // module. Returns the renderer host, or NULL if it couldn't be created.
76 RendererPpapiHost* CreateExternalPluginModule( 74 RendererPpapiHost* CreateExternalPluginModule(
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // and perform other common initialization. 373 // and perform other common initialization.
376 RendererPpapiHost* CreateOutOfProcessModule( 374 RendererPpapiHost* CreateOutOfProcessModule(
377 webkit::ppapi::PluginModule* module, 375 webkit::ppapi::PluginModule* module,
378 const base::FilePath& path, 376 const base::FilePath& path,
379 ppapi::PpapiPermissions permissions, 377 ppapi::PpapiPermissions permissions,
380 const IPC::ChannelHandle& channel_handle, 378 const IPC::ChannelHandle& channel_handle,
381 base::ProcessId plugin_pid, 379 base::ProcessId plugin_pid,
382 int plugin_child_id, 380 int plugin_child_id,
383 bool is_external); 381 bool is_external);
384 382
385 // Implementation of PepperParentContextProvider.
386 virtual WebGraphicsContext3DCommandBufferImpl*
387 GetParentContextForPlatformContext3D() OVERRIDE;
388
389 MouseLockDispatcher::LockTarget* GetOrCreateLockTargetAdapter( 383 MouseLockDispatcher::LockTarget* GetOrCreateLockTargetAdapter(
390 webkit::ppapi::PluginInstance* instance); 384 webkit::ppapi::PluginInstance* instance);
391 void UnSetAndDeleteLockTargetAdapter(webkit::ppapi::PluginInstance* instance); 385 void UnSetAndDeleteLockTargetAdapter(webkit::ppapi::PluginInstance* instance);
392 386
393 MouseLockDispatcher* GetMouseLockDispatcher( 387 MouseLockDispatcher* GetMouseLockDispatcher(
394 webkit::ppapi::PluginInstance* instance); 388 webkit::ppapi::PluginInstance* instance);
395 389
396 // Pointer to the RenderView that owns us. 390 // Pointer to the RenderView that owns us.
397 RenderViewImpl* render_view_; 391 RenderViewImpl* render_view_;
398 392
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 device_enumeration_event_handler_; 427 device_enumeration_event_handler_;
434 428
435 scoped_refptr<ContextProviderCommandBuffer> offscreen_context3d_; 429 scoped_refptr<ContextProviderCommandBuffer> offscreen_context3d_;
436 430
437 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); 431 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
438 }; 432 };
439 433
440 } // namespace content 434 } // namespace content
441 435
442 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 436 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_platform_context_3d_impl.cc ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698