| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 es.throwUninformativeAndGenericDOMException(NotSupportedError); | 147 es.throwUninformativeAndGenericDOMException(NotSupportedError); |
| 148 return; | 148 return; |
| 149 } | 149 } |
| 150 | 150 |
| 151 m_peerHandler = RTCPeerConnectionHandler::create(this); | 151 m_peerHandler = RTCPeerConnectionHandler::create(this); |
| 152 if (!m_peerHandler) { | 152 if (!m_peerHandler) { |
| 153 es.throwUninformativeAndGenericDOMException(NotSupportedError); | 153 es.throwUninformativeAndGenericDOMException(NotSupportedError); |
| 154 return; | 154 return; |
| 155 } | 155 } |
| 156 | 156 |
| 157 document->frame()->loader()->client()->dispatchWillStartUsingPeerConnectionH
andler(m_peerHandler.get()); | 157 document->frame()->loader().client()->dispatchWillStartUsingPeerConnectionHa
ndler(m_peerHandler.get()); |
| 158 | 158 |
| 159 if (!m_peerHandler->initialize(configuration, constraints)) { | 159 if (!m_peerHandler->initialize(configuration, constraints)) { |
| 160 es.throwUninformativeAndGenericDOMException(NotSupportedError); | 160 es.throwUninformativeAndGenericDOMException(NotSupportedError); |
| 161 return; | 161 return; |
| 162 } | 162 } |
| 163 } | 163 } |
| 164 | 164 |
| 165 RTCPeerConnection::~RTCPeerConnection() | 165 RTCPeerConnection::~RTCPeerConnection() |
| 166 { | 166 { |
| 167 stop(); | 167 stop(); |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 events.swap(m_scheduledEvents); | 687 events.swap(m_scheduledEvents); |
| 688 | 688 |
| 689 Vector<RefPtr<Event> >::iterator it = events.begin(); | 689 Vector<RefPtr<Event> >::iterator it = events.begin(); |
| 690 for (; it != events.end(); ++it) | 690 for (; it != events.end(); ++it) |
| 691 dispatchEvent((*it).release()); | 691 dispatchEvent((*it).release()); |
| 692 | 692 |
| 693 events.clear(); | 693 events.clear(); |
| 694 } | 694 } |
| 695 | 695 |
| 696 } // namespace WebCore | 696 } // namespace WebCore |
| OLD | NEW |