| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Interface of a client that receives commands from a Chromoting host. | 5 // Interface of a client that receives commands from a Chromoting host. |
| 6 // | 6 // |
| 7 // This interface is responsible for a subset of control messages sent to | 7 // This interface is responsible for a subset of control messages sent to |
| 8 // the Chromoting client. | 8 // the Chromoting client. |
| 9 | 9 |
| 10 #ifndef REMOTING_PROTOCOL_CLIENT_STUB_H_ | 10 #ifndef REMOTING_PROTOCOL_CLIENT_STUB_H_ |
| 11 #define REMOTING_PROTOCOL_CLIENT_STUB_H_ | 11 #define REMOTING_PROTOCOL_CLIENT_STUB_H_ |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 | 14 #include "base/callback.h" |
| 15 class Task; | |
| 16 | 15 |
| 17 namespace remoting { | 16 namespace remoting { |
| 18 namespace protocol { | 17 namespace protocol { |
| 19 | 18 |
| 20 class LocalLoginStatus; | 19 class LocalLoginStatus; |
| 21 class NotifyResolutionRequest; | 20 class NotifyResolutionRequest; |
| 22 | 21 |
| 23 class ClientStub { | 22 class ClientStub { |
| 24 public: | 23 public: |
| 25 ClientStub() {} | 24 ClientStub() {} |
| 26 virtual ~ClientStub() {} | 25 virtual ~ClientStub() {} |
| 27 | 26 |
| 28 virtual void BeginSessionResponse(const LocalLoginStatus* msg, | 27 virtual void BeginSessionResponse(const LocalLoginStatus* msg, |
| 29 Task* done) = 0; | 28 const base::Closure& done) = 0; |
| 30 | 29 |
| 31 private: | 30 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(ClientStub); | 31 DISALLOW_COPY_AND_ASSIGN(ClientStub); |
| 33 }; | 32 }; |
| 34 | 33 |
| 35 } // namespace protocol | 34 } // namespace protocol |
| 36 } // namespace remoting | 35 } // namespace remoting |
| 37 | 36 |
| 38 #endif // REMOTING_PROTOCOL_CLIENT_STUB_H_ | 37 #endif // REMOTING_PROTOCOL_CLIENT_STUB_H_ |
| OLD | NEW |