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

Unified Diff: webrtc/voice_engine/channel_manager.h

Issue 1993783002: Moved CreateBuiltinDecoderFactory out to VoEBaseImpl. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@audio-decoder-factory-injections-2
Patch Set: Rebass! How low can you go? Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/voice_engine/channel_manager.h
diff --git a/webrtc/voice_engine/channel_manager.h b/webrtc/voice_engine/channel_manager.h
index 77dfc454d882f0ecece0859c657331c3720bb1a8..213a48f769d1bf2290c69fbd0e50139bcb83a22e 100644
--- a/webrtc/voice_engine/channel_manager.h
+++ b/webrtc/voice_engine/channel_manager.h
@@ -16,6 +16,7 @@
#include "webrtc/base/constructormagic.h"
#include "webrtc/base/criticalsection.h"
+#include "webrtc/base/scoped_ref_ptr.h"
#include "webrtc/call/rtc_event_log.h"
#include "webrtc/system_wrappers/include/atomic32.h"
#include "webrtc/typedefs.h"
@@ -23,6 +24,7 @@
namespace webrtc {
class Config;
+class AudioDecoderFactory;
namespace voe {
@@ -101,6 +103,11 @@ class ChannelManager {
// CreateChannel(const Config& external_config) is called.
ChannelOwner CreateChannel();
ChannelOwner CreateChannel(const Config& external_config);
+ ChannelOwner CreateChannel(
+ const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory);
+ ChannelOwner CreateChannel(
+ const Config& external_config,
+ const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory);
// ChannelOwner.channel() will be NULL if channel_id is invalid or no longer
// exists. This should be checked with ChannelOwner::IsValid().
@@ -117,7 +124,9 @@ class ChannelManager {
private:
// Create a channel given a configuration, |config|.
- ChannelOwner CreateChannelInternal(const Config& config);
+ ChannelOwner CreateChannelInternal(
+ const Config& config,
+ const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory);
uint32_t instance_id_;

Powered by Google App Engine
This is Rietveld 408576698