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 21 matching lines...) Expand all Loading... |
32 #define RTCIceCandidate_h | 32 #define RTCIceCandidate_h |
33 | 33 |
34 #include "bindings/core/v8/ScriptWrappable.h" | 34 #include "bindings/core/v8/ScriptWrappable.h" |
35 #include "public/platform/WebRTCICECandidate.h" | 35 #include "public/platform/WebRTCICECandidate.h" |
36 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class RTCIceCandidateInit; | 40 class RTCIceCandidateInit; |
41 class ExceptionState; | 41 class ExceptionState; |
| 42 class ScriptState; |
| 43 class ScriptValue; |
42 | 44 |
43 class RTCIceCandidate final : public GarbageCollectedFinalized<RTCIceCandidate>,
public ScriptWrappable { | 45 class RTCIceCandidate final : public GarbageCollectedFinalized<RTCIceCandidate>,
public ScriptWrappable { |
44 DEFINE_WRAPPERTYPEINFO(); | 46 DEFINE_WRAPPERTYPEINFO(); |
45 public: | 47 public: |
46 static RTCIceCandidate* create(const RTCIceCandidateInit&, ExceptionState&); | 48 static RTCIceCandidate* create(const RTCIceCandidateInit&, ExceptionState&); |
47 static RTCIceCandidate* create(WebRTCICECandidate); | 49 static RTCIceCandidate* create(WebRTCICECandidate); |
48 | 50 |
49 String candidate() const; | 51 String candidate() const; |
50 void setCandidate(String); | 52 void setCandidate(String); |
51 String sdpMid() const; | 53 String sdpMid() const; |
52 void setSdpMid(String); | 54 void setSdpMid(String); |
53 unsigned short sdpMLineIndex() const; | 55 unsigned short sdpMLineIndex() const; |
54 void setSdpMLineIndex(unsigned short); | 56 void setSdpMLineIndex(unsigned short); |
55 | 57 |
| 58 ScriptValue toJSONForBinding(ScriptState*); |
| 59 |
56 WebRTCICECandidate webCandidate() const; | 60 WebRTCICECandidate webCandidate() const; |
57 | 61 |
58 DEFINE_INLINE_TRACE() { } | 62 DEFINE_INLINE_TRACE() { } |
59 | 63 |
60 private: | 64 private: |
61 explicit RTCIceCandidate(WebRTCICECandidate); | 65 explicit RTCIceCandidate(WebRTCICECandidate); |
62 | 66 |
63 WebRTCICECandidate m_webCandidate; | 67 WebRTCICECandidate m_webCandidate; |
64 }; | 68 }; |
65 | 69 |
66 } // namespace blink | 70 } // namespace blink |
67 | 71 |
68 #endif // RTCIceCandidate_h | 72 #endif // RTCIceCandidate_h |
OLD | NEW |