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

Unified Diff: content/renderer/media/audio_device_factory.h

Issue 11359196: Associate audio streams with their source/destination RenderView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased; and numerous clean-ups. Created 8 years, 1 month 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: content/renderer/media/audio_device_factory.h
diff --git a/content/renderer/media/audio_device_factory.h b/content/renderer/media/audio_device_factory.h
deleted file mode 100644
index e95e487e88a95acc4f97077ac84206cd864d7c2f..0000000000000000000000000000000000000000
--- a/content/renderer/media/audio_device_factory.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_
-#define CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_
-
-#include "base/basictypes.h"
-#include "content/common/content_export.h"
-
-namespace media {
-class AudioInputDevice;
-class AudioRendererSink;
-}
-
-namespace content {
-
-// A factory for creating AudioRendererSinks. There is a global factory
-// function that can be installed for the purposes of testing to provide
-// a specialized AudioRendererSink class.
-class CONTENT_EXPORT AudioDeviceFactory {
- public:
- // Creates an AudioRendererSink using the currently registered factory,
- // or the default one if no factory is registered. Ownership of the returned
- // pointer will be passed to the caller.
- static media::AudioRendererSink* NewOutputDevice();
-
- // TODO(henrika): Update AudioInputDevice to inherit from an interface
- // similar to AudioRendererSink, but for input. Same for the callback
- // interfaces.
- static media::AudioInputDevice* NewInputDevice();
-
- protected:
- AudioDeviceFactory();
- virtual ~AudioDeviceFactory();
-
- // You can derive from this class and specify an implementation for these
- // functions to provide alternate audio device implementations.
- // If the return value of either of these function is NULL, we fall back
- // on the default implementation.
- virtual media::AudioRendererSink* CreateOutputDevice() = 0;
- virtual media::AudioInputDevice* CreateInputDevice() = 0;
-
- private:
- // The current globally registered factory. This is NULL when we should
- // create the default AudioRendererSinks.
- static AudioDeviceFactory* factory_;
-
- DISALLOW_COPY_AND_ASSIGN(AudioDeviceFactory);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698