| 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 20 matching lines...) Expand all Loading... |
| 31 #ifndef RTCSessionDescription_h | 31 #ifndef RTCSessionDescription_h |
| 32 #define RTCSessionDescription_h | 32 #define RTCSessionDescription_h |
| 33 | 33 |
| 34 #include "bindings/core/v8/ScriptWrappable.h" | 34 #include "bindings/core/v8/ScriptWrappable.h" |
| 35 #include "public/platform/WebRTCSessionDescription.h" | 35 #include "public/platform/WebRTCSessionDescription.h" |
| 36 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class RTCSessionDescriptionInit; | 40 class RTCSessionDescriptionInit; |
| 41 class ScriptState; |
| 42 class ScriptValue; |
| 41 | 43 |
| 42 class RTCSessionDescription final : public GarbageCollectedFinalized<RTCSessionD
escription>, public ScriptWrappable { | 44 class RTCSessionDescription final : public GarbageCollectedFinalized<RTCSessionD
escription>, public ScriptWrappable { |
| 43 DEFINE_WRAPPERTYPEINFO(); | 45 DEFINE_WRAPPERTYPEINFO(); |
| 44 public: | 46 public: |
| 45 static RTCSessionDescription* create(const RTCSessionDescriptionInit&); | 47 static RTCSessionDescription* create(const RTCSessionDescriptionInit&); |
| 46 static RTCSessionDescription* create(WebRTCSessionDescription); | 48 static RTCSessionDescription* create(WebRTCSessionDescription); |
| 47 | 49 |
| 48 String type(); | 50 String type(); |
| 49 void setType(const String&); | 51 void setType(const String&); |
| 50 | 52 |
| 51 String sdp(); | 53 String sdp(); |
| 52 void setSdp(const String&); | 54 void setSdp(const String&); |
| 53 | 55 |
| 56 ScriptValue toJSONForBinding(ScriptState*); |
| 57 |
| 54 WebRTCSessionDescription webSessionDescription(); | 58 WebRTCSessionDescription webSessionDescription(); |
| 55 | 59 |
| 56 DEFINE_INLINE_TRACE() { } | 60 DEFINE_INLINE_TRACE() { } |
| 57 | 61 |
| 58 private: | 62 private: |
| 59 explicit RTCSessionDescription(WebRTCSessionDescription); | 63 explicit RTCSessionDescription(WebRTCSessionDescription); |
| 60 | 64 |
| 61 WebRTCSessionDescription m_webSessionDescription; | 65 WebRTCSessionDescription m_webSessionDescription; |
| 62 }; | 66 }; |
| 63 | 67 |
| 64 } // namespace blink | 68 } // namespace blink |
| 65 | 69 |
| 66 #endif // RTCSessionDescription_h | 70 #endif // RTCSessionDescription_h |
| OLD | NEW |