chrome.bluetoothSocket: clean-up Listen functions
[chromium-blink-merge.git] / content / renderer / media / webinbandtexttrack_impl.cc
blobe83af8f3451fba7af3a0a179476dc880e6d2634b
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/renderer/media/webinbandtexttrack_impl.h"
7 #include "base/logging.h"
9 namespace content {
11 WebInbandTextTrackImpl::WebInbandTextTrackImpl(
12 Kind kind,
13 const blink::WebString& label,
14 const blink::WebString& language,
15 const blink::WebString& id,
16 int index)
17 : client_(NULL),
18 kind_(kind),
19 label_(label),
20 language_(language),
21 id_(id),
22 index_(index) {
25 WebInbandTextTrackImpl::~WebInbandTextTrackImpl() {
26 DCHECK(!client_);
29 void WebInbandTextTrackImpl::setClient(
30 blink::WebInbandTextTrackClient* client) {
31 client_ = client;
34 blink::WebInbandTextTrackClient* WebInbandTextTrackImpl::client() {
35 return client_;
38 WebInbandTextTrackImpl::Kind WebInbandTextTrackImpl::kind() const {
39 return kind_;
42 blink::WebString WebInbandTextTrackImpl::label() const {
43 return label_;
46 blink::WebString WebInbandTextTrackImpl::language() const {
47 return language_;
50 blink::WebString WebInbandTextTrackImpl::id() const {
51 return id_;
54 int WebInbandTextTrackImpl::textTrackIndex() const {
55 return index_;
58 } // namespace content