summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/media/web_inband_text_track_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/media/web_inband_text_track_impl.cc')
-rw-r--r--chromium/third_party/blink/renderer/platform/media/web_inband_text_track_impl.cc49
1 files changed, 49 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/platform/media/web_inband_text_track_impl.cc b/chromium/third_party/blink/renderer/platform/media/web_inband_text_track_impl.cc
new file mode 100644
index 00000000000..4aa2c06095c
--- /dev/null
+++ b/chromium/third_party/blink/renderer/platform/media/web_inband_text_track_impl.cc
@@ -0,0 +1,49 @@
+// 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 "third_party/blink/renderer/platform/media/web_inband_text_track_impl.h"
+
+#include "base/check.h"
+
+namespace blink {
+
+WebInbandTextTrackImpl::WebInbandTextTrackImpl(Kind kind,
+ const WebString& label,
+ const WebString& language,
+ const WebString& id)
+ : client_(nullptr),
+ kind_(kind),
+ label_(label),
+ language_(language),
+ id_(id) {}
+
+WebInbandTextTrackImpl::~WebInbandTextTrackImpl() {
+ DCHECK(!client_);
+}
+
+void WebInbandTextTrackImpl::SetClient(WebInbandTextTrackClient* client) {
+ client_ = client;
+}
+
+WebInbandTextTrackClient* WebInbandTextTrackImpl::Client() {
+ return client_;
+}
+
+WebInbandTextTrackImpl::Kind WebInbandTextTrackImpl::GetKind() const {
+ return kind_;
+}
+
+WebString WebInbandTextTrackImpl::Label() const {
+ return label_;
+}
+
+WebString WebInbandTextTrackImpl::Language() const {
+ return language_;
+}
+
+WebString WebInbandTextTrackImpl::Id() const {
+ return id_;
+}
+
+} // namespace blink