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/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
10 #include "base/stl_util-inl.h" | 10 #include "base/stl_util.h" |
11 #include "crypto/hmac.h" | 11 #include "crypto/hmac.h" |
12 #include "crypto/rsa_private_key.h" | 12 #include "crypto/rsa_private_key.h" |
13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
14 #include "net/socket/stream_socket.h" | 14 #include "net/socket/stream_socket.h" |
15 #include "remoting/base/constants.h" | 15 #include "remoting/base/constants.h" |
16 #include "remoting/protocol/jingle_datagram_connector.h" | 16 #include "remoting/protocol/jingle_datagram_connector.h" |
17 #include "remoting/protocol/jingle_session_manager.h" | 17 #include "remoting/protocol/jingle_session_manager.h" |
18 #include "remoting/protocol/jingle_stream_connector.h" | 18 #include "remoting/protocol/jingle_stream_connector.h" |
19 #include "third_party/libjingle/source/talk/base/thread.h" | 19 #include "third_party/libjingle/source/talk/base/thread.h" |
20 #include "third_party/libjingle/source/talk/p2p/base/session.h" | 20 #include "third_party/libjingle/source/talk/p2p/base/session.h" |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 | 563 |
564 state_ = new_state; | 564 state_ = new_state; |
565 if (!closed_ && state_change_callback_.get()) | 565 if (!closed_ && state_change_callback_.get()) |
566 state_change_callback_->Run(new_state); | 566 state_change_callback_->Run(new_state); |
567 } | 567 } |
568 } | 568 } |
569 | 569 |
570 } // namespace protocol | 570 } // namespace protocol |
571 | 571 |
572 } // namespace remoting | 572 } // namespace remoting |
OLD | NEW |