| OLD | NEW |
| 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_MANAGER_H_ | 5 #ifndef REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ |
| 6 #define REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ | 6 #define REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // ContentDescription used for chromoting sessions. It contains the information | 35 // ContentDescription used for chromoting sessions. It contains the information |
| 36 // from the content description stanza in the session intialization handshake. | 36 // from the content description stanza in the session intialization handshake. |
| 37 // | 37 // |
| 38 // This class also provides a type abstraction so that the Chromotocol Session | 38 // This class also provides a type abstraction so that the Chromotocol Session |
| 39 // interface does not need to depend on libjingle. | 39 // interface does not need to depend on libjingle. |
| 40 class ContentDescription : public cricket::ContentDescription { | 40 class ContentDescription : public cricket::ContentDescription { |
| 41 public: | 41 public: |
| 42 explicit ContentDescription(const CandidateSessionConfig* config, | 42 explicit ContentDescription(const CandidateSessionConfig* config, |
| 43 const std::string& auth_token, | 43 const std::string& auth_token, |
| 44 scoped_refptr<net::X509Certificate> certificate); | 44 scoped_refptr<net::X509Certificate> certificate); |
| 45 ~ContentDescription(); | 45 virtual ~ContentDescription(); |
| 46 | 46 |
| 47 const CandidateSessionConfig* config() const { | 47 const CandidateSessionConfig* config() const { |
| 48 return candidate_config_.get(); | 48 return candidate_config_.get(); |
| 49 } | 49 } |
| 50 | 50 |
| 51 const std::string& auth_token() const { return auth_token_; } | 51 const std::string& auth_token() const { return auth_token_; } |
| 52 | 52 |
| 53 scoped_refptr<net::X509Certificate> certificate() const { | 53 scoped_refptr<net::X509Certificate> certificate() const { |
| 54 return certificate_; | 54 return certificate_; |
| 55 } | 55 } |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 scoped_ptr<crypto::RSAPrivateKey> private_key_; | 152 scoped_ptr<crypto::RSAPrivateKey> private_key_; |
| 153 | 153 |
| 154 DISALLOW_COPY_AND_ASSIGN(JingleSessionManager); | 154 DISALLOW_COPY_AND_ASSIGN(JingleSessionManager); |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace protocol | 157 } // namespace protocol |
| 158 | 158 |
| 159 } // namespace remoting | 159 } // namespace remoting |
| 160 | 160 |
| 161 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ | 161 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ |
| OLD | NEW |