| 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" |
| 11 #include "remoting/host/host_window.h" | 11 #include "remoting/host/host_window.h" |
| 12 | 12 |
| 13 namespace remoting { | 13 namespace remoting { |
| 14 | 14 |
| 15 class ContinueWindow : public HostWindow { | 15 class ContinueWindow : public HostWindow { |
| 16 public: | 16 public: |
| 17 virtual ~ContinueWindow(); | 17 virtual ~ContinueWindow(); |
| 18 | 18 |
| 19 // HostWindow override. | 19 // HostWindow override. |
| 20 virtual void Start( | 20 virtual void Start( |
| 21 const base::WeakPtr<ClientSessionControl>& client_session_control) | 21 const base::WeakPtr<ClientSessionControl>& client_session_control) |
| 22 OVERRIDE; | 22 override; |
| 23 | 23 |
| 24 // Resumes paused client session. | 24 // Resumes paused client session. |
| 25 void ContinueSession(); | 25 void ContinueSession(); |
| 26 | 26 |
| 27 // Disconnects the client session. | 27 // Disconnects the client session. |
| 28 void DisconnectSession(); | 28 void DisconnectSession(); |
| 29 | 29 |
| 30 protected: | 30 protected: |
| 31 ContinueWindow(); | 31 ContinueWindow(); |
| 32 | 32 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 47 | 47 |
| 48 // Used to ask the local user whether the session should be continued. | 48 // Used to ask the local user whether the session should be continued. |
| 49 base::OneShotTimer<ContinueWindow> session_expired_timer_; | 49 base::OneShotTimer<ContinueWindow> session_expired_timer_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(ContinueWindow); | 51 DISALLOW_COPY_AND_ASSIGN(ContinueWindow); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace remoting | 54 } // namespace remoting |
| 55 | 55 |
| 56 #endif // REMOTING_HOST_CONTINUE_WINDOW_H_ | 56 #endif // REMOTING_HOST_CONTINUE_WINDOW_H_ |
| OLD | NEW |