2011-07-07 08:21:25 +00:00
|
|
|
/*
|
2012-06-21 10:02:13 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
|
2012-06-29 13:20:14 +00:00
|
|
|
#ifndef WEBRTC_VIDEO_ENGINE_VIE_ENCRYPTION_IMPL_H_
|
|
|
|
|
#define WEBRTC_VIDEO_ENGINE_VIE_ENCRYPTION_IMPL_H_
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2013-05-17 13:44:48 +00:00
|
|
|
#include "webrtc/typedefs.h"
|
|
|
|
|
#include "webrtc/video_engine/include/vie_encryption.h"
|
|
|
|
|
#include "webrtc/video_engine/vie_ref_count.h"
|
2011-12-21 09:29:28 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2012-01-25 13:42:03 +00:00
|
|
|
class ViESharedData;
|
|
|
|
|
|
2011-12-21 09:29:28 +00:00
|
|
|
class ViEEncryptionImpl
|
2012-01-25 13:42:03 +00:00
|
|
|
: public ViEEncryption,
|
2011-12-21 09:29:28 +00:00
|
|
|
public ViERefCount {
|
|
|
|
|
public:
|
|
|
|
|
virtual int Release();
|
|
|
|
|
|
|
|
|
|
// Implements ViEEncryption.
|
|
|
|
|
virtual int RegisterExternalEncryption(const int video_channel,
|
|
|
|
|
Encryption& encryption);
|
|
|
|
|
virtual int DeregisterExternalEncryption(const int video_channel);
|
|
|
|
|
|
|
|
|
|
protected:
|
2012-06-21 10:02:13 +00:00
|
|
|
explicit ViEEncryptionImpl(ViESharedData* shared_data);
|
2011-12-21 09:29:28 +00:00
|
|
|
virtual ~ViEEncryptionImpl();
|
2012-01-25 13:42:03 +00:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
ViESharedData* shared_data_;
|
2011-12-21 09:29:28 +00:00
|
|
|
};
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2011-12-21 09:29:28 +00:00
|
|
|
} // namespace webrtc
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2012-06-29 13:20:14 +00:00
|
|
|
#endif // WEBRTC_VIDEO_ENGINE_VIE_ENCRYPTION_IMPL_H_
|