Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: media/base/filter_host.h

Issue 2085012: Reporting a more accurate buffered time for the video tag (Closed)
Patch Set: Added checks to fix some edgecase bugs. Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/base/mock_filter_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | media/base/mock_filter_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698