| 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 #include "remoting/protocol/jingle_session.h" | 5 #include "remoting/protocol/jingle_session.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" |
| 8 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
| 9 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
| 10 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 11 #include "crypto/hmac.h" | 12 #include "crypto/hmac.h" |
| 12 #include "crypto/rsa_private_key.h" | 13 #include "crypto/rsa_private_key.h" |
| 13 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
| 14 #include "net/socket/stream_socket.h" | 15 #include "net/socket/stream_socket.h" |
| 15 #include "remoting/base/constants.h" | 16 #include "remoting/base/constants.h" |
| 16 #include "remoting/protocol/jingle_datagram_connector.h" | 17 #include "remoting/protocol/jingle_datagram_connector.h" |
| 17 #include "remoting/protocol/jingle_session_manager.h" | 18 #include "remoting/protocol/jingle_session_manager.h" |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 DCHECK_NE(state_, FAILED); | 460 DCHECK_NE(state_, FAILED); |
| 460 | 461 |
| 461 state_ = new_state; | 462 state_ = new_state; |
| 462 if (state_change_callback_.get()) | 463 if (state_change_callback_.get()) |
| 463 state_change_callback_->Run(new_state); | 464 state_change_callback_->Run(new_state); |
| 464 } | 465 } |
| 465 } | 466 } |
| 466 | 467 |
| 467 } // namespace protocol | 468 } // namespace protocol |
| 468 } // namespace remoting | 469 } // namespace remoting |
| OLD | NEW |