OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef REMOTING_HOST_CLIENT_CONNECTION_H_ | 5 #ifndef REMOTING_HOST_CLIENT_CONNECTION_H_ |
6 #define REMOTING_HOST_CLIENT_CONNECTION_H_ | 6 #define REMOTING_HOST_CLIENT_CONNECTION_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // for UpdateStreamPacket to reduce the amount of memory copies. | 88 // for UpdateStreamPacket to reduce the amount of memory copies. |
89 // | 89 // |
90 // |data| should be created by calling to | 90 // |data| should be created by calling to |
91 // CreateWireFormatDataBuffer(ChromotingHostMessage). | 91 // CreateWireFormatDataBuffer(ChromotingHostMessage). |
92 virtual void SendUpdateStreamPacketMessage( | 92 virtual void SendUpdateStreamPacketMessage( |
93 scoped_refptr<media::DataBuffer> data); | 93 scoped_refptr<media::DataBuffer> data); |
94 | 94 |
95 // Notifies the viewer the update stream has ended. | 95 // Notifies the viewer the update stream has ended. |
96 virtual void SendEndUpdateStreamMessage(); | 96 virtual void SendEndUpdateStreamMessage(); |
97 | 97 |
| 98 virtual void MarkEndOfUpdate(); |
| 99 |
98 // Gets the number of update stream messages not yet transmitted. | 100 // Gets the number of update stream messages not yet transmitted. |
99 // Note that the value returned is an estimate using average size of the | 101 // Note that the value returned is an estimate using average size of the |
100 // most recent update streams. | 102 // most recent update streams. |
101 // TODO(hclam): Report this number accurately. | 103 // TODO(hclam): Report this number accurately. |
102 virtual int GetPendingUpdateStreamMessages(); | 104 virtual int GetPendingUpdateStreamMessages(); |
103 | 105 |
104 // Disconnect the client connection. This method is allowed to be called | 106 // Disconnect the client connection. This method is allowed to be called |
105 // more than once and calls after the first one will be ignored. | 107 // more than once and calls after the first one will be ignored. |
106 // | 108 // |
107 // After this method is called all the send method calls will be ignored. | 109 // After this method is called all the send method calls will be ignored. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 148 |
147 // Event handler for handling events sent from this object. | 149 // Event handler for handling events sent from this object. |
148 EventHandler* handler_; | 150 EventHandler* handler_; |
149 | 151 |
150 DISALLOW_COPY_AND_ASSIGN(ClientConnection); | 152 DISALLOW_COPY_AND_ASSIGN(ClientConnection); |
151 }; | 153 }; |
152 | 154 |
153 } // namespace remoting | 155 } // namespace remoting |
154 | 156 |
155 #endif // REMOTING_HOST_CLIENT_CONNECTION_H_ | 157 #endif // REMOTING_HOST_CLIENT_CONNECTION_H_ |
OLD | NEW |