| OLD | NEW |
| 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 #include "remoting/protocol/connection_to_host.h" | 5 #include "remoting/protocol/connection_to_host.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "remoting/base/constants.h" | 10 #include "remoting/base/constants.h" |
| 11 #include "remoting/jingle_glue/signal_strategy.h" | 11 #include "remoting/jingle_glue/signal_strategy.h" |
| 12 #include "remoting/protocol/audio_reader.h" | 12 #include "remoting/protocol/audio_reader.h" |
| 13 #include "remoting/protocol/audio_stub.h" | 13 #include "remoting/protocol/audio_stub.h" |
| 14 #include "remoting/protocol/auth_util.h" | 14 #include "remoting/protocol/auth_util.h" |
| 15 #include "remoting/protocol/authenticator.h" | 15 #include "remoting/protocol/authenticator.h" |
| 16 #include "remoting/protocol/client_control_dispatcher.h" | 16 #include "remoting/protocol/client_control_dispatcher.h" |
| 17 #include "remoting/protocol/client_event_dispatcher.h" | 17 #include "remoting/protocol/client_event_dispatcher.h" |
| 18 #include "remoting/protocol/client_stub.h" | 18 #include "remoting/protocol/client_stub.h" |
| 19 #include "remoting/protocol/clipboard_stub.h" | 19 #include "remoting/protocol/clipboard_stub.h" |
| 20 #include "remoting/protocol/errors.h" | 20 #include "remoting/protocol/errors.h" |
| 21 #include "remoting/protocol/jingle_session_manager.h" | 21 #include "remoting/protocol/jingle_session_manager.h" |
| 22 #include "remoting/protocol/transport.h" | 22 #include "remoting/protocol/transport.h" |
| 23 #include "remoting/protocol/video_reader.h" | 23 #include "remoting/protocol/video_reader.h" |
| 24 #include "remoting/protocol/video_stub.h" | 24 #include "remoting/protocol/video_stub.h" |
| 25 #include "remoting/protocol/util.h" | |
| 26 | 25 |
| 27 namespace remoting { | 26 namespace remoting { |
| 28 namespace protocol { | 27 namespace protocol { |
| 29 | 28 |
| 30 ConnectionToHost::ConnectionToHost( | 29 ConnectionToHost::ConnectionToHost( |
| 31 bool allow_nat_traversal) | 30 bool allow_nat_traversal) |
| 32 : allow_nat_traversal_(allow_nat_traversal), | 31 : allow_nat_traversal_(allow_nat_traversal), |
| 33 event_callback_(NULL), | 32 event_callback_(NULL), |
| 34 client_stub_(NULL), | 33 client_stub_(NULL), |
| 35 clipboard_stub_(NULL), | 34 clipboard_stub_(NULL), |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 | 281 |
| 283 if (state != state_) { | 282 if (state != state_) { |
| 284 state_ = state; | 283 state_ = state; |
| 285 error_ = error; | 284 error_ = error; |
| 286 event_callback_->OnConnectionState(state_, error_); | 285 event_callback_->OnConnectionState(state_, error_); |
| 287 } | 286 } |
| 288 } | 287 } |
| 289 | 288 |
| 290 } // namespace protocol | 289 } // namespace protocol |
| 291 } // namespace remoting | 290 } // namespace remoting |
| OLD | NEW |