| Index: Source/platform/mediastream/RTCConfiguration.h
|
| diff --git a/Source/platform/mediastream/RTCConfiguration.h b/Source/platform/mediastream/RTCConfiguration.h
|
| index e64b7f40a7995e18667ee795ae849f4706ed6522..014052b87af0483c8a36456b857dcb0cb68a3f88 100644
|
| --- a/Source/platform/mediastream/RTCConfiguration.h
|
| +++ b/Source/platform/mediastream/RTCConfiguration.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
|
| @@ -33,6 +33,7 @@
|
|
|
| #include "platform/heap/Handle.h"
|
| #include "platform/weborigin/KURL.h"
|
| +#include "public/platform/WebRTCCertificate.h"
|
| #include "wtf/PassRefPtr.h"
|
| #include "wtf/Vector.h"
|
| #include "wtf/text/WTFString.h"
|
| @@ -82,10 +83,12 @@ enum RTCRtcpMuxPolicy {
|
| RTCRtcpMuxPolicyRequire
|
| };
|
|
|
| -class RTCConfiguration final : public GarbageCollected<RTCConfiguration> {
|
| +class PLATFORM_EXPORT RTCConfiguration final : public GarbageCollectedFinalized<RTCConfiguration> {
|
| public:
|
| static RTCConfiguration* create() { return new RTCConfiguration(); }
|
|
|
| + ~RTCConfiguration();
|
| +
|
| void appendServer(RTCIceServer* server) { m_servers.append(server); }
|
| size_t numberOfServers() { return m_servers.size(); }
|
| RTCIceServer* server(size_t index) { return m_servers[index].get(); }
|
| @@ -95,6 +98,9 @@ public:
|
| RTCBundlePolicy bundlePolicy() { return m_bundlePolicy; }
|
| void setRtcpMuxPolicy(RTCRtcpMuxPolicy rtcpMuxPolicy) { m_rtcpMuxPolicy = rtcpMuxPolicy; }
|
| RTCRtcpMuxPolicy rtcpMuxPolicy() { return m_rtcpMuxPolicy; }
|
| + void appendCertificate(WebRTCCertificate* certificate) { m_certificates.append(certificate); }
|
| + size_t numberOfCertificates() const { return m_certificates.size(); }
|
| + WebRTCCertificate* certificate(size_t index) const { return m_certificates[index]; }
|
|
|
| DEFINE_INLINE_TRACE() { visitor->trace(m_servers); }
|
|
|
| @@ -108,6 +114,7 @@ private:
|
| RTCIceTransports m_iceTransports;
|
| RTCBundlePolicy m_bundlePolicy;
|
| RTCRtcpMuxPolicy m_rtcpMuxPolicy;
|
| + Vector<WebRTCCertificate*> m_certificates;
|
| };
|
|
|
| } // namespace blink
|
|
|