diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-03 22:37:24 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-03 22:37:24 +0000 |
commit | fba37bce7cbb5448a54f84404e489d427e8844e9 (patch) | |
tree | 18d8e73a107c1561b6b6fe4b614ece848b4b636b /webkit | |
parent | 29290dbf62371f37e87eb768022f6f89b71ce743 (diff) | |
download | chromium_src-fba37bce7cbb5448a54f84404e489d427e8844e9.zip chromium_src-fba37bce7cbb5448a54f84404e489d427e8844e9.tar.gz chromium_src-fba37bce7cbb5448a54f84404e489d427e8844e9.tar.bz2 |
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
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/plugins/ppapi/mock_plugin_delegate.cc | 5 | ||||
-rw-r--r-- | webkit/plugins/ppapi/mock_plugin_delegate.h | 1 | ||||
-rw-r--r-- | webkit/plugins/ppapi/plugin_delegate.h | 8 |
3 files changed, 13 insertions, 1 deletions
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 |