summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/session.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-17 00:48:12 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-17 00:48:12 +0000
commitf2d6a00399cc2171b4180ca29be5e0dd3154454a (patch)
tree5636a050a999827a7ce99622405768c156853757 /remoting/protocol/session.h
parent59886edef95ad60b74f70df276f1d21744ad48e2 (diff)
downloadchromium_src-f2d6a00399cc2171b4180ca29be5e0dd3154454a.zip
chromium_src-f2d6a00399cc2171b4180ca29be5e0dd3154454a.tar.gz
chromium_src-f2d6a00399cc2171b4180ca29be5e0dd3154454a.tar.bz2
Add CancelChannelCreation() in protocol::Session interface.
The new method cancels channel creation for pending channel. This prevents some potential crashes. Review URL: http://codereview.chromium.org/8573013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110401 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/session.h')
-rw-r--r--remoting/protocol/session.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/remoting/protocol/session.h b/remoting/protocol/session.h
index e0a91a0..32e2de9 100644
--- a/remoting/protocol/session.h
+++ b/remoting/protocol/session.h
@@ -90,6 +90,11 @@ class Session : public base::NonThreadSafe {
virtual void CreateDatagramChannel(
const std::string& name, const DatagramChannelCallback& callback) = 0;
+ // Cancels a pending CreateStreamChannel() or CreateDatagramChannel()
+ // operation for the named channel. If the channel creation already
+ // completed then cancelling it has no effect.
+ virtual void CancelChannelCreation(const std::string& name) = 0;
+
// TODO(sergeyu): Remove these methods, and use CreateChannel()
// instead.
virtual net::Socket* control_channel() = 0;