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

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

Issue 1984383003: Support LCS signaling address in the Host. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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_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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // Sets |state_| to |new_state| and calls state change callback. 110 // Sets |state_| to |new_state| and calls state change callback.
111 void SetState(State new_state); 111 void SetState(State new_state);
112 112
113 // Returns true if the state of the session is not CLOSED or FAILED 113 // Returns true if the state of the session is not CLOSED or FAILED
114 bool is_session_active(); 114 bool is_session_active();
115 115
116 base::ThreadChecker thread_checker_; 116 base::ThreadChecker thread_checker_;
117 117
118 JingleSessionManager* session_manager_; 118 JingleSessionManager* session_manager_;
119 std::string peer_jid_; 119 Address peer_;
Sergey Ulanov 2016/05/18 07:00:42 peer_address_
kelvinp 2016/05/18 23:43:29 Done.
120 Session::EventHandler* event_handler_; 120 Session::EventHandler* event_handler_;
121 121
122 std::string session_id_; 122 std::string session_id_;
123 State state_; 123 State state_;
124 ErrorCode error_; 124 ErrorCode error_;
125 125
126 std::unique_ptr<SessionConfig> config_; 126 std::unique_ptr<SessionConfig> config_;
127 127
128 std::unique_ptr<Authenticator> authenticator_; 128 std::unique_ptr<Authenticator> authenticator_;
129 129
130 Transport* transport_ = nullptr; 130 Transport* transport_ = nullptr;
131 131
132 // Pending Iq requests. Used for all messages except transport-info. 132 // Pending Iq requests. Used for all messages except transport-info.
133 std::set<IqRequest*> pending_requests_; 133 std::set<IqRequest*> pending_requests_;
134 134
135 // Pending transport-info requests. 135 // Pending transport-info requests.
136 std::list<IqRequest*> transport_info_requests_; 136 std::list<IqRequest*> transport_info_requests_;
137 137
138 base::WeakPtrFactory<JingleSession> weak_factory_; 138 base::WeakPtrFactory<JingleSession> weak_factory_;
139 139
140 DISALLOW_COPY_AND_ASSIGN(JingleSession); 140 DISALLOW_COPY_AND_ASSIGN(JingleSession);
141 }; 141 };
142 142
143 } // namespace protocol 143 } // namespace protocol
144 } // namespace remoting 144 } // namespace remoting
145 145
146 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_ 146 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698