| OLD | NEW |
| 1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008-2009 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 // FilterHost describes an interface for individual filters to access and | 5 // FilterHost describes an interface for individual filters to access and |
| 6 // modify global playback information. Every filter is given a filter host | 6 // modify global playback information. Every filter is given a filter host |
| 7 // reference as part of initialization. | 7 // reference as part of initialization. |
| 8 // | 8 // |
| 9 // This interface is intentionally verbose to cover the needs for the different | 9 // This interface is intentionally verbose to cover the needs for the different |
| 10 // types of filters (see media/base/filters.h for filter definitionss). Filters | 10 // types of filters (see media/base/filters.h for filter definitionss). Filters |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // Set the total size of the media file. | 46 // Set the total size of the media file. |
| 47 virtual void SetTotalBytes(int64 total_bytes) = 0; | 47 virtual void SetTotalBytes(int64 total_bytes) = 0; |
| 48 | 48 |
| 49 // Sets the total number of bytes that are buffered on the client and ready to | 49 // Sets the total number of bytes that are buffered on the client and ready to |
| 50 // be played. | 50 // be played. |
| 51 virtual void SetBufferedBytes(int64 buffered_bytes) = 0; | 51 virtual void SetBufferedBytes(int64 buffered_bytes) = 0; |
| 52 | 52 |
| 53 // Sets the size of the video output in pixel units. | 53 // Sets the size of the video output in pixel units. |
| 54 virtual void SetVideoSize(size_t width, size_t height) = 0; | 54 virtual void SetVideoSize(size_t width, size_t height) = 0; |
| 55 | 55 |
| 56 // Sets the flag to indicate that we are doing streaming. |
| 57 virtual void SetStreaming(bool streaming) = 0; |
| 58 |
| 56 protected: | 59 protected: |
| 57 virtual ~FilterHost() {} | 60 virtual ~FilterHost() {} |
| 58 }; | 61 }; |
| 59 | 62 |
| 60 } // namespace media | 63 } // namespace media |
| 61 | 64 |
| 62 #endif // MEDIA_BASE_FILTER_HOST_H_ | 65 #endif // MEDIA_BASE_FILTER_HOST_H_ |
| OLD | NEW |