| Index: remoting/protocol/host_control_sender.h
|
| diff --git a/remoting/protocol/client_stub_impl.h b/remoting/protocol/host_control_sender.h
|
| similarity index 52%
|
| rename from remoting/protocol/client_stub_impl.h
|
| rename to remoting/protocol/host_control_sender.h
|
| index d953be7309d96085fdc64be5b2c665a354ed3328..148b519497a15642867c3f0e971c737ea5cfee0b 100644
|
| --- a/remoting/protocol/client_stub_impl.h
|
| +++ b/remoting/protocol/host_control_sender.h
|
| @@ -2,19 +2,19 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// Implementation of ClientStub using sockets created from jingle connection.
|
| +// Implementation of HostStub using sockets created from jingle connection.
|
| // It sends messages through the socket after serializing it.
|
| //
|
| -// Object of this class can only be created by ConnectionToClient.
|
| +// Object of this class can only be created by ConnectionToHost.
|
| //
|
| // This class can be used on any thread.
|
|
|
| -#ifndef REMOTING_PROTOCOL_CLIENT_STUB_IMPL_H_
|
| -#define REMOTING_PROTOCOL_CLIENT_STUB_IMPL_H_
|
| +#ifndef REMOTING_PROTOCOL_HOST_STUB_IMPL_H_
|
| +#define REMOTING_PROTOCOL_HOST_STUB_IMPL_H_
|
|
|
| #include "base/basictypes.h"
|
| #include "base/ref_counted.h"
|
| -#include "remoting/protocol/client_stub.h"
|
| +#include "remoting/protocol/host_stub.h"
|
|
|
| class Task;
|
|
|
| @@ -27,23 +27,26 @@ namespace protocol {
|
|
|
| class BufferedSocketWriter;
|
|
|
| -class ClientStubImpl : public ClientStub {
|
| +class HostControlSender : public HostStub {
|
| public:
|
| // Create a stub using a socket.
|
| - explicit ClientStubImpl(net::Socket* socket);
|
| - virtual ~ClientStubImpl();
|
| + explicit HostControlSender(net::Socket* socket);
|
| + virtual ~HostControlSender();
|
| +
|
| + virtual void SuggestResolution(
|
| + const SuggestResolutionRequest* msg, Task* done);
|
| + virtual void BeginSessionRequest(
|
| + const LocalLoginCredentials* credentials, Task* done);
|
|
|
| - virtual void NotifyResolution(const NotifyResolutionRequest& msg,
|
| - Task* done) = 0;
|
| private:
|
| // Buffered socket writer holds the serialized message and send it on the
|
| // right thread.
|
| scoped_refptr<BufferedSocketWriter> buffered_writer_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(ClientStubImpl);
|
| + DISALLOW_COPY_AND_ASSIGN(HostControlSender);
|
| };
|
|
|
| } // namespace protocol
|
| } // namespace remoting
|
|
|
| -#endif // REMOTING_PROTOCOL_CLIENT_STUB_IMPL_H_
|
| +#endif // REMOTING_PROTOCOL_HOST_STUB_IMPL_H_
|
|
|