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

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

Issue 429113002: Webrtc deps roll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use webrtc version 6825 and rebase and switch back to original workspace. Created 6 years, 4 months 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_manager.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "net/cert/x509_certificate.h" 13 #include "net/cert/x509_certificate.h"
14 #include "remoting/protocol/jingle_messages.h" 14 #include "remoting/protocol/jingle_messages.h"
15 #include "remoting/protocol/session_manager.h" 15 #include "remoting/protocol/session_manager.h"
16 #include "remoting/signaling/signal_strategy.h" 16 #include "remoting/signaling/signal_strategy.h"
17 17
18 namespace pp { 18 namespace pp {
19 class Instance; 19 class Instance;
20 } // namespace pp 20 } // namespace pp
21 21
22 namespace buzz { 22 namespace buzz {
23 class XmlElement; 23 class XmlElement;
24 } // namespace buzz 24 } // namespace buzz
25 25
26 namespace talk_base { 26 namespace rtc {
27 class SocketAddress; 27 class SocketAddress;
28 } // namespace talk_base 28 } // namespace rtc
29 29
30 namespace remoting { 30 namespace remoting {
31 31
32 class IqSender; 32 class IqSender;
33 33
34 namespace protocol { 34 namespace protocol {
35 35
36 class JingleSession; 36 class JingleSession;
37 class TransportFactory; 37 class TransportFactory;
38 38
(...skipping 25 matching lines...) Expand all
64 const buzz::XmlElement* stanza) OVERRIDE; 64 const buzz::XmlElement* stanza) OVERRIDE;
65 65
66 private: 66 private:
67 friend class JingleSession; 67 friend class JingleSession;
68 68
69 typedef std::map<std::string, JingleSession*> SessionsMap; 69 typedef std::map<std::string, JingleSession*> SessionsMap;
70 70
71 void OnJingleInfo( 71 void OnJingleInfo(
72 const std::string& relay_token, 72 const std::string& relay_token,
73 const std::vector<std::string>& relay_hosts, 73 const std::vector<std::string>& relay_hosts,
74 const std::vector<talk_base::SocketAddress>& stun_hosts); 74 const std::vector<rtc::SocketAddress>& stun_hosts);
75 75
76 IqSender* iq_sender() { return iq_sender_.get(); } 76 IqSender* iq_sender() { return iq_sender_.get(); }
77 void SendReply(const buzz::XmlElement* original_stanza, 77 void SendReply(const buzz::XmlElement* original_stanza,
78 JingleMessageReply::ErrorType error); 78 JingleMessageReply::ErrorType error);
79 79
80 // Called by JingleSession when it is being destroyed. 80 // Called by JingleSession when it is being destroyed.
81 void SessionDestroyed(JingleSession* session); 81 void SessionDestroyed(JingleSession* session);
82 82
83 scoped_ptr<TransportFactory> transport_factory_; 83 scoped_ptr<TransportFactory> transport_factory_;
84 bool fetch_stun_relay_config_; 84 bool fetch_stun_relay_config_;
85 85
86 SignalStrategy* signal_strategy_; 86 SignalStrategy* signal_strategy_;
87 scoped_ptr<AuthenticatorFactory> authenticator_factory_; 87 scoped_ptr<AuthenticatorFactory> authenticator_factory_;
88 scoped_ptr<IqSender> iq_sender_; 88 scoped_ptr<IqSender> iq_sender_;
89 SessionManager::Listener* listener_; 89 SessionManager::Listener* listener_;
90 90
91 bool ready_; 91 bool ready_;
92 92
93 SessionsMap sessions_; 93 SessionsMap sessions_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(JingleSessionManager); 95 DISALLOW_COPY_AND_ASSIGN(JingleSessionManager);
96 }; 96 };
97 97
98 } // namespace protocol 98 } // namespace protocol
99 } // namespace remoting 99 } // namespace remoting
100 100
101 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ 101 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/jingle_messages.cc ('k') | remoting/protocol/jingle_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698