summaryrefslogtreecommitdiff
path: root/media/base/data_source.cc
blob: 91f526086091b8d1dcc6c97ced79a8bb7a75ad92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2012 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 "media/base/data_source.h"

#include "base/logging.h"

namespace media {

// static
const int DataSource::kReadError = -1;

DataSourceHost::~DataSourceHost() {}

DataSource::DataSource() : host_(NULL) {}

DataSource::~DataSource() {}

void DataSource::set_host(DataSourceHost* host) {
  DCHECK(host);
  DCHECK(!host_);
  host_ = host;
}

DataSourceHost* DataSource::host() { return host_; }

}  // namespace media