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 FINAL : public RefCounted<RTCSessionDescription>, pu
blic ScriptWrappable { | 45 class RTCSessionDescription FINAL : public RefCountedWillBeGarbageCollectedFinal
ized<RTCSessionDescription>, public ScriptWrappable { |
46 public: | 46 public: |
47 static PassRefPtr<RTCSessionDescription> create(const Dictionary&, Exception
State&); | 47 static PassRefPtrWillBeRawPtr<RTCSessionDescription> create(const Dictionary
&, ExceptionState&); |
48 static PassRefPtr<RTCSessionDescription> create(blink::WebRTCSessionDescript
ion); | 48 static PassRefPtrWillBeRawPtr<RTCSessionDescription> create(blink::WebRTCSes
sionDescription); |
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 blink::WebRTCSessionDescription webSessionDescription(); | 56 blink::WebRTCSessionDescription webSessionDescription(); |
57 | 57 |
| 58 void trace(Visitor*) { } |
| 59 |
58 private: | 60 private: |
59 explicit RTCSessionDescription(blink::WebRTCSessionDescription); | 61 explicit RTCSessionDescription(blink::WebRTCSessionDescription); |
60 | 62 |
61 blink::WebRTCSessionDescription m_webSessionDescription; | 63 blink::WebRTCSessionDescription m_webSessionDescription; |
62 }; | 64 }; |
63 | 65 |
64 } // namespace WebCore | 66 } // namespace WebCore |
65 | 67 |
66 #endif // RTCSessionDescription_h | 68 #endif // RTCSessionDescription_h |
OLD | NEW |