Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: remoting/protocol/pepper_session.cc

Issue 8573013: Add CancelChannelCreation() in protocol::Session interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/pepper_session.h ('k') | remoting/protocol/pepper_stream_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/pepper_session.cc
diff --git a/remoting/protocol/pepper_session.cc b/remoting/protocol/pepper_session.cc
index 373bfc3009df75270b767d07ede7b656e2d6bec3..ce56fd51432557c6e1cc472cffbb93f8477bee96 100644
--- a/remoting/protocol/pepper_session.cc
+++ b/remoting/protocol/pepper_session.cc
@@ -126,6 +126,14 @@ void PepperSession::CreateDatagramChannel(
NOTREACHED();
}
+void PepperSession::CancelChannelCreation(const std::string& name) {
+ ChannelsMap::iterator it = channels_.find(name);
+ if (it != channels_.end() && !it->second->is_connected()) {
+ delete it->second;
+ DCHECK(!channels_[name]);
+ }
+}
+
net::Socket* PepperSession::control_channel() {
DCHECK(CalledOnValidThread());
return control_channel_socket_.get();
« no previous file with comments | « remoting/protocol/pepper_session.h ('k') | remoting/protocol/pepper_stream_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698