diff options
Diffstat (limited to 'Source/WebCore/platform/mediastream/PeerConnectionHandlerClient.h')
-rw-r--r-- | Source/WebCore/platform/mediastream/PeerConnectionHandlerClient.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/WebCore/platform/mediastream/PeerConnectionHandlerClient.h b/Source/WebCore/platform/mediastream/PeerConnectionHandlerClient.h index 7d77b5f0b..e67ef3a55 100644 --- a/Source/WebCore/platform/mediastream/PeerConnectionHandlerClient.h +++ b/Source/WebCore/platform/mediastream/PeerConnectionHandlerClient.h @@ -42,6 +42,14 @@ class MediaStreamDescriptor; class PeerConnectionHandlerClient { public: + // Name and values of the enum must match the corressponding constants in the PeerConnection.idl file. + enum ReadyState { + NEW = 0, + NEGOTIATING = 1, + ACTIVE = 2, + CLOSED = 3 + }; + virtual ~PeerConnectionHandlerClient() { } virtual void didCompleteICEProcessing() = 0; @@ -49,6 +57,7 @@ public: virtual void didReceiveDataStreamMessage(const char* data, size_t length) = 0; virtual void didAddRemoteStream(PassRefPtr<MediaStreamDescriptor>) = 0; virtual void didRemoveRemoteStream(MediaStreamDescriptor*) = 0; + virtual void didChangeState(ReadyState) = 0; }; } // namespace WebCore |