| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 } | 63 } |
| 64 | 64 |
| 65 RTCSessionDescription* RTCSessionDescription::create(WebRTCSessionDescription we
bSessionDescription) | 65 RTCSessionDescription* RTCSessionDescription::create(WebRTCSessionDescription we
bSessionDescription) |
| 66 { | 66 { |
| 67 return new RTCSessionDescription(webSessionDescription); | 67 return new RTCSessionDescription(webSessionDescription); |
| 68 } | 68 } |
| 69 | 69 |
| 70 RTCSessionDescription::RTCSessionDescription(WebRTCSessionDescription webSession
Description) | 70 RTCSessionDescription::RTCSessionDescription(WebRTCSessionDescription webSession
Description) |
| 71 : m_webSessionDescription(webSessionDescription) | 71 : m_webSessionDescription(webSessionDescription) |
| 72 { | 72 { |
| 73 ScriptWrappable::init(this); | |
| 74 } | 73 } |
| 75 | 74 |
| 76 String RTCSessionDescription::type() | 75 String RTCSessionDescription::type() |
| 77 { | 76 { |
| 78 return m_webSessionDescription.type(); | 77 return m_webSessionDescription.type(); |
| 79 } | 78 } |
| 80 | 79 |
| 81 void RTCSessionDescription::setType(const String& type, ExceptionState& exceptio
nState) | 80 void RTCSessionDescription::setType(const String& type, ExceptionState& exceptio
nState) |
| 82 { | 81 { |
| 83 if (verifyType(type)) | 82 if (verifyType(type)) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 95 { | 94 { |
| 96 m_webSessionDescription.setSDP(sdp); | 95 m_webSessionDescription.setSDP(sdp); |
| 97 } | 96 } |
| 98 | 97 |
| 99 WebRTCSessionDescription RTCSessionDescription::webSessionDescription() | 98 WebRTCSessionDescription RTCSessionDescription::webSessionDescription() |
| 100 { | 99 { |
| 101 return m_webSessionDescription; | 100 return m_webSessionDescription; |
| 102 } | 101 } |
| 103 | 102 |
| 104 } // namespace blink | 103 } // namespace blink |
| OLD | NEW |