| Index: Source/modules/mediastream/RTCCertificate.h
|
| diff --git a/Source/modules/mediastream/RTCSessionDescription.h b/Source/modules/mediastream/RTCCertificate.h
|
| similarity index 64%
|
| copy from Source/modules/mediastream/RTCSessionDescription.h
|
| copy to Source/modules/mediastream/RTCCertificate.h
|
| index 2ef5d77cf9e5c3273e5746f9ec1f4dbda533ac65..04d6cb8932cd1802ae36af8e64b2a73a9e22cac5 100644
|
| --- a/Source/modules/mediastream/RTCSessionDescription.h
|
| +++ b/Source/modules/mediastream/RTCCertificate.h
|
| @@ -1,5 +1,5 @@
|
| /*
|
| - * Copyright (C) 2012 Google Inc. All rights reserved.
|
| + * Copyright (C) 2015 Google Inc. All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions
|
| @@ -28,43 +28,38 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef RTCSessionDescription_h
|
| -#define RTCSessionDescription_h
|
| +#ifndef RTCCertificate_h
|
| +#define RTCCertificate_h
|
|
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| -#include "public/platform/WebRTCSessionDescription.h"
|
| -#include "wtf/Forward.h"
|
| +#include "platform/heap/GarbageCollected.h"
|
| +#include "public/platform/WebRTCCertificate.h"
|
| +#include "wtf/OwnPtr.h"
|
|
|
| namespace blink {
|
|
|
| -class RTCSessionDescriptionInit;
|
| -class ScriptState;
|
| -class ScriptValue;
|
| -
|
| -class RTCSessionDescription final : public GarbageCollectedFinalized<RTCSessionDescription>, public ScriptWrappable {
|
| +class RTCCertificate final : public GarbageCollectedFinalized<RTCCertificate>, public ScriptWrappable {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| - static RTCSessionDescription* create(const RTCSessionDescriptionInit&);
|
| - static RTCSessionDescription* create(WebRTCSessionDescription);
|
| + // Visible to the JavaScript world in accordance with the .idl file:
|
|
|
| - String type();
|
| - void setType(const String&);
|
| + double expires() const;
|
|
|
| - String sdp();
|
| - void setSdp(const String&);
|
| + // Hidden from the JavaScript world:
|
|
|
| - ScriptValue toJSONForBinding(ScriptState*);
|
| + // Takes ownership of |certificate|.
|
| + RTCCertificate(WebRTCCertificate* /*certificate*/);
|
|
|
| - WebRTCSessionDescription webSessionDescription();
|
| + // Returns a new WebRTCCertificate that the caller is responsible for
|
| + // deleting.
|
| + WebRTCCertificate* certificateShallowCopy() const;
|
|
|
| - DEFINE_INLINE_TRACE() { }
|
| + DEFINE_INLINE_TRACE() {}
|
|
|
| private:
|
| - explicit RTCSessionDescription(WebRTCSessionDescription);
|
| -
|
| - WebRTCSessionDescription m_webSessionDescription;
|
| + OwnPtr<WebRTCCertificate> m_certificate;
|
| };
|
|
|
| } // namespace blink
|
|
|
| -#endif // RTCSessionDescription_h
|
| +#endif // RTCCertificate_h
|
|
|