Commit 424dc36e authored by sergeyu@chromium.org's avatar sergeyu@chromium.org

Remove GetP2PSocketDispatcher from PepperPluginDelegate interface.

BUG=None
TEST=Compiles.

Review URL: http://codereview.chromium.org/7982032

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102337 0039d316-1c4b-4281-b951-d872f2087c98
parent 6568e6bb
...@@ -1519,11 +1519,6 @@ void PepperPluginDelegateImpl::SaveURLAs(const GURL& url) { ...@@ -1519,11 +1519,6 @@ void PepperPluginDelegateImpl::SaveURLAs(const GURL& url) {
render_view_->routing_id(), url)); render_view_->routing_id(), url));
} }
content::P2PSocketDispatcher*
PepperPluginDelegateImpl::GetP2PSocketDispatcher() {
return render_view_->p2p_socket_dispatcher();
}
webkit_glue::P2PTransport* PepperPluginDelegateImpl::CreateP2PTransport() { webkit_glue::P2PTransport* PepperPluginDelegateImpl::CreateP2PTransport() {
#if defined(ENABLE_P2P_APIS) #if defined(ENABLE_P2P_APIS)
return new content::P2PTransportImpl(render_view_->p2p_socket_dispatcher()); return new content::P2PTransportImpl(render_view_->p2p_socket_dispatcher());
......
...@@ -308,7 +308,6 @@ class PepperPluginDelegateImpl ...@@ -308,7 +308,6 @@ class PepperPluginDelegateImpl
virtual void DidStopLoading() OVERRIDE; virtual void DidStopLoading() OVERRIDE;
virtual void SetContentRestriction(int restrictions) OVERRIDE; virtual void SetContentRestriction(int restrictions) OVERRIDE;
virtual void SaveURLAs(const GURL& url) OVERRIDE; virtual void SaveURLAs(const GURL& url) OVERRIDE;
virtual content::P2PSocketDispatcher* GetP2PSocketDispatcher() OVERRIDE;
virtual webkit_glue::P2PTransport* CreateP2PTransport() OVERRIDE; virtual webkit_glue::P2PTransport* CreateP2PTransport() OVERRIDE;
virtual double GetLocalTimeZoneOffset(base::Time t) OVERRIDE; virtual double GetLocalTimeZoneOffset(base::Time t) OVERRIDE;
virtual std::string GetFlashCommandLineArgs() OVERRIDE; virtual std::string GetFlashCommandLineArgs() OVERRIDE;
......
...@@ -260,10 +260,6 @@ void MockPluginDelegate::SetContentRestriction(int restrictions) { ...@@ -260,10 +260,6 @@ void MockPluginDelegate::SetContentRestriction(int restrictions) {
void MockPluginDelegate::SaveURLAs(const GURL& url) { void MockPluginDelegate::SaveURLAs(const GURL& url) {
} }
content::P2PSocketDispatcher* MockPluginDelegate::GetP2PSocketDispatcher() {
return NULL;
}
webkit_glue::P2PTransport* MockPluginDelegate::CreateP2PTransport() { webkit_glue::P2PTransport* MockPluginDelegate::CreateP2PTransport() {
return NULL; return NULL;
} }
......
...@@ -112,7 +112,6 @@ class MockPluginDelegate : public PluginDelegate { ...@@ -112,7 +112,6 @@ class MockPluginDelegate : public PluginDelegate {
virtual void DidStopLoading(); virtual void DidStopLoading();
virtual void SetContentRestriction(int restrictions); virtual void SetContentRestriction(int restrictions);
virtual void SaveURLAs(const GURL& url); virtual void SaveURLAs(const GURL& url);
virtual content::P2PSocketDispatcher* GetP2PSocketDispatcher();
virtual webkit_glue::P2PTransport* CreateP2PTransport(); virtual webkit_glue::P2PTransport* CreateP2PTransport();
virtual double GetLocalTimeZoneOffset(base::Time t); virtual double GetLocalTimeZoneOffset(base::Time t);
virtual std::string GetFlashCommandLineArgs(); virtual std::string GetFlashCommandLineArgs();
......
...@@ -424,13 +424,6 @@ class PluginDelegate { ...@@ -424,13 +424,6 @@ class PluginDelegate {
// Tells the browser to bring up SaveAs dialog to save specified URL. // Tells the browser to bring up SaveAs dialog to save specified URL.
virtual void SaveURLAs(const GURL& url) = 0; virtual void SaveURLAs(const GURL& url) = 0;
// Socket dispatcher for P2P connections. Returns to NULL if P2P API
// is disabled.
//
// TODO(sergeyu): Stop using GetP2PSocketDispatcher() in remoting
// client and remove it from here.
virtual content::P2PSocketDispatcher* GetP2PSocketDispatcher() = 0;
// Creates P2PTransport object. // Creates P2PTransport object.
virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment