Fix for browser_plugin_host_browsertest when embedder is not yet available.
[chromium-blink-merge.git] / media / base / data_source.cc
blob91f526086091b8d1dcc6c97ced79a8bb7a75ad92
1 // Copyright (c) 2012 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 "media/base/data_source.h"
7 #include "base/logging.h"
9 namespace media {
11 // static
12 const int DataSource::kReadError = -1;
14 DataSourceHost::~DataSourceHost() {}
16 DataSource::DataSource() : host_(NULL) {}
18 DataSource::~DataSource() {}
20 void DataSource::set_host(DataSourceHost* host) {
21 DCHECK(host);
22 DCHECK(!host_);
23 host_ = host;
26 DataSourceHost* DataSource::host() { return host_; }
28 } // namespace media