Chromium Code Reviews| 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_HOST_USER_INTERFACE_H_ | 5 #ifndef REMOTING_HOST_HOST_USER_INTERFACE_H_ |
| 6 #define REMOTING_HOST_HOST_USER_INTERFACE_H_ | 6 #define REMOTING_HOST_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 | 14 |
| 15 #include "remoting/base/scoped_thread_proxy.h" | 15 #include "remoting/base/scoped_thread_proxy.h" |
| 16 #include "remoting/host/host_status_observer.h" | 16 #include "remoting/host/host_status_observer.h" |
| 17 | 17 |
| 18 namespace base { | |
| 19 class MessageLoopProxy; | |
| 20 } // namespace | |
| 21 | |
| 18 namespace remoting { | 22 namespace remoting { |
| 19 | 23 |
| 20 class ChromotingHost; | 24 class ChromotingHost; |
| 21 class ChromotingHostContext; | 25 class ChromotingHostContext; |
| 22 class DisconnectWindow; | 26 class DisconnectWindow; |
| 23 class LocalInputMonitor; | 27 class LocalInputMonitor; |
| 24 class SignalStrategy; | 28 class SignalStrategy; |
| 25 | 29 |
| 26 class HostUserInterface : public HostStatusObserver { | 30 class HostUserInterface : public HostStatusObserver { |
| 27 public: | 31 public: |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 39 virtual void OnShutdown() OVERRIDE; | 43 virtual void OnShutdown() OVERRIDE; |
| 40 | 44 |
| 41 protected: | 45 protected: |
| 42 const std::string& get_authenticated_jid() const { | 46 const std::string& get_authenticated_jid() const { |
| 43 return authenticated_jid_; | 47 return authenticated_jid_; |
| 44 } | 48 } |
| 45 ChromotingHost* get_host() const { return host_; } | 49 ChromotingHost* get_host() const { return host_; } |
| 46 | 50 |
| 47 // Message loop accessors. | 51 // Message loop accessors. |
| 48 base::MessageLoopProxy* network_message_loop() const; | 52 base::MessageLoopProxy* network_message_loop() const; |
| 49 base::MessageLoopProxy* ui_message_loop() const; | 53 base::MessageLoopProxy* ui_message_loop() const; |
|
Wez
2012/05/26 00:18:40
Any reason not to convert these as well, and avoid
Sergey Ulanov
2012/05/30 01:07:07
This CL is for remoting/client. /host will be fixe
| |
| 50 | 54 |
| 51 // Invokes the session disconnect callback passed to Start(). | 55 // Invokes the session disconnect callback passed to Start(). |
| 52 void DisconnectSession() const; | 56 void DisconnectSession() const; |
| 53 | 57 |
| 54 virtual void ProcessOnClientAuthenticated(const std::string& username); | 58 virtual void ProcessOnClientAuthenticated(const std::string& username); |
| 55 virtual void ProcessOnClientDisconnected(); | 59 virtual void ProcessOnClientDisconnected(); |
| 56 | 60 |
| 57 // Used by unit-tests as an alternative to Start() so that mock versions of | 61 // Used by unit-tests as an alternative to Start() so that mock versions of |
| 58 // internal objects can be used. | 62 // internal objects can be used. |
| 59 void StartForTest( | 63 void StartForTest( |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 96 bool is_monitoring_local_inputs_; | 100 bool is_monitoring_local_inputs_; |
| 97 | 101 |
| 98 ScopedThreadProxy ui_thread_proxy_; | 102 ScopedThreadProxy ui_thread_proxy_; |
| 99 | 103 |
| 100 DISALLOW_COPY_AND_ASSIGN(HostUserInterface); | 104 DISALLOW_COPY_AND_ASSIGN(HostUserInterface); |
| 101 }; | 105 }; |
| 102 | 106 |
| 103 } // namespace remoting | 107 } // namespace remoting |
| 104 | 108 |
| 105 #endif // REMOTING_HOST_HOST_USER_INTERFACE_H_ | 109 #endif // REMOTING_HOST_HOST_USER_INTERFACE_H_ |
| OLD | NEW |