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 #ifndef REMOTING_CHROMOTING_HOST_H_ | 5 #ifndef REMOTING_CHROMOTING_HOST_H_ |
6 #define REMOTING_CHROMOTING_HOST_H_ | 6 #define REMOTING_CHROMOTING_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 int64 sequence_number); | 107 int64 sequence_number); |
108 | 108 |
109 //////////////////////////////////////////////////////////////////////////// | 109 //////////////////////////////////////////////////////////////////////////// |
110 // SignalStrategy::StatusObserver implementation. | 110 // SignalStrategy::StatusObserver implementation. |
111 virtual void OnStateChange( | 111 virtual void OnStateChange( |
112 SignalStrategy::StatusObserver::State state) OVERRIDE; | 112 SignalStrategy::StatusObserver::State state) OVERRIDE; |
113 virtual void OnJidChange(const std::string& full_jid) OVERRIDE; | 113 virtual void OnJidChange(const std::string& full_jid) OVERRIDE; |
114 | 114 |
115 //////////////////////////////////////////////////////////////////////////// | 115 //////////////////////////////////////////////////////////////////////////// |
116 // ClientSession::EventHandler implementation. | 116 // ClientSession::EventHandler implementation. |
117 virtual void LocalLoginSucceeded( | 117 virtual void OnAuthorizationComplete( |
118 scoped_refptr<protocol::ConnectionToClient> client); | |
119 virtual void LocalLoginFailed( | |
120 scoped_refptr<protocol::ConnectionToClient> client); | 118 scoped_refptr<protocol::ConnectionToClient> client); |
121 | 119 |
122 // SessionManager::Listener implementation. | 120 // SessionManager::Listener implementation. |
123 virtual void OnSessionManagerInitialized() OVERRIDE; | 121 virtual void OnSessionManagerInitialized() OVERRIDE; |
124 virtual void OnIncomingSession( | 122 virtual void OnIncomingSession( |
125 protocol::Session* session, | 123 protocol::Session* session, |
126 protocol::SessionManager::IncomingSessionResponse* response) OVERRIDE; | 124 protocol::SessionManager::IncomingSessionResponse* response) OVERRIDE; |
127 | 125 |
128 void AddAuthenticatedClient( | 126 void AddAuthenticatedClient( |
129 scoped_refptr<protocol::ConnectionToClient> connection, | 127 scoped_refptr<protocol::ConnectionToClient> connection, |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 std::vector<Task*> shutdown_tasks_; | 249 std::vector<Task*> shutdown_tasks_; |
252 | 250 |
253 UiStrings ui_strings_; | 251 UiStrings ui_strings_; |
254 | 252 |
255 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 253 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
256 }; | 254 }; |
257 | 255 |
258 } // namespace remoting | 256 } // namespace remoting |
259 | 257 |
260 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 258 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
OLD | NEW |