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

Unified Diff: Source/modules/mediastream/SourceInfo.h

Issue 15796004: [MediaStream API] Adding MediaStreamTrack::getSourceInfos (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed review comments and merge Created 7 years, 6 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
« no previous file with comments | « Source/modules/mediastream/MediaStreamTrack.idl ('k') | Source/modules/mediastream/SourceInfo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..94bce294a41f8335cdf683c392388a576fcb6af8 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 "public/platform/WebSourceInfo.h"
+#include "wtf/PassRefPtr.h"
+#include "wtf/RefCounted.h"
+#include "wtf/Vector.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
« no previous file with comments | « Source/modules/mediastream/MediaStreamTrack.idl ('k') | Source/modules/mediastream/SourceInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698