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

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

Issue 7601002: Revert r95841 due to failing media_unittests on linux_shared bot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « media/base/pts_stream.h ('k') | media/base/state_matrix.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) 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 // SeekableBuffer to support backward and forward seeking in a buffer for 5 // SeekableBuffer to support backward and forward seeking in a buffer for
6 // reading a media data source. 6 // reading a media data source.
7 // 7 //
8 // In order to support backward and forward seeking, this class buffers data in 8 // In order to support backward and forward seeking, this class buffers data in
9 // both backward and forward directions, the current read position can be reset 9 // both backward and forward directions, the current read position can be reset
10 // to anywhere in the buffered data. 10 // to anywhere in the buffered data.
(...skipping 23 matching lines...) Expand all
34 #define MEDIA_BASE_SEEKABLE_BUFFER_H_ 34 #define MEDIA_BASE_SEEKABLE_BUFFER_H_
35 35
36 #include <list> 36 #include <list>
37 37
38 #include "base/basictypes.h" 38 #include "base/basictypes.h"
39 #include "base/memory/ref_counted.h" 39 #include "base/memory/ref_counted.h"
40 #include "media/base/buffers.h" 40 #include "media/base/buffers.h"
41 41
42 namespace media { 42 namespace media {
43 43
44 class MEDIA_EXPORT SeekableBuffer { 44 class SeekableBuffer {
45 public: 45 public:
46 // Constructs an instance with |forward_capacity| and |backward_capacity|. 46 // Constructs an instance with |forward_capacity| and |backward_capacity|.
47 // The values are in bytes. 47 // The values are in bytes.
48 SeekableBuffer(size_t backward_capacity, size_t forward_capacity); 48 SeekableBuffer(size_t backward_capacity, size_t forward_capacity);
49 49
50 ~SeekableBuffer(); 50 ~SeekableBuffer();
51 51
52 // Clears the buffer queue. 52 // Clears the buffer queue.
53 void Clear(); 53 void Clear();
54 54
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Keeps track of the most recent time we've seen in case the |buffers_| is 165 // Keeps track of the most recent time we've seen in case the |buffers_| is
166 // empty when our owner asks what time it is. 166 // empty when our owner asks what time it is.
167 base::TimeDelta current_time_; 167 base::TimeDelta current_time_;
168 168
169 DISALLOW_COPY_AND_ASSIGN(SeekableBuffer); 169 DISALLOW_COPY_AND_ASSIGN(SeekableBuffer);
170 }; 170 };
171 171
172 } // namespace media 172 } // namespace media
173 173
174 #endif // MEDIA_BASE_SEEKABLE_BUFFER_H_ 174 #endif // MEDIA_BASE_SEEKABLE_BUFFER_H_
OLDNEW
« no previous file with comments | « media/base/pts_stream.h ('k') | media/base/state_matrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698