| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_TEST_TEST_CHROMOTING_CLIENT_H_ | 5 #ifndef REMOTING_TEST_TEST_CHROMOTING_CLIENT_H_ |
| 6 #define REMOTING_TEST_TEST_CHROMOTING_CLIENT_H_ | 6 #define REMOTING_TEST_TEST_CHROMOTING_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 // Tracks the current connection state. | 93 // Tracks the current connection state. |
| 94 protocol::ConnectionToHost::State connection_to_host_state_; | 94 protocol::ConnectionToHost::State connection_to_host_state_; |
| 95 | 95 |
| 96 // Tracks the most recent connection error code seen. | 96 // Tracks the most recent connection error code seen. |
| 97 protocol::ErrorCode connection_error_code_; | 97 protocol::ErrorCode connection_error_code_; |
| 98 | 98 |
| 99 // List of observers which are notified when remote connection events occur. | 99 // List of observers which are notified when remote connection events occur. |
| 100 // We specify true below for the 'check_empty' flag so the list will check to | 100 // We specify true below for the 'check_empty' flag so the list will check to |
| 101 // see if all observers have been unregistered when it is destroyed. | 101 // see if all observers have been unregistered when it is destroyed. |
| 102 ObserverList<RemoteConnectionObserver, true> connection_observers_; | 102 base::ObserverList<RemoteConnectionObserver, true> connection_observers_; |
| 103 | 103 |
| 104 // ConnectionToHost used by TestChromotingClient tests. | 104 // ConnectionToHost used by TestChromotingClient tests. |
| 105 scoped_ptr<protocol::ConnectionToHost> test_connection_to_host_; | 105 scoped_ptr<protocol::ConnectionToHost> test_connection_to_host_; |
| 106 | 106 |
| 107 // Creates and manages the connection to the remote host. | 107 // Creates and manages the connection to the remote host. |
| 108 scoped_ptr<ChromotingClient> chromoting_client_; | 108 scoped_ptr<ChromotingClient> chromoting_client_; |
| 109 | 109 |
| 110 // Manages the threads and task runners for |chromoting_client_|. | 110 // Manages the threads and task runners for |chromoting_client_|. |
| 111 scoped_ptr<ClientContext> client_context_; | 111 scoped_ptr<ClientContext> client_context_; |
| 112 | 112 |
| 113 // Processes video packets from the host. | 113 // Processes video packets from the host. |
| 114 scoped_ptr<VideoRenderer> video_renderer_; | 114 scoped_ptr<VideoRenderer> video_renderer_; |
| 115 | 115 |
| 116 // Used to establish an XMPP connection with the google talk service. | 116 // Used to establish an XMPP connection with the google talk service. |
| 117 scoped_ptr<XmppSignalStrategy> signal_strategy_; | 117 scoped_ptr<XmppSignalStrategy> signal_strategy_; |
| 118 | 118 |
| 119 DISALLOW_COPY_AND_ASSIGN(TestChromotingClient); | 119 DISALLOW_COPY_AND_ASSIGN(TestChromotingClient); |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace test | 122 } // namespace test |
| 123 } // namespace remoting | 123 } // namespace remoting |
| 124 | 124 |
| 125 #endif // REMOTING_TEST_TEST_CHROMOTING_CLIENT_H_ | 125 #endif // REMOTING_TEST_TEST_CHROMOTING_CLIENT_H_ |
| OLD | NEW |