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

Side by Side Diff: Source/modules/mediastream/RTCPeerConnection.h

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698