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

Side by Side Diff: webrtc/modules/audio_device/ios/objc/RTCAudioSessionDelegateAdapter.h

Issue 1796983004: Use RTCAudioSessionDelegate in AudioDeviceIOS. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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
(Empty)
1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #import "webrtc/modules/audio_device/ios/objc/RTCAudioSession.h"
12
13 namespace webrtc {
14 class AudioDeviceIOS;
15 }
16
17 namespace rtc {
18 class Thread;
19 }
20
21 /** Adapter that forwards RTCAudioSessionDelegate calls to the appropriate
22 * methods on the audio device. In addition, calls those methods async on the
23 * thread supplied during construction.
24 */
25 @interface RTCAudioSessionDelegateAdapter : NSObject <RTCAudioSessionDelegate>
26
27 - (instancetype)init NS_UNAVAILABLE;
28
29 /** Audio device and callback thread are raw pointers and should be kept alive
henrika_webrtc 2016/03/15 08:53:44 Are there any restrictions on the thread here in o
tkchin_webrtc 2016/03/15 20:14:58 Good pt. Edited interfaces a bit.
30 * for this object's lifetime.
31 */
32 - (instancetype)initWithAudioDevice:(webrtc::AudioDeviceIOS *)device
33 callbackThread:(rtc::Thread *)callbackThread
34 NS_DESIGNATED_INITIALIZER;
35
36 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698