| 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 #ifndef REMOTING_HOST_CONTINUE_WINDOW_H_ | 5 #ifndef REMOTING_HOST_CONTINUE_WINDOW_H_ |
| 6 #define REMOTING_HOST_CONTINUE_WINDOW_H_ | 6 #define REMOTING_HOST_CONTINUE_WINDOW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 // Invoked periodically to ask for the local user whether the session should | 37 // Invoked periodically to ask for the local user whether the session should |
| 38 // be continued. | 38 // be continued. |
| 39 void OnSessionExpired(); | 39 void OnSessionExpired(); |
| 40 | 40 |
| 41 // Used to disconnect the client session. | 41 // Used to disconnect the client session. |
| 42 base::WeakPtr<ClientSessionControl> client_session_control_; | 42 base::WeakPtr<ClientSessionControl> client_session_control_; |
| 43 | 43 |
| 44 // Used to disconnect the client session when timeout expires. | 44 // Used to disconnect the client session when timeout expires. |
| 45 base::OneShotTimer<ContinueWindow> disconnect_timer_; | 45 base::OneShotTimer disconnect_timer_; |
| 46 | 46 |
| 47 // Used to ask the local user whether the session should be continued. | 47 // Used to ask the local user whether the session should be continued. |
| 48 base::OneShotTimer<ContinueWindow> session_expired_timer_; | 48 base::OneShotTimer session_expired_timer_; |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(ContinueWindow); | 50 DISALLOW_COPY_AND_ASSIGN(ContinueWindow); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace remoting | 53 } // namespace remoting |
| 54 | 54 |
| 55 #endif // REMOTING_HOST_CONTINUE_WINDOW_H_ | 55 #endif // REMOTING_HOST_CONTINUE_WINDOW_H_ |
| OLD | NEW |