| Index: remoting/host/chromoting_host.h
|
| diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h
|
| index 6f969d4e73469cd296a87e491086cb34ad7bffe2..b63b132ddff78469ffa7467c276e9cef83996d43 100644
|
| --- a/remoting/host/chromoting_host.h
|
| +++ b/remoting/host/chromoting_host.h
|
| @@ -37,6 +37,7 @@ class Capturer;
|
| class ChromotingHostContext;
|
| class DesktopEnvironment;
|
| class Encoder;
|
| +class Logger;
|
| class MutableHostConfig;
|
| class ScreenRecorder;
|
|
|
| @@ -74,11 +75,13 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
|
| // and adds a reference to |config|. It does NOT take ownership of |context|.
|
| static ChromotingHost* Create(ChromotingHostContext* context,
|
| MutableHostConfig* config,
|
| - AccessVerifier* access_verifier);
|
| + AccessVerifier* access_verifier,
|
| + Logger* logger);
|
| static ChromotingHost* Create(ChromotingHostContext* context,
|
| MutableHostConfig* config,
|
| DesktopEnvironment* environment,
|
| - AccessVerifier* access_verifier);
|
| + AccessVerifier* access_verifier,
|
| + Logger* logger);
|
|
|
| // Asynchronously start the host process.
|
| //
|
| @@ -117,6 +120,8 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
|
| virtual void LocalLoginFailed(
|
| scoped_refptr<protocol::ConnectionToClient> client);
|
|
|
| + Logger* logger() { return logger_; }
|
| +
|
| // Callback for ChromotingServer.
|
| void OnNewClientSession(
|
| protocol::Session* session,
|
| @@ -151,7 +156,8 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
|
| ChromotingHost(ChromotingHostContext* context,
|
| MutableHostConfig* config,
|
| DesktopEnvironment* environment,
|
| - AccessVerifier* access_verifier);
|
| + AccessVerifier* access_verifier,
|
| + Logger* logger);
|
| virtual ~ChromotingHost();
|
|
|
| enum State {
|
| @@ -214,6 +220,9 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
|
|
|
| scoped_ptr<AccessVerifier> access_verifier_;
|
|
|
| + // Logger (owned by the HostNPScriptObject).
|
| + Logger* logger_;
|
| +
|
| // The connections to remote clients.
|
| ClientList clients_;
|
|
|
|
|