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

Side by Side Diff: remoting/jingle_glue/jingle_client.h

Issue 6911024: Add HostObserverInterface and decouple HeartbeatSender and ChromotingHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/simple_host_process.cc ('k') | remoting/jingle_glue/jingle_thread.h » ('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_JINGLE_GLUE_JINGLE_CLIENT_H_ 5 #ifndef REMOTING_JINGLE_GLUE_JINGLE_CLIENT_H_
6 #define REMOTING_JINGLE_GLUE_JINGLE_CLIENT_H_ 6 #define REMOTING_JINGLE_GLUE_JINGLE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 IqRequest* CreateIqRequest(); 170 IqRequest* CreateIqRequest();
171 171
172 // The session manager used by this client. Must be called from the 172 // The session manager used by this client. Must be called from the
173 // jingle thread only. Returns NULL if the client is not active. 173 // jingle thread only. Returns NULL if the client is not active.
174 cricket::SessionManager* session_manager(); 174 cricket::SessionManager* session_manager();
175 175
176 // Message loop used by this object to execute tasks. 176 // Message loop used by this object to execute tasks.
177 MessageLoop* message_loop(); 177 MessageLoop* message_loop();
178 178
179 private: 179 private:
180 friend class HeartbeatSenderTest;
181 friend class JingleClientTest; 180 friend class JingleClientTest;
182 181
183 void DoInitialize(); 182 void DoInitialize();
184 void DoStartSession(); 183 void DoStartSession();
185 void DoClose(); 184 void DoClose();
186 185
187 // Updates current state of the connection. Must be called only in 186 // Updates current state of the connection. Must be called only in
188 // the jingle thread. 187 // the jingle thread.
189 void UpdateState(State new_state); 188 void UpdateState(State new_state);
190 189
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 scoped_ptr<cricket::SessionManager> session_manager_; 235 scoped_ptr<cricket::SessionManager> session_manager_;
237 236
238 scoped_ptr<JingleInfoRequest> jingle_info_request_; 237 scoped_ptr<JingleInfoRequest> jingle_info_request_;
239 238
240 DISALLOW_COPY_AND_ASSIGN(JingleClient); 239 DISALLOW_COPY_AND_ASSIGN(JingleClient);
241 }; 240 };
242 241
243 } // namespace remoting 242 } // namespace remoting
244 243
245 #endif // REMOTING_JINGLE_GLUE_JINGLE_CLIENT_H_ 244 #endif // REMOTING_JINGLE_GLUE_JINGLE_CLIENT_H_
OLDNEW
« no previous file with comments | « remoting/host/simple_host_process.cc ('k') | remoting/jingle_glue/jingle_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698