summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-03 22:37:24 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-03 22:37:24 +0000
commitfba37bce7cbb5448a54f84404e489d427e8844e9 (patch)
tree18d8e73a107c1561b6b6fe4b614ece848b4b636b /webkit
parent29290dbf62371f37e87eb768022f6f89b71ce743 (diff)
downloadchromium_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.cc5
-rw-r--r--webkit/plugins/ppapi/mock_plugin_delegate.h1
-rw-r--r--webkit/plugins/ppapi/plugin_delegate.h8
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