blob: 1a2bf9134c567147fba0ad9230d70a1dbd019406 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
tommi@webrtc.org851becd2012-04-04 14:57:19 +00002 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00003 *
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#ifndef WEBRTC_VOICE_ENGINE_VOE_ENCRYPTION_IMPL_H
12#define WEBRTC_VOICE_ENGINE_VOE_ENCRYPTION_IMPL_H
13
14#include "voe_encryption.h"
15
niklase@google.com470e71d2011-07-07 08:21:25 +000016#include "shared_data.h"
17
18namespace webrtc {
19
tommi@webrtc.orga990e122012-04-26 15:28:22 +000020class VoEEncryptionImpl : public VoEEncryption
niklase@google.com470e71d2011-07-07 08:21:25 +000021{
22public:
niklase@google.com470e71d2011-07-07 08:21:25 +000023 // External encryption
24 virtual int RegisterExternalEncryption(
25 int channel,
26 Encryption& encryption);
27
28 virtual int DeRegisterExternalEncryption(int channel);
29
30protected:
tommi@webrtc.org851becd2012-04-04 14:57:19 +000031 VoEEncryptionImpl(voe::SharedData* shared);
niklase@google.com470e71d2011-07-07 08:21:25 +000032 virtual ~VoEEncryptionImpl();
tommi@webrtc.org851becd2012-04-04 14:57:19 +000033
34private:
35 voe::SharedData* _shared;
niklase@google.com470e71d2011-07-07 08:21:25 +000036};
37
38} // namespace webrtc
39
40#endif // #ifndef WEBRTC_VOICE_ENGINE_VOE_ENCRYPTION_IMPL_H