| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 class VoidCallback; | 60 class VoidCallback; |
| 61 | 61 |
| 62 class RTCPeerConnection : public RefCountedGarbageCollected<RTCPeerConnection>,
public RTCPeerConnectionHandlerClient, public EventTarget, public ActiveDOMObjec
t { | 62 class RTCPeerConnection : public RefCountedGarbageCollected<RTCPeerConnection>,
public RTCPeerConnectionHandlerClient, public EventTarget, public ActiveDOMObjec
t { |
| 63 DECLARE_GC_INFO | 63 DECLARE_GC_INFO |
| 64 public: | 64 public: |
| 65 static PassRefPtr<RTCPeerConnection> create(ScriptExecutionContext*, const D
ictionary& rtcConfiguration, const Dictionary& mediaConstraints, ExceptionCode&)
; | 65 static PassRefPtr<RTCPeerConnection> create(ScriptExecutionContext*, const D
ictionary& rtcConfiguration, const Dictionary& mediaConstraints, ExceptionCode&)
; |
| 66 ~RTCPeerConnection(); | 66 ~RTCPeerConnection(); |
| 67 | 67 |
| 68 virtual void trace(Visitor*) { } | 68 virtual void trace(Visitor*) { } |
| 69 | 69 |
| 70 virtual void visitWith(Visitor* visitor) const OVERRIDE | 70 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
| 71 { | 71 { |
| 72 visitor->visit(this); | 72 visitor->mark(this); |
| 73 } | 73 } |
| 74 | 74 |
| 75 void createOffer(PassRefPtr<RTCSessionDescriptionCallback>, PassRefPtr<RTCEr
rorCallback>, const Dictionary& mediaConstraints, ExceptionCode&); | 75 void createOffer(PassRefPtr<RTCSessionDescriptionCallback>, PassRefPtr<RTCEr
rorCallback>, const Dictionary& mediaConstraints, ExceptionCode&); |
| 76 | 76 |
| 77 void createAnswer(PassRefPtr<RTCSessionDescriptionCallback>, PassRefPtr<RTCE
rrorCallback>, const Dictionary& mediaConstraints, ExceptionCode&); | 77 void createAnswer(PassRefPtr<RTCSessionDescriptionCallback>, PassRefPtr<RTCE
rrorCallback>, const Dictionary& mediaConstraints, ExceptionCode&); |
| 78 | 78 |
| 79 void setLocalDescription(PassRefPtr<RTCSessionDescription>, PassRefPtr<VoidC
allback>, PassRefPtr<RTCErrorCallback>, ExceptionCode&); | 79 void setLocalDescription(PassRefPtr<RTCSessionDescription>, PassRefPtr<VoidC
allback>, PassRefPtr<RTCErrorCallback>, ExceptionCode&); |
| 80 PassRefPtr<RTCSessionDescription> localDescription(ExceptionCode&); | 80 PassRefPtr<RTCSessionDescription> localDescription(ExceptionCode&); |
| 81 | 81 |
| 82 void setRemoteDescription(PassRefPtr<RTCSessionDescription>, PassRefPtr<Void
Callback>, PassRefPtr<RTCErrorCallback>, ExceptionCode&); | 82 void setRemoteDescription(PassRefPtr<RTCSessionDescription>, PassRefPtr<Void
Callback>, PassRefPtr<RTCErrorCallback>, ExceptionCode&); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 Vector<RefPtr<Event> > m_scheduledEvents; | 170 Vector<RefPtr<Event> > m_scheduledEvents; |
| 171 | 171 |
| 172 bool m_stopped; | 172 bool m_stopped; |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 } // namespace WebCore | 175 } // namespace WebCore |
| 176 | 176 |
| 177 #endif // ENABLE(MEDIA_STREAM) | 177 #endif // ENABLE(MEDIA_STREAM) |
| 178 | 178 |
| 179 #endif // RTCPeerConnection_h | 179 #endif // RTCPeerConnection_h |
| OLD | NEW |