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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced and sent out to the code review. Created 6 years, 3 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class RTCSessionDescriptionCallback; 54 class RTCSessionDescriptionCallback;
55 class RTCStatsCallback; 55 class RTCStatsCallback;
56 class VoidCallback; 56 class VoidCallback;
57 57
58 class RTCPeerConnection FINAL 58 class RTCPeerConnection FINAL
59 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<RTCPeerCo nnection> 59 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<RTCPeerCo nnection>
60 , public WebRTCPeerConnectionHandlerClient 60 , public WebRTCPeerConnectionHandlerClient
61 , public EventTargetWithInlineData 61 , public EventTargetWithInlineData
62 , public ActiveDOMObject { 62 , public ActiveDOMObject {
63 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollectedWi llBeGarbageCollectedFinalized<RTCPeerConnection>); 63 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollectedWi llBeGarbageCollectedFinalized<RTCPeerConnection>);
64 DEFINE_WRAPPERTYPEINFO();
64 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(RTCPeerConnection); 65 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(RTCPeerConnection);
65 public: 66 public:
66 static RTCPeerConnection* create(ExecutionContext*, const Dictionary&, const Dictionary&, ExceptionState&); 67 static RTCPeerConnection* create(ExecutionContext*, const Dictionary&, const Dictionary&, ExceptionState&);
67 virtual ~RTCPeerConnection(); 68 virtual ~RTCPeerConnection();
68 69
69 void createOffer(PassOwnPtr<RTCSessionDescriptionCallback>, PassOwnPtr<RTCEr rorCallback>, const Dictionary&, ExceptionState&); 70 void createOffer(PassOwnPtr<RTCSessionDescriptionCallback>, PassOwnPtr<RTCEr rorCallback>, const Dictionary&, ExceptionState&);
70 71
71 void createAnswer(PassOwnPtr<RTCSessionDescriptionCallback>, PassOwnPtr<RTCE rrorCallback>, const Dictionary&, ExceptionState&); 72 void createAnswer(PassOwnPtr<RTCSessionDescriptionCallback>, PassOwnPtr<RTCE rrorCallback>, const Dictionary&, ExceptionState&);
72 73
73 void setLocalDescription(RTCSessionDescription*, PassOwnPtr<VoidCallback>, P assOwnPtr<RTCErrorCallback>, ExceptionState&); 74 void setLocalDescription(RTCSessionDescription*, PassOwnPtr<VoidCallback>, P assOwnPtr<RTCErrorCallback>, ExceptionState&);
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 AsyncMethodRunner<RTCPeerConnection> m_dispatchScheduledEventRunner; 178 AsyncMethodRunner<RTCPeerConnection> m_dispatchScheduledEventRunner;
178 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; 179 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents;
179 180
180 bool m_stopped; 181 bool m_stopped;
181 bool m_closed; 182 bool m_closed;
182 }; 183 };
183 184
184 } // namespace blink 185 } // namespace blink
185 186
186 #endif // RTCPeerConnection_h 187 #endif // RTCPeerConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698