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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef RTCSessionDescription_h | 31 #ifndef RTCSessionDescription_h |
32 #define RTCSessionDescription_h | 32 #define RTCSessionDescription_h |
33 | 33 |
34 #include "bindings/v8/ScriptWrappable.h" | 34 #include "bindings/v8/ScriptWrappable.h" |
| 35 #include "core/dom/ExceptionCode.h" |
35 #include "wtf/PassRefPtr.h" | 36 #include "wtf/PassRefPtr.h" |
36 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
37 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
38 #include "public/platform/WebRTCSessionDescription.h" | 39 #include "public/platform/WebRTCSessionDescription.h" |
39 | 40 |
40 namespace WebCore { | 41 namespace WebCore { |
41 | 42 |
42 class Dictionary; | 43 class Dictionary; |
43 class ExceptionState; | 44 |
| 45 typedef int ExceptionCode; |
44 | 46 |
45 class RTCSessionDescription : public RefCounted<RTCSessionDescription>, public S
criptWrappable { | 47 class RTCSessionDescription : public RefCounted<RTCSessionDescription>, public S
criptWrappable { |
46 public: | 48 public: |
47 static PassRefPtr<RTCSessionDescription> create(const Dictionary&, Exception
State&); | 49 static PassRefPtr<RTCSessionDescription> create(const Dictionary&, Exception
Code&); |
48 static PassRefPtr<RTCSessionDescription> create(WebKit::WebRTCSessionDescrip
tion); | 50 static PassRefPtr<RTCSessionDescription> create(WebKit::WebRTCSessionDescrip
tion); |
49 virtual ~RTCSessionDescription(); | 51 virtual ~RTCSessionDescription(); |
50 | 52 |
51 String type(); | 53 String type(); |
52 void setType(const String&, ExceptionState&); | 54 void setType(const String&, ExceptionCode&); |
53 | 55 |
54 String sdp(); | 56 String sdp(); |
55 void setSdp(const String&, ExceptionState&); | 57 void setSdp(const String&, ExceptionCode&); |
56 | 58 |
57 WebKit::WebRTCSessionDescription webSessionDescription(); | 59 WebKit::WebRTCSessionDescription webSessionDescription(); |
58 | 60 |
59 private: | 61 private: |
60 explicit RTCSessionDescription(WebKit::WebRTCSessionDescription); | 62 explicit RTCSessionDescription(WebKit::WebRTCSessionDescription); |
61 | 63 |
62 WebKit::WebRTCSessionDescription m_webSessionDescription; | 64 WebKit::WebRTCSessionDescription m_webSessionDescription; |
63 }; | 65 }; |
64 | 66 |
65 } // namespace WebCore | 67 } // namespace WebCore |
66 | 68 |
67 #endif // RTCSessionDescription_h | 69 #endif // RTCSessionDescription_h |
OLD | NEW |