Index: media/base/data_buffer.cc |
=================================================================== |
--- media/base/data_buffer.cc (revision 10301) |
+++ media/base/data_buffer.cc (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -12,34 +12,18 @@ |
const base::TimeDelta& duration) |
: data_(data), |
buffer_size_(buffer_size), |
- data_size_(data_size), |
- timestamp_(timestamp), |
- duration_(duration) { |
+ data_size_(data_size) { |
DCHECK(data); |
DCHECK(buffer_size >= 0); |
DCHECK(data_size <= buffer_size); |
+ SetTimestamp(timestamp); |
+ SetDuration(duration); |
} |
DataBuffer::~DataBuffer() { |
delete [] data_; |
} |
-base::TimeDelta DataBuffer::GetTimestamp() const { |
- return timestamp_; |
-} |
- |
-void DataBuffer::SetTimestamp(const base::TimeDelta& timestamp) { |
- timestamp_ = timestamp; |
-} |
- |
-base::TimeDelta DataBuffer::GetDuration() const { |
- return duration_; |
-} |
- |
-void DataBuffer::SetDuration(const base::TimeDelta& duration) { |
- duration_ = duration; |
-} |
- |
const char* DataBuffer::GetData() const { |
return data_; |
} |