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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 { | 68 { |
69 return adoptRef(new RTCSessionDescription(webSessionDescription)); | 69 return adoptRef(new RTCSessionDescription(webSessionDescription)); |
70 } | 70 } |
71 | 71 |
72 RTCSessionDescription::RTCSessionDescription(WebKit::WebRTCSessionDescription we
bSessionDescription) | 72 RTCSessionDescription::RTCSessionDescription(WebKit::WebRTCSessionDescription we
bSessionDescription) |
73 : m_webSessionDescription(webSessionDescription) | 73 : m_webSessionDescription(webSessionDescription) |
74 { | 74 { |
75 ScriptWrappable::init(this); | 75 ScriptWrappable::init(this); |
76 } | 76 } |
77 | 77 |
78 RTCSessionDescription::~RTCSessionDescription() | |
79 { | |
80 } | |
81 | |
82 String RTCSessionDescription::type() | 78 String RTCSessionDescription::type() |
83 { | 79 { |
84 return m_webSessionDescription.type(); | 80 return m_webSessionDescription.type(); |
85 } | 81 } |
86 | 82 |
87 void RTCSessionDescription::setType(const String& type, ExceptionState& es) | 83 void RTCSessionDescription::setType(const String& type, ExceptionState& es) |
88 { | 84 { |
89 if (verifyType(type)) | 85 if (verifyType(type)) |
90 m_webSessionDescription.setType(type); | 86 m_webSessionDescription.setType(type); |
91 else | 87 else |
92 es.throwDOMException(TypeMismatchError, constructIllegalTypeExceptionMes
sage(type)); | 88 es.throwDOMException(TypeMismatchError, constructIllegalTypeExceptionMes
sage(type)); |
93 } | 89 } |
94 | 90 |
95 String RTCSessionDescription::sdp() | 91 String RTCSessionDescription::sdp() |
96 { | 92 { |
97 return m_webSessionDescription.sdp(); | 93 return m_webSessionDescription.sdp(); |
98 } | 94 } |
99 | 95 |
100 void RTCSessionDescription::setSdp(const String& sdp) | 96 void RTCSessionDescription::setSdp(const String& sdp) |
101 { | 97 { |
102 m_webSessionDescription.setSDP(sdp); | 98 m_webSessionDescription.setSDP(sdp); |
103 } | 99 } |
104 | 100 |
105 WebKit::WebRTCSessionDescription RTCSessionDescription::webSessionDescription() | 101 WebKit::WebRTCSessionDescription RTCSessionDescription::webSessionDescription() |
106 { | 102 { |
107 return m_webSessionDescription; | 103 return m_webSessionDescription; |
108 } | 104 } |
109 | 105 |
110 } // namespace WebCore | 106 } // namespace WebCore |
OLD | NEW |