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

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

Issue 8537020: Send correct termination reason when session is terminated by the host. (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
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_JINGLE_SESSION_H_ 5 #ifndef REMOTING_PROTOCOL_JINGLE_SESSION_H_
6 #define REMOTING_PROTOCOL_JINGLE_SESSION_H_ 6 #define REMOTING_PROTOCOL_JINGLE_SESSION_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "crypto/rsa_private_key.h" 10 #include "crypto/rsa_private_key.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const std::string& local_cert, 74 const std::string& local_cert,
75 crypto::RSAPrivateKey* local_private_key, 75 crypto::RSAPrivateKey* local_private_key,
76 const std::string& peer_public_key); 76 const std::string& peer_public_key);
77 virtual ~JingleSession(); 77 virtual ~JingleSession();
78 78
79 // Called by JingleSessionManager. 79 // Called by JingleSessionManager.
80 void set_candidate_config(const CandidateSessionConfig* candidate_config); 80 void set_candidate_config(const CandidateSessionConfig* candidate_config);
81 const std::string& local_certificate() const; 81 const std::string& local_certificate() const;
82 void Init(cricket::Session* cricket_session); 82 void Init(cricket::Session* cricket_session);
83 83
84 // Close all the channels and terminate the session. 84 // Close all the channels and terminate the session.
Wez 2011/11/11 23:10:09 Explain what |result| and |error| are used for?
Sergey Ulanov 2011/11/12 00:02:52 Done.
85 void CloseInternal(int result, bool failed); 85 void CloseInternal(int result, Error error);
86 86
87 bool HasSession(cricket::Session* cricket_session); 87 bool HasSession(cricket::Session* cricket_session);
88 cricket::Session* ReleaseSession(); 88 cricket::Session* ReleaseSession();
89 89
90 // Initialize the session configuration from a received connection response 90 // Initialize the session configuration from a received connection response
91 // stanza. 91 // stanza.
92 bool InitializeConfigFromDescription( 92 bool InitializeConfigFromDescription(
93 const cricket::SessionDescription* description); 93 const cricket::SessionDescription* description);
94 94
95 // Used for Session.SignalState sigslot. 95 // Used for Session.SignalState sigslot.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 ScopedRunnableMethodFactory<JingleSession> task_factory_; 181 ScopedRunnableMethodFactory<JingleSession> task_factory_;
182 182
183 DISALLOW_COPY_AND_ASSIGN(JingleSession); 183 DISALLOW_COPY_AND_ASSIGN(JingleSession);
184 }; 184 };
185 185
186 } // namespace protocol 186 } // namespace protocol
187 187
188 } // namespace remoting 188 } // namespace remoting
189 189
190 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_ 190 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698