Removing cricket::MediaEngineFactory.

Bug: None
Change-Id: I680a3a0785f17f53ea574ab5c94530d540c365ed
No-Try: True
Reviewed-on: https://webrtc-review.googlesource.com/39320
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21652}
This commit is contained in:
Mirko Bonadei 2018-01-12 15:24:57 +01:00 committed by Commit Bot
parent 16beea7c90
commit 8d0f1db319
2 changed files with 0 additions and 40 deletions

View File

@ -10,24 +10,6 @@
#include "media/base/mediaengine.h"
#if !defined(DISABLE_MEDIA_ENGINE_FACTORY)
namespace cricket {
MediaEngineFactory::MediaEngineCreateFunction
MediaEngineFactory::create_function_ = NULL;
MediaEngineFactory::MediaEngineCreateFunction
MediaEngineFactory::SetCreateFunction(MediaEngineCreateFunction function) {
MediaEngineCreateFunction old_function = create_function_;
create_function_ = function;
return old_function;
}
}; // namespace cricket
#endif // DISABLE_MEDIA_ENGINE_FACTORY
namespace cricket {
webrtc::RtpParameters CreateRtpParametersWithOneEncoding() {

View File

@ -29,10 +29,6 @@
#include "media/base/videocommon.h"
#include "rtc_base/platform_file.h"
#if defined(GOOGLE_CHROME_BUILD) || defined(CHROMIUM_BUILD)
#define DISABLE_MEDIA_ENGINE_FACTORY
#endif
namespace webrtc {
class AudioDeviceModule;
class AudioMixer;
@ -91,24 +87,6 @@ class MediaEngineInterface {
};
#if !defined(DISABLE_MEDIA_ENGINE_FACTORY)
class MediaEngineFactory {
public:
typedef cricket::MediaEngineInterface* (*MediaEngineCreateFunction)();
// Creates a media engine, using either the compiled system default or the
// creation function specified in SetCreateFunction, if specified.
static MediaEngineInterface* Create();
// Sets the function used when calling Create. If unset, the compiled system
// default will be used. Returns the old create function, or NULL if one
// wasn't set. Likewise, NULL can be used as the |function| parameter to
// reset to the default behavior.
static MediaEngineCreateFunction SetCreateFunction(
MediaEngineCreateFunction function);
private:
static MediaEngineCreateFunction create_function_;
};
#endif
// CompositeMediaEngine constructs a MediaEngine from separate
// voice and video engine classes.
template <class VOICE, class VIDEO>