Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: media/base/data_source.cc

Issue 212803004: Separate DemuxerHost from DataSourceHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/data_source.h ('k') | media/base/demuxer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/base/data_source.h" 5 #include "media/base/data_source.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace media { 9 namespace media {
10 10
11 // static 11 // static
12 const int DataSource::kReadError = -1; 12 const int DataSource::kReadError = -1;
13 13
14 DataSourceHost::~DataSourceHost() {} 14 DataSourceHost::~DataSourceHost() {}
15 15
16 DataSource::DataSource() : host_(NULL) {} 16 DataSource::DataSource() {}
17 17
18 DataSource::~DataSource() {} 18 DataSource::~DataSource() {}
19 19
20 void DataSource::set_host(DataSourceHost* host) {
21 DCHECK(host);
22 DCHECK(!host_);
23 host_ = host;
24 }
25
26 DataSourceHost* DataSource::host() { return host_; }
27
28 } // namespace media 20 } // namespace media
OLDNEW
« no previous file with comments | « media/base/data_source.h ('k') | media/base/demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698