blob: 608a5abade3bb89e65958dc6f6e647b60ebe3bbc [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +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
mflodman@webrtc.orge06ca3c2012-06-29 13:20:14 +000011#ifndef WEBRTC_VIDEO_ENGINE_VIE_ENCRYPTION_IMPL_H_
12#define WEBRTC_VIDEO_ENGINE_VIE_ENCRYPTION_IMPL_H_
niklase@google.com470e71d2011-07-07 08:21:25 +000013
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +000014#include "typedefs.h" // NOLINT
mflodman@webrtc.orga4863db2011-12-22 08:51:52 +000015#include "video_engine/include/vie_encryption.h"
mflodman@webrtc.orgc12686c2011-12-21 09:29:28 +000016#include "video_engine/vie_ref_count.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000017
mflodman@webrtc.orgc12686c2011-12-21 09:29:28 +000018namespace webrtc {
niklase@google.com470e71d2011-07-07 08:21:25 +000019
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000020class ViESharedData;
21
mflodman@webrtc.orgc12686c2011-12-21 09:29:28 +000022class ViEEncryptionImpl
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000023 : public ViEEncryption,
mflodman@webrtc.orgc12686c2011-12-21 09:29:28 +000024 public ViERefCount {
25 public:
26 virtual int Release();
niklase@google.com470e71d2011-07-07 08:21:25 +000027
mflodman@webrtc.orgc12686c2011-12-21 09:29:28 +000028 // Implements ViEEncryption.
29 virtual int RegisterExternalEncryption(const int video_channel,
30 Encryption& encryption);
31 virtual int DeregisterExternalEncryption(const int video_channel);
niklase@google.com470e71d2011-07-07 08:21:25 +000032
mflodman@webrtc.orgc12686c2011-12-21 09:29:28 +000033 protected:
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +000034 explicit ViEEncryptionImpl(ViESharedData* shared_data);
mflodman@webrtc.orgc12686c2011-12-21 09:29:28 +000035 virtual ~ViEEncryptionImpl();
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000036
37 private:
38 ViESharedData* shared_data_;
niklase@google.com470e71d2011-07-07 08:21:25 +000039};
mflodman@webrtc.orgc12686c2011-12-21 09:29:28 +000040
41} // namespace webrtc
42
mflodman@webrtc.orge06ca3c2012-06-29 13:20:14 +000043#endif // WEBRTC_VIDEO_ENGINE_VIE_ENCRYPTION_IMPL_H_