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

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
« no previous file with comments | « remoting/protocol/jingle_messages.cc ('k') | remoting/protocol/jingle_session.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_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. |result|
85 void CloseInternal(int result, bool failed); 85 // defines error code that should returned to currently opened
86 // channels. |error| specified new value for error().
87 void CloseInternal(int result, Error error);
86 88
87 bool HasSession(cricket::Session* cricket_session); 89 bool HasSession(cricket::Session* cricket_session);
88 cricket::Session* ReleaseSession(); 90 cricket::Session* ReleaseSession();
89 91
90 // Initialize the session configuration from a received connection response 92 // Initialize the session configuration from a received connection response
91 // stanza. 93 // stanza.
92 bool InitializeConfigFromDescription( 94 bool InitializeConfigFromDescription(
93 const cricket::SessionDescription* description); 95 const cricket::SessionDescription* description);
94 96
95 // Used for Session.SignalState sigslot. 97 // Used for Session.SignalState sigslot.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 ScopedRunnableMethodFactory<JingleSession> task_factory_; 183 ScopedRunnableMethodFactory<JingleSession> task_factory_;
182 184
183 DISALLOW_COPY_AND_ASSIGN(JingleSession); 185 DISALLOW_COPY_AND_ASSIGN(JingleSession);
184 }; 186 };
185 187
186 } // namespace protocol 188 } // namespace protocol
187 189
188 } // namespace remoting 190 } // namespace remoting
189 191
190 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_ 192 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/protocol/jingle_messages.cc ('k') | remoting/protocol/jingle_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698