| 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_PEPPER_SESSION_MANAGER_H_ | 5 #ifndef REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_ |
| 6 #define REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_ | 6 #define REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 SignalStrategy* signal_strategy, | 51 SignalStrategy* signal_strategy, |
| 52 SessionManager::Listener* listener, | 52 SessionManager::Listener* listener, |
| 53 crypto::RSAPrivateKey* private_key, | 53 crypto::RSAPrivateKey* private_key, |
| 54 const std::string& certificate, | 54 const std::string& certificate, |
| 55 bool allow_nat_traversal) OVERRIDE; | 55 bool allow_nat_traversal) OVERRIDE; |
| 56 virtual Session* Connect( | 56 virtual Session* Connect( |
| 57 const std::string& host_jid, | 57 const std::string& host_jid, |
| 58 const std::string& host_public_key, | 58 const std::string& host_public_key, |
| 59 const std::string& client_token, | 59 const std::string& client_token, |
| 60 CandidateSessionConfig* config, | 60 CandidateSessionConfig* config, |
| 61 Session::StateChangeCallback* state_change_callback) OVERRIDE; | 61 const Session::StateChangeCallback& state_change_callback) OVERRIDE; |
| 62 virtual void Close() OVERRIDE; | 62 virtual void Close() OVERRIDE; |
| 63 | 63 |
| 64 // SignalStrategy::Listener interface. | 64 // SignalStrategy::Listener interface. |
| 65 virtual bool OnIncomingStanza(const buzz::XmlElement* stanza) OVERRIDE; | 65 virtual bool OnIncomingStanza(const buzz::XmlElement* stanza) OVERRIDE; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 friend class PepperSession; | 68 friend class PepperSession; |
| 69 | 69 |
| 70 typedef std::map<std::string, PepperSession*> SessionsMap; | 70 typedef std::map<std::string, PepperSession*> SessionsMap; |
| 71 | 71 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 96 | 96 |
| 97 SessionsMap sessions_; | 97 SessionsMap sessions_; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(PepperSessionManager); | 99 DISALLOW_COPY_AND_ASSIGN(PepperSessionManager); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace protocol | 102 } // namespace protocol |
| 103 } // namespace remoting | 103 } // namespace remoting |
| 104 | 104 |
| 105 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_ | 105 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_ |
| OLD | NEW |