OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 definitions). Filters | 10 // types of filters (see media/base/filters.h for filter definitions). Filters |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 virtual void SetTotalBytes(int64 total_bytes) = 0; | 50 virtual void SetTotalBytes(int64 total_bytes) = 0; |
51 | 51 |
52 // Sets the total number of bytes that are buffered on the client and ready to | 52 // Sets the total number of bytes that are buffered on the client and ready to |
53 // be played. | 53 // be played. |
54 virtual void SetBufferedBytes(int64 buffered_bytes) = 0; | 54 virtual void SetBufferedBytes(int64 buffered_bytes) = 0; |
55 | 55 |
56 // Sets the natural size of the video output in pixel units. | 56 // Sets the natural size of the video output in pixel units. |
57 virtual void SetNaturalVideoSize(const gfx::Size& size) = 0; | 57 virtual void SetNaturalVideoSize(const gfx::Size& size) = 0; |
58 | 58 |
59 // Sets the flag to indicate that we are doing streaming. | 59 // Sets the flag to indicate that we are doing streaming. |
60 virtual void SetStreaming(bool streaming) = 0; | 60 virtual void SetStreaming(bool streaming) = 0; |
acolwell GONE FROM CHROMIUM
2011/11/30 19:26:11
While we are in here, lets get rid of SetStreaming
vrk (LEFT CHROMIUM)
2011/12/01 02:11:35
Done.
| |
61 | 61 |
62 // Notifies that this filter has ended, typically only called by filter graph | 62 // Notifies that this filter has ended, typically only called by filter graph |
63 // endpoints such as renderers. | 63 // endpoints such as renderers. |
64 virtual void NotifyEnded() = 0; | 64 virtual void NotifyEnded() = 0; |
65 | 65 |
66 // Sets the flag to indicate that our media is now loaded. | |
67 virtual void SetLoaded(bool loaded) = 0; | |
68 | |
69 // Sets the flag to indicate current network activity. | 66 // Sets the flag to indicate current network activity. |
70 virtual void SetNetworkActivity(bool is_downloading_data) = 0; | 67 virtual void SetNetworkActivity(bool is_downloading_data) = 0; |
71 | 68 |
72 // Disable audio renderer by calling OnAudioRendererDisabled() on all | 69 // Disable audio renderer by calling OnAudioRendererDisabled() on all |
73 // filters. | 70 // filters. |
74 virtual void DisableAudioRenderer() = 0; | 71 virtual void DisableAudioRenderer() = 0; |
75 | 72 |
76 // Sets the byte offset at which the client is requesting the video. | 73 // Sets the byte offset at which the client is requesting the video. |
77 virtual void SetCurrentReadPosition(int64 offset) = 0; | 74 virtual void SetCurrentReadPosition(int64 offset) = 0; |
78 | 75 |
79 // Gets the byte offset at which the client is requesting the video. | 76 // Gets the byte offset at which the client is requesting the video. |
80 virtual int64 GetCurrentReadPosition() = 0; | 77 virtual int64 GetCurrentReadPosition() = 0; |
81 | 78 |
82 protected: | 79 protected: |
83 virtual ~FilterHost() {} | 80 virtual ~FilterHost() {} |
84 }; | 81 }; |
85 | 82 |
86 } // namespace media | 83 } // namespace media |
87 | 84 |
88 #endif // MEDIA_BASE_FILTER_HOST_H_ | 85 #endif // MEDIA_BASE_FILTER_HOST_H_ |
OLD | NEW |