summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection.h')
-rw-r--r--chromium/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/chromium/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection.h b/chromium/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection.h
index 4e9fb847e5f..241dc8e4c62 100644
--- a/chromium/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection.h
+++ b/chromium/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection.h
@@ -68,7 +68,7 @@ class RTCDtlsTransport;
class RTCDTMFSender;
class RTCDataChannel;
class RTCDataChannelInit;
-class RTCIceCandidateInitOrRTCIceCandidate;
+class RTCIceCandidateInit;
class RTCIceTransport;
class RTCOfferOptions;
class RTCPeerConnectionTest;
@@ -103,8 +103,7 @@ enum class SdpUsageCategory {
};
MODULES_EXPORT SdpUsageCategory
-DeduceSdpUsageCategory(const String& sdp_type,
- const String& sdp,
+DeduceSdpUsageCategory(const ParsedSessionDescription& parsed_sdp,
bool sdp_semantics_specified,
webrtc::SdpSemantics sdp_semantics);
@@ -212,10 +211,10 @@ class MODULES_EXPORT RTCPeerConnection final
ExceptionState&);
ScriptPromise addIceCandidate(ScriptState*,
- const RTCIceCandidateInitOrRTCIceCandidate&,
+ const RTCIceCandidateInit*,
ExceptionState&);
ScriptPromise addIceCandidate(ScriptState*,
- const RTCIceCandidateInitOrRTCIceCandidate&,
+ const RTCIceCandidateInit*,
V8VoidFunction*,
V8RTCPeerConnectionErrorCallback*,
ExceptionState&);
@@ -319,9 +318,8 @@ class MODULES_EXPORT RTCPeerConnection final
kSetLocalDescription,
kSetRemoteDescription,
};
- void ReportSetSdpUsage(
- SetSdpOperationType operation_type,
- const RTCSessionDescriptionInit* session_description_init) const;
+ void ReportSetSdpUsage(SetSdpOperationType operation_type,
+ const ParsedSessionDescription& parsed_sdp) const;
// MediaStreamObserver
void OnStreamAddTrack(MediaStream*, MediaStreamTrack*) override;
@@ -389,7 +387,7 @@ class MODULES_EXPORT RTCPeerConnection final
// explicitly specifying the SDP format, there may be errors if the
// application assumes a format that differs from the actual default format.
base::Optional<ComplexSdpCategory> CheckForComplexSdp(
- const RTCSessionDescriptionInit* session_description_init) const;
+ const ParsedSessionDescription&) const;
const CallSetupStateTracker& call_setup_state_tracker() const;
void NoteCallSetupStateEventPending(
@@ -568,16 +566,18 @@ class MODULES_EXPORT RTCPeerConnection final
void CloseInternal();
- void RecordRapporMetrics();
-
DOMException* checkSdpForStateErrors(ExecutionContext*,
- const RTCSessionDescriptionInit*,
- String* sdp);
- void MaybeWarnAboutUnsafeSdp(
- const RTCSessionDescriptionInit* session_description_init) const;
+ const ParsedSessionDescription&);
+ void RecordSdpCategoryAndMaybeEmitWarnings(
+ const ParsedSessionDescription&) const;
HeapHashSet<Member<RTCIceTransport>> ActiveIceTransports() const;
+ // Disables the back-forward cache usage. This is called when it becomes
+ // possible for a connection to happen, as a page with connections cannot be
+ // put into the cache so far.
+ void DisableBackForwardCache(ExecutionContext* context);
+
Member<RTCSessionDescription> pending_local_description_;
Member<RTCSessionDescription> current_local_description_;
Member<RTCSessionDescription> pending_remote_description_;
@@ -660,7 +660,7 @@ class MODULES_EXPORT RTCPeerConnection final
String last_answer_;
Member<RTCSctpTransport> sctp_transport_;
- bool has_data_channels_; // For RAPPOR metrics
+
// In Plan B, senders and receivers are added or removed independently of one
// another. In Unified Plan, senders and receivers are created in pairs as
// transceivers. Transceivers may become inactive, but are never removed.