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_IT2ME_HOST_USER_INTERFACE_H_ | 5 #ifndef REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ |
6 #define REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ | 6 #define REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 | 15 |
16 #include "remoting/host/host_user_interface.h" | 16 #include "remoting/host/host_user_interface.h" |
17 | 17 |
18 namespace remoting { | 18 namespace remoting { |
19 | 19 |
20 class ContinueWindow; | 20 class ContinueWindow; |
21 | 21 |
22 // This class implements the IT2Me-specific parts of the ChromotingHost: | 22 // This class implements the IT2Me-specific parts of the ChromotingHost: |
23 // Disconnect and Continue window popups. | 23 // Disconnect and Continue window popups. |
24 // IT2Me-specific handling of multiple connection attempts. | 24 // IT2Me-specific handling of multiple connection attempts. |
25 class It2MeHostUserInterface : public HostUserInterface { | 25 class It2MeHostUserInterface : public HostUserInterface { |
26 public: | 26 public: |
27 It2MeHostUserInterface( | 27 It2MeHostUserInterface( |
28 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, | 28 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, |
29 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); | 29 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
| 30 const UiStrings& ui_strings); |
30 virtual ~It2MeHostUserInterface(); | 31 virtual ~It2MeHostUserInterface(); |
31 | 32 |
32 // HostUserInterface overrides. | 33 // HostUserInterface overrides. |
33 virtual void Init() OVERRIDE; | 34 virtual void Init() OVERRIDE; |
34 | 35 |
35 protected: | 36 protected: |
36 virtual void ProcessOnClientAuthenticated( | 37 virtual void ProcessOnClientAuthenticated( |
37 const std::string& username) OVERRIDE; | 38 const std::string& username) OVERRIDE; |
38 virtual void ProcessOnClientDisconnected() OVERRIDE; | 39 virtual void ProcessOnClientDisconnected() OVERRIDE; |
39 | 40 |
(...skipping 17 matching lines...) Expand all Loading... |
57 // Weak pointer factory used to abandon the "continue session" timer when | 58 // Weak pointer factory used to abandon the "continue session" timer when |
58 // hiding the "continue session" dialog, or tearing down the IT2Me UI. | 59 // hiding the "continue session" dialog, or tearing down the IT2Me UI. |
59 base::WeakPtrFactory<It2MeHostUserInterface> timer_weak_factory_; | 60 base::WeakPtrFactory<It2MeHostUserInterface> timer_weak_factory_; |
60 | 61 |
61 DISALLOW_COPY_AND_ASSIGN(It2MeHostUserInterface); | 62 DISALLOW_COPY_AND_ASSIGN(It2MeHostUserInterface); |
62 }; | 63 }; |
63 | 64 |
64 } // namespace remoting | 65 } // namespace remoting |
65 | 66 |
66 #endif // REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ | 67 #endif // REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ |
OLD | NEW |