Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/RTCAudioSession.mm

Issue 2855023003: Move RTCAudioSession* files modules/audio_device/ -> sdk/Framework. (Closed)
Patch Set: Order imports Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #import "webrtc/modules/audio_device/ios/objc/RTCAudioSession.h" 11 #import "WebRTC/RTCAudioSession.h"
12 12
13 #import <UIKit/UIKit.h> 13 #import <UIKit/UIKit.h>
14 14
15 #include "webrtc/base/atomicops.h" 15 #include "webrtc/base/atomicops.h"
16 #include "webrtc/base/checks.h" 16 #include "webrtc/base/checks.h"
17 #include "webrtc/base/criticalsection.h" 17 #include "webrtc/base/criticalsection.h"
18 #include "webrtc/modules/audio_device/ios/audio_device_ios.h"
19 18
19
20 #import "WebRTC/RTCAudioSessionConfiguration.h"
20 #import "WebRTC/RTCLogging.h" 21 #import "WebRTC/RTCLogging.h"
21 #import "webrtc/modules/audio_device/ios/objc/RTCAudioSession+Private.h" 22
22 #import "webrtc/modules/audio_device/ios/objc/RTCAudioSessionConfiguration.h" 23 #import "RTCAudioSession+Private.h"
24
23 25
24 NSString * const kRTCAudioSessionErrorDomain = @"org.webrtc.RTCAudioSession"; 26 NSString * const kRTCAudioSessionErrorDomain = @"org.webrtc.RTCAudioSession";
25 NSInteger const kRTCAudioSessionErrorLockRequired = -1; 27 NSInteger const kRTCAudioSessionErrorLockRequired = -1;
26 NSInteger const kRTCAudioSessionErrorConfiguration = -2; 28 NSInteger const kRTCAudioSessionErrorConfiguration = -2;
27 29
28 // This class needs to be thread-safe because it is accessed from many threads. 30 // This class needs to be thread-safe because it is accessed from many threads.
29 // TODO(tkchin): Consider more granular locking. We're not expecting a lot of 31 // TODO(tkchin): Consider more granular locking. We're not expecting a lot of
30 // lock contention so coarse locks should be fine for now. 32 // lock contention so coarse locks should be fine for now.
31 @implementation RTCAudioSession { 33 @implementation RTCAudioSession {
32 rtc::CriticalSection _crit; 34 rtc::CriticalSection _crit;
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 - (void)notifyDidStopPlayOrRecord { 876 - (void)notifyDidStopPlayOrRecord {
875 for (auto delegate : self.delegates) { 877 for (auto delegate : self.delegates) {
876 SEL sel = @selector(audioSessionDidStopPlayOrRecord:); 878 SEL sel = @selector(audioSessionDidStopPlayOrRecord:);
877 if ([delegate respondsToSelector:sel]) { 879 if ([delegate respondsToSelector:sel]) {
878 [delegate audioSessionDidStopPlayOrRecord:self]; 880 [delegate audioSessionDidStopPlayOrRecord:self];
879 } 881 }
880 } 882 }
881 } 883 }
882 884
883 @end 885 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698