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

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

Issue 269002: Report stalled event correctly for <video> (Closed)
Patch Set: comments Created 11 years, 2 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') | webkit/glue/media/buffered_data_source.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 60 // Notifies that this filter has ended, typically only called by filter graph
61 // endpoints such as renderers. 61 // endpoints such as renderers.
62 virtual void NotifyEnded() = 0; 62 virtual void NotifyEnded() = 0;
63 63
64 // Sets the flag to indicate that our media is now loaded. 64 // Sets the flag to indicate that our media is now loaded.
65 virtual void SetLoaded(bool loaded) = 0; 65 virtual void SetLoaded(bool loaded) = 0;
66 66
67 // Broadcast a message of type |message| to all other filters from |source|. 67 // Sets the flag to indicate current network activity.
68 virtual void SetNetworkActivity(bool network_activity) = 0;
69
70 // Broadcast a message of type |message| to all filters.
68 virtual void BroadcastMessage(FilterMessage message) = 0; 71 virtual void BroadcastMessage(FilterMessage message) = 0;
69 72
70 protected: 73 protected:
71 virtual ~FilterHost() {} 74 virtual ~FilterHost() {}
72 }; 75 };
73 76
74 } // namespace media 77 } // namespace media
75 78
76 #endif // MEDIA_BASE_FILTER_HOST_H_ 79 #endif // MEDIA_BASE_FILTER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/mock_filter_host.h » ('j') | webkit/glue/media/buffered_data_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698