| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |