| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // Sets the total number of bytes that are buffered on the client and ready to | 50 // Sets the total number of bytes that are buffered on the client and ready to |
| 51 // be played. | 51 // be played. |
| 52 virtual void SetBufferedBytes(int64 buffered_bytes) = 0; | 52 virtual void SetBufferedBytes(int64 buffered_bytes) = 0; |
| 53 | 53 |
| 54 // Sets the size of the video output in pixel units. | 54 // Sets the size of the video output in pixel units. |
| 55 virtual void SetVideoSize(size_t width, size_t height) = 0; | 55 virtual void SetVideoSize(size_t width, size_t height) = 0; |
| 56 | 56 |
| 57 // Sets the flag to indicate that we are doing streaming. | 57 // Sets the flag to indicate that we are doing streaming. |
| 58 virtual void SetStreaming(bool streaming) = 0; | 58 virtual void SetStreaming(bool streaming) = 0; |
| 59 | 59 |
| 60 // Notifies that this filter has ended, typically only called by filter graph |
| 61 // endpoints such as renderers. |
| 62 virtual void NotifyEnded() = 0; |
| 63 |
| 60 // Broadcast a message of type |message| to all other filters from |source|. | 64 // Broadcast a message of type |message| to all other filters from |source|. |
| 61 virtual void BroadcastMessage(FilterMessage message) = 0; | 65 virtual void BroadcastMessage(FilterMessage message) = 0; |
| 62 | 66 |
| 63 protected: | 67 protected: |
| 64 virtual ~FilterHost() {} | 68 virtual ~FilterHost() {} |
| 65 }; | 69 }; |
| 66 | 70 |
| 67 } // namespace media | 71 } // namespace media |
| 68 | 72 |
| 69 #endif // MEDIA_BASE_FILTER_HOST_H_ | 73 #endif // MEDIA_BASE_FILTER_HOST_H_ |
| OLD | NEW |