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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 void releasePeerConnectionHandler() override; | 180 void releasePeerConnectionHandler() override; |
181 void closePeerConnection() override; | 181 void closePeerConnection() override; |
182 | 182 |
183 // EventTarget | 183 // EventTarget |
184 const AtomicString& interfaceName() const override; | 184 const AtomicString& interfaceName() const override; |
185 ExecutionContext* getExecutionContext() const override; | 185 ExecutionContext* getExecutionContext() const override; |
186 | 186 |
187 // ActiveDOMObject | 187 // ActiveDOMObject |
188 void suspend() override; | 188 void suspend() override; |
189 void resume() override; | 189 void resume() override; |
190 void stop() override; | 190 void contextDestroyed() override; |
191 | 191 |
192 // ScriptWrappable | 192 // ScriptWrappable |
193 // We keep the this object alive until either stopped or closed. | 193 // We keep the this object alive until either stopped or closed. |
194 bool hasPendingActivity() const final { return !m_closed && !m_stopped; } | 194 bool hasPendingActivity() const final { return !m_closed && !m_stopped; } |
195 | 195 |
196 DECLARE_VIRTUAL_TRACE(); | 196 DECLARE_VIRTUAL_TRACE(); |
197 | 197 |
198 private: | 198 private: |
199 typedef Function<bool()> BoolFunction; | 199 typedef Function<bool()> BoolFunction; |
200 class EventWrapper : public GarbageCollectedFinalized<EventWrapper> { | 200 class EventWrapper : public GarbageCollectedFinalized<EventWrapper> { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 253 |
254 bool m_stopped; | 254 bool m_stopped; |
255 bool m_closed; | 255 bool m_closed; |
256 | 256 |
257 bool m_hasDataChannels; // For RAPPOR metrics | 257 bool m_hasDataChannels; // For RAPPOR metrics |
258 }; | 258 }; |
259 | 259 |
260 } // namespace blink | 260 } // namespace blink |
261 | 261 |
262 #endif // RTCPeerConnection_h | 262 #endif // RTCPeerConnection_h |
OLD | NEW |