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

Side by Side Diff: remoting/protocol/pepper_stream_channel.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/pepper_session.cc ('k') | remoting/protocol/pepper_stream_channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ 5 #ifndef REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_
6 #define REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ 6 #define REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 21 matching lines...) Expand all
32 PepperStreamChannel(PepperSession* session, 32 PepperStreamChannel(PepperSession* session,
33 const std::string& name, 33 const std::string& name,
34 const Session::StreamChannelCallback& callback); 34 const Session::StreamChannelCallback& callback);
35 virtual ~PepperStreamChannel(); 35 virtual ~PepperStreamChannel();
36 36
37 // PepperChannel implementation. 37 // PepperChannel implementation.
38 virtual void Connect(pp::Instance* pp_instance, 38 virtual void Connect(pp::Instance* pp_instance,
39 const TransportConfig& transport_config, 39 const TransportConfig& transport_config,
40 const std::string& remote_cert) OVERRIDE; 40 const std::string& remote_cert) OVERRIDE;
41 virtual void AddRemoveCandidate(const cricket::Candidate& candidate) OVERRIDE; 41 virtual void AddRemoveCandidate(const cricket::Candidate& candidate) OVERRIDE;
42 virtual const std::string& name() OVERRIDE; 42 virtual const std::string& name() const OVERRIDE;
43 virtual bool is_connected() const OVERRIDE;
43 44
44 // PepperTransportSocketAdapter implementation. 45 // PepperTransportSocketAdapter implementation.
45 virtual void OnChannelDeleted() OVERRIDE; 46 virtual void OnChannelDeleted() OVERRIDE;
46 virtual void OnChannelNewLocalCandidate( 47 virtual void OnChannelNewLocalCandidate(
47 const std::string& candidate) OVERRIDE; 48 const std::string& candidate) OVERRIDE;
48 49
49 private: 50 private:
50 void OnP2PConnect(int result); 51 void OnP2PConnect(int result);
51 52
52 bool EstablishSSLConnection(); 53 bool EstablishSSLConnection();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 net::OldCompletionCallbackImpl<PepperStreamChannel> p2p_connect_callback_; 85 net::OldCompletionCallbackImpl<PepperStreamChannel> p2p_connect_callback_;
85 net::OldCompletionCallbackImpl<PepperStreamChannel> ssl_connect_callback_; 86 net::OldCompletionCallbackImpl<PepperStreamChannel> ssl_connect_callback_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(PepperStreamChannel); 88 DISALLOW_COPY_AND_ASSIGN(PepperStreamChannel);
88 }; 89 };
89 90
90 } // namespace protocol 91 } // namespace protocol
91 } // namespace remoting 92 } // namespace remoting
92 93
93 #endif // REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ 94 #endif // REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_
OLDNEW
« no previous file with comments | « remoting/protocol/pepper_session.cc ('k') | remoting/protocol/pepper_stream_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698