summaryrefslogtreecommitdiffstats
path: root/media/base/pipeline.h
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-09 15:58:16 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-09 15:58:16 +0000
commitcee323423df2894048258daa02e2b1c3c24e7c46 (patch)
tree88b6b5da7c1b92daae8c1ff206d2f3c7399814f3 /media/base/pipeline.h
parent4b571e6b3efa2f510f64de4718a1f37a9542a251 (diff)
downloadchromium_src-cee323423df2894048258daa02e2b1c3c24e7c46.zip
chromium_src-cee323423df2894048258daa02e2b1c3c24e7c46.tar.gz
chromium_src-cee323423df2894048258daa02e2b1c3c24e7c46.tar.bz2
Remove the silly notion of MIME types from media code.
This was one of the first things I checked into Chromium and I've been wanting to remove it for a long, long time now. BUG=28206 TEST=media_unittests Review URL: http://codereview.chromium.org/6623087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77468 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/pipeline.h')
-rw-r--r--media/base/pipeline.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/media/base/pipeline.h b/media/base/pipeline.h
index 0b87d29..8e7a8db 100644
--- a/media/base/pipeline.h
+++ b/media/base/pipeline.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -121,11 +121,11 @@ class Pipeline : public base::RefCountedThreadSafe<Pipeline> {
// Returns true if there has been network activity.
virtual bool IsNetworkActive() const = 0;
- // If the |major_mime_type| exists in the pipeline and is being rendered, this
- // method will return true. Types are defined in media/base/media_foramt.h.
- // For example, to determine if a pipeline contains video:
- // bool has_video = pipeline->IsRendered(mime_type::kMajorTypeVideo);
- virtual bool IsRendered(const std::string& major_mime_type) const = 0;
+ // Returns true if the media has audio.
+ virtual bool HasAudio() const = 0;
+
+ // Returns true if the media has video.
+ virtual bool HasVideo() const = 0;
// Gets the current playback rate of the pipeline. When the pipeline is
// started, the playback rate will be 0.0f. A rate of 1.0f indicates