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

Side by Side Diff: media/base/filter_factories.h

Issue 7601002: Revert r95841 due to failing media_unittests on linux_shared bot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « media/base/filter_collection.h ('k') | media/base/filter_host.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef MEDIA_BASE_FILTER_FACTORIES_H_ 5 #ifndef MEDIA_BASE_FILTER_FACTORIES_H_
6 #define MEDIA_BASE_FILTER_FACTORIES_H_ 6 #define MEDIA_BASE_FILTER_FACTORIES_H_
7 7
8 #include<string> 8 #include<string>
9 9
10 #include "base/callback_old.h" 10 #include "base/callback_old.h"
11 #include "media/base/media_export.h"
12 #include "media/base/pipeline_status.h" 11 #include "media/base/pipeline_status.h"
13 12
14 namespace media { 13 namespace media {
15 14
16 class DataSource; 15 class DataSource;
17 16
18 // Asynchronous factory interface for building DataSource objects. 17 // Asynchronous factory interface for building DataSource objects.
19 class MEDIA_EXPORT DataSourceFactory { 18 class DataSourceFactory {
20 public: 19 public:
21 // Ownership of the DataSource is transferred through this callback. 20 // Ownership of the DataSource is transferred through this callback.
22 typedef Callback2<PipelineStatus, DataSource*>::Type BuildCallback; 21 typedef Callback2<PipelineStatus, DataSource*>::Type BuildCallback;
23 22
24 virtual ~DataSourceFactory(); 23 virtual ~DataSourceFactory();
25 24
26 // Builds a DataSource for |url| and returns it via |callback|. 25 // Builds a DataSource for |url| and returns it via |callback|.
27 virtual void Build(const std::string& url, BuildCallback* callback) = 0; 26 virtual void Build(const std::string& url, BuildCallback* callback) = 0;
28 27
29 // Makes a copy of this factory. 28 // Makes a copy of this factory.
30 // NOTE: Pending requests are not cloned. 29 // NOTE: Pending requests are not cloned.
31 virtual DataSourceFactory* Clone() const = 0; 30 virtual DataSourceFactory* Clone() const = 0;
32 }; 31 };
33 32
34 class Demuxer; 33 class Demuxer;
35 34
36 // Asynchronous factory interface for building Demuxer objects. 35 // Asynchronous factory interface for building Demuxer objects.
37 class MEDIA_EXPORT DemuxerFactory { 36 class DemuxerFactory {
38 public: 37 public:
39 // Ownership of the Demuxer is transferred through this callback. 38 // Ownership of the Demuxer is transferred through this callback.
40 typedef Callback2<PipelineStatus, Demuxer*>::Type BuildCallback; 39 typedef Callback2<PipelineStatus, Demuxer*>::Type BuildCallback;
41 40
42 virtual ~DemuxerFactory(); 41 virtual ~DemuxerFactory();
43 42
44 // Builds a Demuxer for |url| and returns it via |callback|. 43 // Builds a Demuxer for |url| and returns it via |callback|.
45 virtual void Build(const std::string& url, BuildCallback* callback) = 0; 44 virtual void Build(const std::string& url, BuildCallback* callback) = 0;
46 45
47 // Makes a copy of this factory. 46 // Makes a copy of this factory.
48 // NOTE: Pending requests are not cloned. 47 // NOTE: Pending requests are not cloned.
49 virtual DemuxerFactory* Clone() const = 0; 48 virtual DemuxerFactory* Clone() const = 0;
50 }; 49 };
51 50
52 } // namespace media 51 } // namespace media
53 52
54 #endif // MEDIA_BASE_FILTER_FACTORIES_H_ 53 #endif // MEDIA_BASE_FILTER_FACTORIES_H_
OLDNEW
« no previous file with comments | « media/base/filter_collection.h ('k') | media/base/filter_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698