| 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 ExecutionContext; |
| 42 class ScriptState; | 43 class ScriptState; |
| 43 class ScriptValue; | 44 class ScriptValue; |
| 44 | 45 |
| 45 class RTCIceCandidate final : public GarbageCollectedFinalized<RTCIceCandidate>,
public ScriptWrappable { | 46 class RTCIceCandidate final : public GarbageCollectedFinalized<RTCIceCandidate>,
public ScriptWrappable { |
| 46 DEFINE_WRAPPERTYPEINFO(); | 47 DEFINE_WRAPPERTYPEINFO(); |
| 47 public: | 48 public: |
| 48 static RTCIceCandidate* create(const RTCIceCandidateInit&, ExceptionState&); | 49 static RTCIceCandidate* create(ExecutionContext*, const RTCIceCandidateInit&
, ExceptionState&); |
| 49 static RTCIceCandidate* create(WebRTCICECandidate); | 50 static RTCIceCandidate* create(WebRTCICECandidate); |
| 50 | 51 |
| 51 String candidate() const; | 52 String candidate() const; |
| 52 void setCandidate(String); | 53 void setCandidate(String); |
| 53 String sdpMid() const; | 54 String sdpMid() const; |
| 54 void setSdpMid(String); | 55 void setSdpMid(String); |
| 55 unsigned short sdpMLineIndex() const; | 56 unsigned short sdpMLineIndex() const; |
| 56 void setSdpMLineIndex(unsigned short); | 57 void setSdpMLineIndex(unsigned short); |
| 57 | 58 |
| 58 ScriptValue toJSONForBinding(ScriptState*); | 59 ScriptValue toJSONForBinding(ScriptState*); |
| 59 | 60 |
| 60 WebRTCICECandidate webCandidate() const; | 61 WebRTCICECandidate webCandidate() const; |
| 61 | 62 |
| 62 DEFINE_INLINE_TRACE() { } | 63 DEFINE_INLINE_TRACE() { } |
| 63 | 64 |
| 64 private: | 65 private: |
| 65 explicit RTCIceCandidate(WebRTCICECandidate); | 66 explicit RTCIceCandidate(WebRTCICECandidate); |
| 66 | 67 |
| 67 WebRTCICECandidate m_webCandidate; | 68 WebRTCICECandidate m_webCandidate; |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 } // namespace blink | 71 } // namespace blink |
| 71 | 72 |
| 72 #endif // RTCIceCandidate_h | 73 #endif // RTCIceCandidate_h |
| OLD | NEW |