| 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 // 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 67   // Sets the flag to indicate that our media is now loaded. | 67   // Sets the flag to indicate that our media is now loaded. | 
| 68   virtual void SetLoaded(bool loaded) = 0; | 68   virtual void SetLoaded(bool loaded) = 0; | 
| 69 | 69 | 
| 70   // Sets the flag to indicate current network activity. | 70   // Sets the flag to indicate current network activity. | 
| 71   virtual void SetNetworkActivity(bool network_activity) = 0; | 71   virtual void SetNetworkActivity(bool network_activity) = 0; | 
| 72 | 72 | 
| 73   // Disable audio renderer by calling OnAudioRendererDisabled() on all | 73   // Disable audio renderer by calling OnAudioRendererDisabled() on all | 
| 74   // filters. | 74   // filters. | 
| 75   virtual void DisableAudioRenderer() = 0; | 75   virtual void DisableAudioRenderer() = 0; | 
| 76 | 76 | 
|  | 77   // Sets the byte offset at which the client is requesting the video. | 
|  | 78   virtual void SetCurrentReadPosition(int64 offset) = 0; | 
|  | 79 | 
|  | 80   // Gets the byte offset at which the client is requesting the video. | 
|  | 81   virtual int64 GetCurrentReadPosition() = 0; | 
|  | 82 | 
| 77  protected: | 83  protected: | 
| 78   virtual ~FilterHost() {} | 84   virtual ~FilterHost() {} | 
| 79 }; | 85 }; | 
| 80 | 86 | 
| 81 }  // namespace media | 87 }  // namespace media | 
| 82 | 88 | 
| 83 #endif  // MEDIA_BASE_FILTER_HOST_H_ | 89 #endif  // MEDIA_BASE_FILTER_HOST_H_ | 
| OLD | NEW | 
|---|