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 19 matching lines...) Expand all Loading... |
30 | 30 |
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 ExecutionContext; |
40 class RTCSessionDescriptionInit; | 41 class RTCSessionDescriptionInit; |
41 class ScriptState; | 42 class ScriptState; |
42 class ScriptValue; | 43 class ScriptValue; |
43 | 44 |
44 class RTCSessionDescription final | 45 class RTCSessionDescription final |
45 : public GarbageCollectedFinalized<RTCSessionDescription>, | 46 : public GarbageCollectedFinalized<RTCSessionDescription>, |
46 public ScriptWrappable { | 47 public ScriptWrappable { |
47 DEFINE_WRAPPERTYPEINFO(); | 48 DEFINE_WRAPPERTYPEINFO(); |
48 | 49 |
49 public: | 50 public: |
50 static RTCSessionDescription* create(const RTCSessionDescriptionInit&); | 51 static RTCSessionDescription* create(ExecutionContext*, |
| 52 const RTCSessionDescriptionInit&); |
51 static RTCSessionDescription* create(WebRTCSessionDescription); | 53 static RTCSessionDescription* create(WebRTCSessionDescription); |
52 | 54 |
53 String type(); | 55 String type(); |
54 void setType(const String&); | 56 void setType(const String&); |
55 | 57 |
56 String sdp(); | 58 String sdp(); |
57 void setSdp(const String&); | 59 void setSdp(const String&); |
58 | 60 |
59 ScriptValue toJSONForBinding(ScriptState*); | 61 ScriptValue toJSONForBinding(ScriptState*); |
60 | 62 |
61 WebRTCSessionDescription webSessionDescription(); | 63 WebRTCSessionDescription webSessionDescription(); |
62 | 64 |
63 DEFINE_INLINE_TRACE() {} | 65 DEFINE_INLINE_TRACE() {} |
64 | 66 |
65 private: | 67 private: |
66 explicit RTCSessionDescription(WebRTCSessionDescription); | 68 explicit RTCSessionDescription(WebRTCSessionDescription); |
67 | 69 |
68 WebRTCSessionDescription m_webSessionDescription; | 70 WebRTCSessionDescription m_webSessionDescription; |
69 }; | 71 }; |
70 | 72 |
71 } // namespace blink | 73 } // namespace blink |
72 | 74 |
73 #endif // RTCSessionDescription_h | 75 #endif // RTCSessionDescription_h |
OLD | NEW |