blob: 75a945ce765c4cdc9e6c687614c403a6a318b91d [file] [log] [blame]
// Copyright 2013 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.
#include <string>
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "base/time.h"
#include "cobalt/media/base/media_export.h"
namespace cobalt {
namespace media {
// A text buffer to carry the components of a text track cue.
class MEDIA_EXPORT TextCue : public base::RefCountedThreadSafe<TextCue> {
TextCue(const base::TimeDelta& timestamp, const base::TimeDelta& duration,
const std::string& id, const std::string& settings,
const std::string& text);
// Access to constructor parameters.
base::TimeDelta timestamp() const { return timestamp_; }
base::TimeDelta duration() const { return duration_; }
const std::string& id() const { return id_; }
const std::string& settings() const { return settings_; }
const std::string& text() const { return text_; }
friend class base::RefCountedThreadSafe<TextCue>;
base::TimeDelta timestamp_;
base::TimeDelta duration_;
std::string id_;
std::string settings_;
std::string text_;
} // namespace media
} // namespace cobalt