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 // ChromotingClient is the controller for the Client implementation. | 5 // ChromotingClient is the controller for the Client implementation. |
6 | 6 |
7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 FrameProducer* GetFrameProducer(); | 60 FrameProducer* GetFrameProducer(); |
61 | 61 |
62 // Return the stats recorded by this client. | 62 // Return the stats recorded by this client. |
63 ChromotingStats* GetStats(); | 63 ChromotingStats* GetStats(); |
64 | 64 |
65 // ClientStub implementation. | 65 // ClientStub implementation. |
66 virtual void SetCapabilities( | 66 virtual void SetCapabilities( |
67 const protocol::Capabilities& capabilities) OVERRIDE; | 67 const protocol::Capabilities& capabilities) OVERRIDE; |
68 virtual void SetPairingResponse( | 68 virtual void SetPairingResponse( |
69 const protocol::PairingResponse& pairing_response) OVERRIDE; | 69 const protocol::PairingResponse& pairing_response) OVERRIDE; |
70 virtual void DeliverHostMessage( | |
Wez
2013/08/12 20:48:01
nit: After we talked I thought PostHostMessage mig
Jamie
2013/08/12 20:58:49
I think I prefer Deliver. It seems clearer to me t
| |
71 const protocol::ExtensionMessage& message) OVERRIDE; | |
70 | 72 |
71 // ClipboardStub implementation for receiving clipboard data from host. | 73 // ClipboardStub implementation for receiving clipboard data from host. |
72 virtual void InjectClipboardEvent( | 74 virtual void InjectClipboardEvent( |
73 const protocol::ClipboardEvent& event) OVERRIDE; | 75 const protocol::ClipboardEvent& event) OVERRIDE; |
74 | 76 |
75 // CursorShapeStub implementation for receiving cursor shape updates. | 77 // CursorShapeStub implementation for receiving cursor shape updates. |
76 virtual void SetCursorShape( | 78 virtual void SetCursorShape( |
77 const protocol::CursorShapeInfo& cursor_shape) OVERRIDE; | 79 const protocol::CursorShapeInfo& cursor_shape) OVERRIDE; |
78 | 80 |
79 // ConnectionToHost::HostEventCallback implementation. | 81 // ConnectionToHost::HostEventCallback implementation. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 // WeakPtr used to avoid tasks accessing the client after it is deleted. | 115 // WeakPtr used to avoid tasks accessing the client after it is deleted. |
114 base::WeakPtrFactory<ChromotingClient> weak_factory_; | 116 base::WeakPtrFactory<ChromotingClient> weak_factory_; |
115 base::WeakPtr<ChromotingClient> weak_ptr_; | 117 base::WeakPtr<ChromotingClient> weak_ptr_; |
116 | 118 |
117 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); | 119 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); |
118 }; | 120 }; |
119 | 121 |
120 } // namespace remoting | 122 } // namespace remoting |
121 | 123 |
122 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 124 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
OLD | NEW |