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 24 matching lines...) Expand all Loading... |
35 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
38 #include "public/platform/WebRTCSessionDescription.h" | 38 #include "public/platform/WebRTCSessionDescription.h" |
39 | 39 |
40 namespace WebCore { | 40 namespace WebCore { |
41 | 41 |
42 class Dictionary; | 42 class Dictionary; |
43 class ExceptionState; | 43 class ExceptionState; |
44 | 44 |
45 class RTCSessionDescription : public RefCounted<RTCSessionDescription>, public S
criptWrappable { | 45 class RTCSessionDescription FINAL : public RefCounted<RTCSessionDescription>, pu
blic ScriptWrappable { |
46 public: | 46 public: |
47 static PassRefPtr<RTCSessionDescription> create(const Dictionary&, Exception
State&); | 47 static PassRefPtr<RTCSessionDescription> create(const Dictionary&, Exception
State&); |
48 static PassRefPtr<RTCSessionDescription> create(WebKit::WebRTCSessionDescrip
tion); | 48 static PassRefPtr<RTCSessionDescription> create(WebKit::WebRTCSessionDescrip
tion); |
49 | 49 |
50 String type(); | 50 String type(); |
51 void setType(const String&, ExceptionState&); | 51 void setType(const String&, ExceptionState&); |
52 | 52 |
53 String sdp(); | 53 String sdp(); |
54 void setSdp(const String&); | 54 void setSdp(const String&); |
55 | 55 |
56 WebKit::WebRTCSessionDescription webSessionDescription(); | 56 WebKit::WebRTCSessionDescription webSessionDescription(); |
57 | 57 |
58 private: | 58 private: |
59 explicit RTCSessionDescription(WebKit::WebRTCSessionDescription); | 59 explicit RTCSessionDescription(WebKit::WebRTCSessionDescription); |
60 | 60 |
61 WebKit::WebRTCSessionDescription m_webSessionDescription; | 61 WebKit::WebRTCSessionDescription m_webSessionDescription; |
62 }; | 62 }; |
63 | 63 |
64 } // namespace WebCore | 64 } // namespace WebCore |
65 | 65 |
66 #endif // RTCSessionDescription_h | 66 #endif // RTCSessionDescription_h |
OLD | NEW |