Index: Source/modules/mediastream/SourceInfo.h |
diff --git a/Source/core/platform/mediastream/RTCDTMFSenderHandler.h b/Source/modules/mediastream/SourceInfo.h |
similarity index 68% |
copy from Source/core/platform/mediastream/RTCDTMFSenderHandler.h |
copy to Source/modules/mediastream/SourceInfo.h |
index a5a68cc6961f9c75eff20241ed18ee3731a30dff..a20bb68c194fd4c7234d323ec1d74aa6f29c3b37 100644 |
--- a/Source/core/platform/mediastream/RTCDTMFSenderHandler.h |
+++ b/Source/modules/mediastream/SourceInfo.h |
@@ -23,27 +23,34 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef RTCDTMFSenderHandler_h |
-#define RTCDTMFSenderHandler_h |
+#ifndef SourceInfo_h |
+#define SourceInfo_h |
-#include <wtf/text/WTFString.h> |
+#include "bindings/v8/ScriptWrappable.h" |
+#include "wtf/PassRefPtr.h" |
+#include "wtf/RefCounted.h" |
+#include "wtf/Vector.h" |
+#include <public/WebSourceInfo.h> |
namespace WebCore { |
-class RTCDTMFSenderHandlerClient; |
- |
-class RTCDTMFSenderHandler { |
+class SourceInfo : public RefCounted<SourceInfo>, public ScriptWrappable { |
public: |
- virtual ~RTCDTMFSenderHandler() { } |
+ static PassRefPtr<SourceInfo> create(const WebKit::WebSourceInfo&); |
- virtual void setClient(RTCDTMFSenderHandlerClient*) = 0; |
+ String id() const; |
+ String kind() const; |
+ String label() const; |
+ String facing() const; |
- virtual String currentToneBuffer() = 0; |
+private: |
+ explicit SourceInfo(const WebKit::WebSourceInfo&); |
- virtual bool canInsertDTMF() = 0; |
- virtual bool insertDTMF(const String& tones, long duration, long interToneGap) = 0; |
+ WebKit::WebSourceInfo m_webSourceInfo; |
}; |
+typedef Vector<RefPtr<SourceInfo> > SourceInfoVector; |
+ |
} // namespace WebCore |
-#endif // RTCDTMFSenderHandler_h |
+#endif // SourceInfo_h |