From ca20e7cfed301982986a4da23c819b4e50b5a6e9 Mon Sep 17 00:00:00 2001 From: nisse Date: Thu, 20 Oct 2016 02:52:58 -0700 Subject: [PATCH] Revert of Delete unused file mediacommon.h. (patchset #1 id:1 of https://codereview.webrtc.org/2437703002/ ) Reason for revert: Turned out this broke a downstream app. Reverting while investigating. Original issue's description: > Delete unused file mediacommon.h. > > BUG=None > > Committed: https://crrev.com/a34e796a1b59a1068c77a3e36d2a24fd37c08afc > Cr-Commit-Position: refs/heads/master@{#14689} TBR=magjed@webrtc.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=None Review-Url: https://codereview.webrtc.org/2441493003 Cr-Commit-Position: refs/heads/master@{#14697} --- webrtc/media/BUILD.gn | 1 + webrtc/media/base/mediacommon.h | 27 +++++++++++++++++++++++++++ webrtc/media/base/mediaengine.h | 1 + webrtc/media/media.gyp | 1 + 4 files changed, 30 insertions(+) create mode 100644 webrtc/media/base/mediacommon.h diff --git a/webrtc/media/BUILD.gn b/webrtc/media/BUILD.gn index e3a658c3f8..804bd100fa 100644 --- a/webrtc/media/BUILD.gn +++ b/webrtc/media/BUILD.gn @@ -56,6 +56,7 @@ rtc_static_library("rtc_media") { "base/device.h", "base/hybriddataengine.h", "base/mediachannel.h", + "base/mediacommon.h", "base/mediaconstants.cc", "base/mediaconstants.h", "base/mediaengine.cc", diff --git a/webrtc/media/base/mediacommon.h b/webrtc/media/base/mediacommon.h new file mode 100644 index 0000000000..c760463b8c --- /dev/null +++ b/webrtc/media/base/mediacommon.h @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. + * + * 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. + */ + +#ifndef WEBRTC_MEDIA_BASE_MEDIACOMMON_H_ +#define WEBRTC_MEDIA_BASE_MEDIACOMMON_H_ + +#include "webrtc/base/stringencode.h" + +namespace cricket { + +enum MediaCapabilities { + AUDIO_RECV = 1 << 0, + AUDIO_SEND = 1 << 1, + VIDEO_RECV = 1 << 2, + VIDEO_SEND = 1 << 3, +}; + +} // namespace cricket + +#endif // WEBRTC_MEDIA_BASE_MEDIACOMMON_H_ diff --git a/webrtc/media/base/mediaengine.h b/webrtc/media/base/mediaengine.h index d1d162370d..866898cbfa 100644 --- a/webrtc/media/base/mediaengine.h +++ b/webrtc/media/base/mediaengine.h @@ -24,6 +24,7 @@ #include "webrtc/base/sigslotrepeater.h" #include "webrtc/media/base/codec.h" #include "webrtc/media/base/mediachannel.h" +#include "webrtc/media/base/mediacommon.h" #include "webrtc/media/base/videocommon.h" #include "webrtc/modules/audio_coding/codecs/audio_decoder_factory.h" diff --git a/webrtc/media/media.gyp b/webrtc/media/media.gyp index af74801ae1..c18e3113a7 100644 --- a/webrtc/media/media.gyp +++ b/webrtc/media/media.gyp @@ -35,6 +35,7 @@ 'base/device.h', 'base/hybriddataengine.h', 'base/mediachannel.h', + 'base/mediacommon.h', 'base/mediaconstants.cc', 'base/mediaconstants.h', 'base/mediaengine.cc',