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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // ActiveDOMObject | 134 // ActiveDOMObject |
135 virtual void suspend() OVERRIDE; | 135 virtual void suspend() OVERRIDE; |
136 virtual void resume() OVERRIDE; | 136 virtual void resume() OVERRIDE; |
137 virtual void stop() OVERRIDE; | 137 virtual void stop() OVERRIDE; |
138 // We keep the this object alive until either stopped or closed. | 138 // We keep the this object alive until either stopped or closed. |
139 virtual bool hasPendingActivity() const OVERRIDE | 139 virtual bool hasPendingActivity() const OVERRIDE |
140 { | 140 { |
141 return !m_closed && !m_stopped; | 141 return !m_closed && !m_stopped; |
142 } | 142 } |
143 | 143 |
| 144 void clearWeakMembers(Visitor*); |
144 virtual void trace(Visitor*) OVERRIDE; | 145 virtual void trace(Visitor*) OVERRIDE; |
145 | 146 |
146 private: | 147 private: |
147 RTCPeerConnection(ExecutionContext*, PassRefPtr<RTCConfiguration>, blink::We
bMediaConstraints, ExceptionState&); | 148 RTCPeerConnection(ExecutionContext*, PassRefPtr<RTCConfiguration>, blink::We
bMediaConstraints, ExceptionState&); |
148 | 149 |
149 static PassRefPtr<RTCConfiguration> parseConfiguration(const Dictionary& con
figuration, ExceptionState&); | 150 static PassRefPtr<RTCConfiguration> parseConfiguration(const Dictionary& con
figuration, ExceptionState&); |
150 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>); | 151 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>); |
151 void dispatchScheduledEvent(); | 152 void dispatchScheduledEvent(); |
152 bool hasLocalStreamWithTrackId(const String& trackId); | 153 bool hasLocalStreamWithTrackId(const String& trackId); |
153 | 154 |
(...skipping 15 matching lines...) Expand all Loading... |
169 AsyncMethodRunner<RTCPeerConnection> m_dispatchScheduledEventRunner; | 170 AsyncMethodRunner<RTCPeerConnection> m_dispatchScheduledEventRunner; |
170 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; | 171 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; |
171 | 172 |
172 bool m_stopped; | 173 bool m_stopped; |
173 bool m_closed; | 174 bool m_closed; |
174 }; | 175 }; |
175 | 176 |
176 } // namespace WebCore | 177 } // namespace WebCore |
177 | 178 |
178 #endif // RTCPeerConnection_h | 179 #endif // RTCPeerConnection_h |
OLD | NEW |