OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 class RTCDTMFSender; | 50 class RTCDTMFSender; |
51 class RTCDataChannel; | 51 class RTCDataChannel; |
52 class RTCErrorCallback; | 52 class RTCErrorCallback; |
53 class RTCSessionDescription; | 53 class RTCSessionDescription; |
54 class RTCSessionDescriptionCallback; | 54 class RTCSessionDescriptionCallback; |
55 class RTCStatsCallback; | 55 class RTCStatsCallback; |
56 class VoidCallback; | 56 class VoidCallback; |
57 | 57 |
58 typedef int ExceptionCode; | 58 typedef int ExceptionCode; |
59 | 59 |
60 class RTCPeerConnection : public RefCounted<RTCPeerConnection>, public ScriptWra
ppable, public RTCPeerConnectionHandlerClient, public EventTarget, public Active
DOMObject { | 60 class RTCPeerConnection : public EventTarget, public RefCounted<RTCPeerConnectio
n>, public ScriptWrappable, public RTCPeerConnectionHandlerClient, public Active
DOMObject { |
61 public: | 61 public: |
62 static PassRefPtr<RTCPeerConnection> create(ScriptExecutionContext*, const D
ictionary& rtcConfiguration, const Dictionary& mediaConstraints, ExceptionCode&)
; | 62 static PassRefPtr<RTCPeerConnection> create(ScriptExecutionContext*, const D
ictionary& rtcConfiguration, const Dictionary& mediaConstraints, ExceptionCode&)
; |
63 ~RTCPeerConnection(); | 63 ~RTCPeerConnection(); |
64 | 64 |
65 void createOffer(PassRefPtr<RTCSessionDescriptionCallback>, PassRefPtr<RTCEr
rorCallback>, const Dictionary& mediaConstraints, ExceptionCode&); | 65 void createOffer(PassRefPtr<RTCSessionDescriptionCallback>, PassRefPtr<RTCEr
rorCallback>, const Dictionary& mediaConstraints, ExceptionCode&); |
66 | 66 |
67 void createAnswer(PassRefPtr<RTCSessionDescriptionCallback>, PassRefPtr<RTCE
rrorCallback>, const Dictionary& mediaConstraints, ExceptionCode&); | 67 void createAnswer(PassRefPtr<RTCSessionDescriptionCallback>, PassRefPtr<RTCE
rrorCallback>, const Dictionary& mediaConstraints, ExceptionCode&); |
68 | 68 |
69 void setLocalDescription(PassRefPtr<RTCSessionDescription>, PassRefPtr<VoidC
allback>, PassRefPtr<RTCErrorCallback>, ExceptionCode&); | 69 void setLocalDescription(PassRefPtr<RTCSessionDescription>, PassRefPtr<VoidC
allback>, PassRefPtr<RTCErrorCallback>, ExceptionCode&); |
70 PassRefPtr<RTCSessionDescription> localDescription(ExceptionCode&); | 70 PassRefPtr<RTCSessionDescription> localDescription(ExceptionCode&); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 Timer<RTCPeerConnection> m_scheduledEventTimer; | 161 Timer<RTCPeerConnection> m_scheduledEventTimer; |
162 Vector<RefPtr<Event> > m_scheduledEvents; | 162 Vector<RefPtr<Event> > m_scheduledEvents; |
163 | 163 |
164 bool m_stopped; | 164 bool m_stopped; |
165 }; | 165 }; |
166 | 166 |
167 } // namespace WebCore | 167 } // namespace WebCore |
168 | 168 |
169 #endif // RTCPeerConnection_h | 169 #endif // RTCPeerConnection_h |
OLD | NEW |