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

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

Issue 10800041: Update media duration if data is appended after the previous duration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef MEDIA_BASE_PIPELINE_H_ 5 #ifndef MEDIA_BASE_PIPELINE_H_
6 #define MEDIA_BASE_PIPELINE_H_ 6 #define MEDIA_BASE_PIPELINE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // Returns true if the given state is one that transitions to a new state 282 // Returns true if the given state is one that transitions to a new state
283 // after iterating through each filter. 283 // after iterating through each filter.
284 static bool TransientState(State state); 284 static bool TransientState(State state);
285 285
286 // Given the current state, returns the next state. 286 // Given the current state, returns the next state.
287 State FindNextState(State current); 287 State FindNextState(State current);
288 288
289 // DataSourceHost (by way of DemuxerHost) implementation. 289 // DataSourceHost (by way of DemuxerHost) implementation.
290 virtual void SetTotalBytes(int64 total_bytes) OVERRIDE; 290 virtual void SetTotalBytes(int64 total_bytes) OVERRIDE;
291 virtual void AddBufferedByteRange(int64 start, int64 end) OVERRIDE; 291 virtual void AddBufferedByteRange(int64 start, int64 end) OVERRIDE;
292 virtual void AddBufferedTimeRange(base::TimeDelta start,
293 base::TimeDelta end) OVERRIDE;
294 292
295 // DemuxerHost implementaion. 293 // DemuxerHost implementaion.
296 virtual void SetDuration(base::TimeDelta duration) OVERRIDE; 294 virtual void SetDuration(base::TimeDelta duration) OVERRIDE;
297 virtual void OnDemuxerError(PipelineStatus error) OVERRIDE; 295 virtual void OnDemuxerError(PipelineStatus error) OVERRIDE;
296 virtual void AddBufferedTimeRange(base::TimeDelta start,
acolwell GONE FROM CHROMIUM 2012/07/30 21:37:45 nit: Revert this too?
vrk (LEFT CHROMIUM) 2012/07/31 22:39:01 Done.
297 base::TimeDelta end) OVERRIDE;
298 298
299 // Initiates teardown sequence in response to a runtime error. 299 // Initiates teardown sequence in response to a runtime error.
300 // 300 //
301 // Safe to call from any thread. 301 // Safe to call from any thread.
302 void SetError(PipelineStatus error); 302 void SetError(PipelineStatus error);
303 303
304 // Callback executed when the natural size of the video has changed. 304 // Callback executed when the natural size of the video has changed.
305 void OnNaturalVideoSizeChanged(const gfx::Size& size); 305 void OnNaturalVideoSizeChanged(const gfx::Size& size);
306 306
307 // Callback executed when either of the renderers have ended. 307 // Callback executed when either of the renderers have ended.
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 // Time of pipeline creation; is non-zero only until the pipeline first 562 // Time of pipeline creation; is non-zero only until the pipeline first
563 // reaches "kStarted", at which point it is used & zeroed out. 563 // reaches "kStarted", at which point it is used & zeroed out.
564 base::Time creation_time_; 564 base::Time creation_time_;
565 565
566 DISALLOW_COPY_AND_ASSIGN(Pipeline); 566 DISALLOW_COPY_AND_ASSIGN(Pipeline);
567 }; 567 };
568 568
569 } // namespace media 569 } // namespace media
570 570
571 #endif // MEDIA_BASE_PIPELINE_H_ 571 #endif // MEDIA_BASE_PIPELINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698