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/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 "base/message_loop_proxy.h" | 10 #include "base/message_loop_proxy.h" |
11 #include "remoting/base/constants.h" | 11 #include "remoting/base/constants.h" |
12 #include "remoting/jingle_glue/javascript_signal_strategy.h" | 12 #include "remoting/jingle_glue/javascript_signal_strategy.h" |
13 #include "remoting/jingle_glue/xmpp_signal_strategy.h" | 13 #include "remoting/jingle_glue/xmpp_signal_strategy.h" |
14 #include "remoting/protocol/auth_token_utils.h" | 14 #include "remoting/protocol/auth_util.h" |
15 #include "remoting/protocol/client_control_dispatcher.h" | 15 #include "remoting/protocol/client_control_dispatcher.h" |
16 #include "remoting/protocol/client_event_dispatcher.h" | 16 #include "remoting/protocol/client_event_dispatcher.h" |
17 #include "remoting/protocol/client_stub.h" | 17 #include "remoting/protocol/client_stub.h" |
18 #include "remoting/protocol/jingle_session_manager.h" | 18 #include "remoting/protocol/jingle_session_manager.h" |
19 #include "remoting/protocol/pepper_session_manager.h" | 19 #include "remoting/protocol/pepper_session_manager.h" |
20 #include "remoting/protocol/video_reader.h" | 20 #include "remoting/protocol/video_reader.h" |
21 #include "remoting/protocol/video_stub.h" | 21 #include "remoting/protocol/video_stub.h" |
22 #include "remoting/protocol/util.h" | 22 #include "remoting/protocol/util.h" |
23 | 23 |
24 namespace remoting { | 24 namespace remoting { |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 253 |
254 if (state != state_) { | 254 if (state != state_) { |
255 state_ = state; | 255 state_ = state; |
256 error_ = error; | 256 error_ = error; |
257 event_callback_->OnConnectionState(state_, error_); | 257 event_callback_->OnConnectionState(state_, error_); |
258 } | 258 } |
259 } | 259 } |
260 | 260 |
261 } // namespace protocol | 261 } // namespace protocol |
262 } // namespace remoting | 262 } // namespace remoting |
OLD | NEW |