From fba37bce7cbb5448a54f84404e489d427e8844e9 Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Thu, 3 Mar 2011 22:37:24 +0000 Subject: Add GetP2PSocketDispatcher() in ppapi::PluginDelegate. BUG=None TEST=None Review URL: http://codereview.chromium.org/6609028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76818 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/plugins/ppapi/mock_plugin_delegate.cc | 5 ++++- webkit/plugins/ppapi/mock_plugin_delegate.h | 1 + webkit/plugins/ppapi/plugin_delegate.h | 8 ++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) (limited to 'webkit/plugins/ppapi') diff --git a/webkit/plugins/ppapi/mock_plugin_delegate.cc b/webkit/plugins/ppapi/mock_plugin_delegate.cc index 6f55e9b..cac4cfc 100644 --- a/webkit/plugins/ppapi/mock_plugin_delegate.cc +++ b/webkit/plugins/ppapi/mock_plugin_delegate.cc @@ -202,6 +202,9 @@ void MockPluginDelegate::SetContentRestriction(int restrictions) { void MockPluginDelegate::HasUnsupportedFeature() { } +P2PSocketDispatcher* MockPluginDelegate::GetP2PSocketDispatcher() { + return NULL; +} + } // namespace ppapi } // namespace webkit - diff --git a/webkit/plugins/ppapi/mock_plugin_delegate.h b/webkit/plugins/ppapi/mock_plugin_delegate.h index 6efa63f..a759296 100644 --- a/webkit/plugins/ppapi/mock_plugin_delegate.h +++ b/webkit/plugins/ppapi/mock_plugin_delegate.h @@ -91,6 +91,7 @@ class MockPluginDelegate : public PluginDelegate { virtual void DidStopLoading(); virtual void SetContentRestriction(int restrictions); virtual void HasUnsupportedFeature(); + virtual P2PSocketDispatcher* GetP2PSocketDispatcher(); }; } // namespace ppapi diff --git a/webkit/plugins/ppapi/plugin_delegate.h b/webkit/plugins/ppapi/plugin_delegate.h index 3aead21..5695a70 100644 --- a/webkit/plugins/ppapi/plugin_delegate.h +++ b/webkit/plugins/ppapi/plugin_delegate.h @@ -23,6 +23,7 @@ class AudioMessageFilter; class GURL; +class P2PSocketDispatcher; namespace base { class MessageLoopProxy; @@ -327,6 +328,13 @@ class PluginDelegate { // Tells the browser that the PDF has an unsupported feature. virtual void HasUnsupportedFeature() = 0; + + // Socket dispatcher for P2P connections. Returns to NULL if P2P API + // is disabled. + // + // TODO(sergeyu): Replace this with a higher-level P2P API + // implementation. + virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; }; } // namespace ppapi -- cgit v1.1