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

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

Issue 19828007: Hide knowledge of webkit::ppapi::Plugin from chrome. This is part of moving ppapi implementation fr… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: nits Created 7 years, 4 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>
(...skipping 12 matching lines...) Expand all
23 #include "ppapi/c/pp_file_info.h" 23 #include "ppapi/c/pp_file_info.h"
24 #include "ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h" 24 #include "ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h"
25 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h" 25 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h"
26 #include "ui/base/ime/text_input_type.h" 26 #include "ui/base/ime/text_input_type.h"
27 #include "webkit/plugins/ppapi/plugin_delegate.h" 27 #include "webkit/plugins/ppapi/plugin_delegate.h"
28 28
29 namespace base { 29 namespace base {
30 class FilePath; 30 class FilePath;
31 } 31 }
32 32
33 namespace IPC {
34 struct ChannelHandle;
35 }
36
37 namespace ppapi { 33 namespace ppapi {
38 class PepperFilePath; 34 class PepperFilePath;
39 class PPB_X509Certificate_Fields; 35 class PPB_X509Certificate_Fields;
40 class PpapiPermissions;
41 } 36 }
42 37
43 namespace webkit { 38 namespace webkit {
44 namespace ppapi { 39 namespace ppapi {
45 class PluginInstance; 40 class PluginInstance;
46 class PluginModule; 41 class PluginModule;
47 } 42 }
48 } 43 }
49 44
50 namespace WebKit { 45 namespace WebKit {
(...skipping 17 matching lines...) Expand all
68 public: 63 public:
69 explicit PepperPluginDelegateImpl(RenderViewImpl* render_view); 64 explicit PepperPluginDelegateImpl(RenderViewImpl* render_view);
70 virtual ~PepperPluginDelegateImpl(); 65 virtual ~PepperPluginDelegateImpl();
71 66
72 RenderViewImpl* render_view() { return render_view_; } 67 RenderViewImpl* render_view() { return render_view_; }
73 68
74 PepperBrowserConnection* pepper_browser_connection() { 69 PepperBrowserConnection* pepper_browser_connection() {
75 return &pepper_browser_connection_; 70 return &pepper_browser_connection_;
76 } 71 }
77 72
78 // Sets up the renderer host and out-of-process proxy for an external plugin
79 // module. Returns the renderer host, or NULL if it couldn't be created.
80 RendererPpapiHost* CreateExternalPluginModule(
81 scoped_refptr<webkit::ppapi::PluginModule> module,
82 const base::FilePath& path,
83 ppapi::PpapiPermissions permissions,
84 const IPC::ChannelHandle& channel_handle,
85 base::ProcessId plugin_pid,
86 int plugin_child_id);
87
88 // Removes broker from pending_connect_broker_ if present. Returns true if so. 73 // Removes broker from pending_connect_broker_ if present. Returns true if so.
89 bool StopWaitingForBrokerConnection(PepperBrokerImpl* broker); 74 bool StopWaitingForBrokerConnection(PepperBrokerImpl* broker);
90 75
91 CONTENT_EXPORT int GetRoutingID() const; 76 CONTENT_EXPORT int GetRoutingID() const;
92 77
93 typedef base::Callback<void (int /* request_id */, 78 typedef base::Callback<void (int /* request_id */,
94 bool /* succeeded */, 79 bool /* succeeded */,
95 const std::string& /* label */)> 80 const std::string& /* label */)>
96 OpenDeviceCallback; 81 OpenDeviceCallback;
97 82
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 virtual bool IsInFullscreenMode() OVERRIDE; 313 virtual bool IsInFullscreenMode() OVERRIDE;
329 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; 314 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE;
330 virtual bool IsPageVisible() const OVERRIDE; 315 virtual bool IsPageVisible() const OVERRIDE;
331 virtual int EnumerateDevices( 316 virtual int EnumerateDevices(
332 PP_DeviceType_Dev type, 317 PP_DeviceType_Dev type,
333 const EnumerateDevicesCallback& callback) OVERRIDE; 318 const EnumerateDevicesCallback& callback) OVERRIDE;
334 virtual void StopEnumerateDevices(int request_id) OVERRIDE; 319 virtual void StopEnumerateDevices(int request_id) OVERRIDE;
335 virtual void HandleDocumentLoad( 320 virtual void HandleDocumentLoad(
336 webkit::ppapi::PluginInstance* instance, 321 webkit::ppapi::PluginInstance* instance,
337 const WebKit::WebURLResponse& response) OVERRIDE; 322 const WebKit::WebURLResponse& response) OVERRIDE;
323 virtual content::RendererPpapiHost* CreateExternalPluginModule(
324 scoped_refptr<webkit::ppapi::PluginModule> module,
325 const base::FilePath& path,
326 ::ppapi::PpapiPermissions permissions,
327 const IPC::ChannelHandle& channel_handle,
328 base::ProcessId plugin_pid,
329 int plugin_child_id) OVERRIDE;
338 330
339 // RenderViewObserver implementation. 331 // RenderViewObserver implementation.
340 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 332 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
341 virtual void OnDestruct() OVERRIDE; 333 virtual void OnDestruct() OVERRIDE;
342 334
343 void OnTCPSocketConnectACK(uint32 plugin_dispatcher_id, 335 void OnTCPSocketConnectACK(uint32 plugin_dispatcher_id,
344 uint32 socket_id, 336 uint32 socket_id,
345 int32_t result, 337 int32_t result,
346 const PP_NetAddress_Private& local_addr, 338 const PP_NetAddress_Private& local_addr,
347 const PP_NetAddress_Private& remote_addr); 339 const PP_NetAddress_Private& remote_addr);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 device_enumeration_event_handler_; 450 device_enumeration_event_handler_;
459 451
460 scoped_refptr<ContextProviderCommandBuffer> offscreen_context3d_; 452 scoped_refptr<ContextProviderCommandBuffer> offscreen_context3d_;
461 453
462 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); 454 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
463 }; 455 };
464 456
465 } // namespace content 457 } // namespace content
466 458
467 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 459 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/renderer/renderer_ppapi_host.h ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698