Revert ObjC API changes for BWE allocation strategy
The ObjC API (the files in sdk/objc/Framework/Headers/WebRTC/) needs to be pure ObjC. The changes that are reverted here introduced C++ which turns it into ObjC++. We don't have a test protectcing this right now, but it's probably something we should add to catch changes like this in the future. TBR=alexnarest@webrtc.org,deadbeef@webrtc.org Bug: webrtc:8243 Change-Id: Idea688f4014cd44c27cf2cb2a5ec8a9ea7da3c00 Reviewed-on: https://webrtc-review.googlesource.com/16429 Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20463}
This commit is contained in:
committed by
Commit Bot
parent
b0576ecc71
commit
293158b707
@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by a BSD-style license
|
||||
* that can be found in the LICENSE file in the root of the source
|
||||
* tree. An additional intellectual property rights grant can be found
|
||||
* in the file PATENTS. All contributing project authors may
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#import "WebRTC/RTCBitrateAllocationStrategy.h"
|
||||
|
||||
#include "rtc_base/bitrateallocationstrategy.h"
|
||||
#include "rtc_base/checks.h"
|
||||
|
||||
@implementation RTCBitrateAllocationStrategy
|
||||
|
||||
@synthesize strategy = _strategy;
|
||||
|
||||
- (instancetype)initWith:(rtc::BitrateAllocationStrategy*)strategy {
|
||||
RTC_DCHECK(strategy);
|
||||
if (self = [super init]) {
|
||||
_strategy = strategy;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
@ -21,7 +21,6 @@
|
||||
#import "RTCRtpReceiver+Private.h"
|
||||
#import "RTCRtpSender+Private.h"
|
||||
#import "RTCSessionDescription+Private.h"
|
||||
#import "WebRTC/RTCBitrateAllocationStrategy.h"
|
||||
#import "WebRTC/RTCLogging.h"
|
||||
|
||||
#include <memory>
|
||||
@ -386,15 +385,6 @@ void PeerConnectionDelegateAdapter::OnIceCandidatesRemoved(
|
||||
return _peerConnection->SetBitrate(params).ok();
|
||||
}
|
||||
|
||||
- (void)setBitrateAllocationStrategy:
|
||||
(RTCBitrateAllocationStrategy *_Nullable)bitrateAllocationStrategy {
|
||||
if (bitrateAllocationStrategy)
|
||||
_peerConnection->SetBitrateAllocationStrategy(
|
||||
std::unique_ptr<rtc::BitrateAllocationStrategy>(bitrateAllocationStrategy.strategy));
|
||||
else
|
||||
_peerConnection->SetBitrateAllocationStrategy(nullptr);
|
||||
}
|
||||
|
||||
- (BOOL)startRtcEventLogWithFilePath:(NSString *)filePath
|
||||
maxSizeInBytes:(int64_t)maxSizeInBytes {
|
||||
RTC_DCHECK(filePath.length);
|
||||
|
||||
Reference in New Issue
Block a user