| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 // Send information to the client for initialization. | 72 // Send information to the client for initialization. |
| 73 virtual void SendInitClientMessage(int width, int height); | 73 virtual void SendInitClientMessage(int width, int height); |
| 74 | 74 |
| 75 // Notifies the viewer the start of an update stream. | 75 // Notifies the viewer the start of an update stream. |
| 76 virtual void SendBeginUpdateStreamMessage(); | 76 virtual void SendBeginUpdateStreamMessage(); |
| 77 | 77 |
| 78 // Send encoded update stream data to the viewer. The viewer | 78 // Send encoded update stream data to the viewer. The viewer |
| 79 // should not take ownership of the data. | 79 // should not take ownership of the data. |
| 80 virtual void SendUpdateStreamPacketMessage( | 80 virtual void SendUpdateStreamPacketMessage( |
| 81 chromotocol_pb::UpdateStreamPacketHeader* header, | 81 UpdateStreamPacketHeader* header, |
| 82 scoped_refptr<media::DataBuffer> data); | 82 scoped_refptr<media::DataBuffer> data); |
| 83 | 83 |
| 84 // Notifies the viewer the update stream has ended. | 84 // Notifies the viewer the update stream has ended. |
| 85 virtual void SendEndUpdateStreamMessage(); | 85 virtual void SendEndUpdateStreamMessage(); |
| 86 | 86 |
| 87 // Gets the number of update stream messages not yet transmitted. | 87 // Gets the number of update stream messages not yet transmitted. |
| 88 // Note that the value returned is an estimate using average size of the | 88 // Note that the value returned is an estimate using average size of the |
| 89 // most recent update streams. | 89 // most recent update streams. |
| 90 // TODO(hclam): Report this number accurately. | 90 // TODO(hclam): Report this number accurately. |
| 91 virtual int GetPendingUpdateStreamMessages(); | 91 virtual int GetPendingUpdateStreamMessages(); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 // Event handler for handling events sent from this object. | 133 // Event handler for handling events sent from this object. |
| 134 EventHandler* handler_; | 134 EventHandler* handler_; |
| 135 | 135 |
| 136 DISALLOW_COPY_AND_ASSIGN(ClientConnection); | 136 DISALLOW_COPY_AND_ASSIGN(ClientConnection); |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 } // namespace remoting | 139 } // namespace remoting |
| 140 | 140 |
| 141 #endif // REMOTING_HOST_CLIENT_CONNECTION_H_ | 141 #endif // REMOTING_HOST_CLIENT_CONNECTION_H_ |
| OLD | NEW |