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

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

Issue 6969026: Convert Filter::Seek() to use new callback system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for CR comments Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
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 // Implementation of Pipeline & PipelineStatusNotification (an async-to-sync 5 // Implementation of Pipeline & PipelineStatusNotification (an async-to-sync
6 // callback adapter). 6 // callback adapter).
7 7
8 #ifndef MEDIA_BASE_PIPELINE_IMPL_H_ 8 #ifndef MEDIA_BASE_PIPELINE_IMPL_H_
9 #define MEDIA_BASE_PIPELINE_IMPL_H_ 9 #define MEDIA_BASE_PIPELINE_IMPL_H_
10 10
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 virtual void SetLoaded(bool loaded); 198 virtual void SetLoaded(bool loaded);
199 virtual void SetNetworkActivity(bool network_activity); 199 virtual void SetNetworkActivity(bool network_activity);
200 virtual void NotifyEnded(); 200 virtual void NotifyEnded();
201 virtual void DisableAudioRenderer(); 201 virtual void DisableAudioRenderer();
202 virtual void SetCurrentReadPosition(int64 offset); 202 virtual void SetCurrentReadPosition(int64 offset);
203 virtual int64 GetCurrentReadPosition(); 203 virtual int64 GetCurrentReadPosition();
204 204
205 // Callback executed by filters upon completing initialization. 205 // Callback executed by filters upon completing initialization.
206 void OnFilterInitialize(); 206 void OnFilterInitialize();
207 207
208 // Callback executed by filters upon completing Play(), Pause(), Seek(), 208 // Callback executed by filters upon completing Play(), Pause(), or Stop().
209 // or Stop().
210 void OnFilterStateTransition(); 209 void OnFilterStateTransition();
211 210
211 // Callback executed by filters upon completing Seek().
212 void OnFilterStateTransitionWithStatus(PipelineStatus status);
213
212 // Callback executed by filters when completing teardown operations. 214 // Callback executed by filters when completing teardown operations.
213 void OnTeardownStateTransition(); 215 void OnTeardownStateTransition();
214 216
215 // Callback executed by filters to update statistics. 217 // Callback executed by filters to update statistics.
216 void OnUpdateStatistics(const PipelineStatistics& stats); 218 void OnUpdateStatistics(const PipelineStatistics& stats);
217 219
218 // The following "task" methods correspond to the public methods, but these 220 // The following "task" methods correspond to the public methods, but these
219 // methods are run as the result of posting a task to the PipelineInternal's 221 // methods are run as the result of posting a task to the PipelineInternal's
220 // message loop. 222 // message loop.
221 void StartTask(FilterCollection* filter_collection, 223 void StartTask(FilterCollection* filter_collection,
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 PipelineStatistics statistics_; 455 PipelineStatistics statistics_;
454 456
455 FRIEND_TEST_ALL_PREFIXES(PipelineImplTest, GetBufferedTime); 457 FRIEND_TEST_ALL_PREFIXES(PipelineImplTest, GetBufferedTime);
456 458
457 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); 459 DISALLOW_COPY_AND_ASSIGN(PipelineImpl);
458 }; 460 };
459 461
460 } // namespace media 462 } // namespace media
461 463
462 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ 464 #endif // MEDIA_BASE_PIPELINE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698