Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: remoting/protocol/host_control_sender.h

Issue 6030007: Chromoting protocol layers to receive and send login messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/client_stub_impl.cc ('k') | remoting/protocol/host_control_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « remoting/protocol/client_stub_impl.cc ('k') | remoting/protocol/host_control_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698