Export symbols needed by the Chromium component build (part 7).

This CL uses RTC_EXPORT (defined in rtc_base/system/rtc_export.h)
to mark WebRTC symbols as visible from a shared library, this doesn't
mean these symbols are part of the public API (please continue to refer
to [1] for info about what is considered public WebRTC API).

[1] - https://webrtc.googlesource.com/src/+/HEAD/native-api.md

Bug: webrtc:9419
Change-Id: I1081af5ecf7ba55a7415e09e45357b783cf300aa
Reviewed-on: https://webrtc-review.googlesource.com/c/107708
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25358}
This commit is contained in:
Mirko Bonadei 2018-10-24 16:22:04 +02:00 committed by Commit Bot
parent 3eb1c72bb6
commit 977b46a59b
6 changed files with 15 additions and 8 deletions

View File

@ -47,6 +47,7 @@ rtc_source_set("video_frame_i420") {
"../../rtc_base:checks",
"../../rtc_base:rtc_base",
"../../rtc_base/memory:aligned_malloc",
"../../rtc_base/system:rtc_export",
"//third_party/libyuv",
]
}

View File

@ -18,11 +18,12 @@
#include "api/video/video_rotation.h"
#include "rtc_base/memory/aligned_malloc.h"
#include "rtc_base/scoped_ref_ptr.h"
#include "rtc_base/system/rtc_export.h"
namespace webrtc {
// Plain I420 buffer in standard memory.
class I420Buffer : public I420BufferInterface {
class RTC_EXPORT I420Buffer : public I420BufferInterface {
public:
static rtc::scoped_refptr<I420Buffer> Create(int width, int height);
static rtc::scoped_refptr<I420Buffer> Create(int width,

View File

@ -26,7 +26,7 @@ namespace webrtc {
struct CodecSpecificInfo;
class VideoCodec;
class DecodedImageCallback {
class RTC_EXPORT DecodedImageCallback {
public:
virtual ~DecodedImageCallback() {}

View File

@ -22,6 +22,8 @@
#include <string>
#include "rtc_base/system/rtc_export.h"
namespace cricket {
class Candidate;
} // namespace cricket
@ -46,7 +48,8 @@ std::string SdpSerializeCandidate(const IceCandidateInterface& candidate);
// Serializes a cricket Candidate.
// candidate - The candidate to be serialized.
std::string SdpSerializeCandidate(const cricket::Candidate& candidate);
RTC_EXPORT std::string SdpSerializeCandidate(
const cricket::Candidate& candidate);
// Deserializes the passed in SDP string to a JsepSessionDescription.
// message - SDP string to be Deserialized.
@ -76,10 +79,10 @@ bool SdpDeserializeCandidate(const std::string& message,
// candidate - The cricket Candidate from the SDP string.
// error - The detail error information when parsing fails.
// return - true on success, false on failure.
bool SdpDeserializeCandidate(const std::string& transport_name,
const std::string& message,
cricket::Candidate* candidate,
SdpParseError* error);
RTC_EXPORT bool SdpDeserializeCandidate(const std::string& transport_name,
const std::string& message,
cricket::Candidate* candidate,
SdpParseError* error);
} // namespace webrtc

View File

@ -40,6 +40,7 @@ rtc_source_set("rtc_stats_test_utils") {
deps = [
":rtc_stats",
"../api:rtc_stats_api",
"../rtc_base/system:rtc_export",
]
}

View File

@ -15,10 +15,11 @@
#include <vector>
#include "api/stats/rtcstats.h"
#include "rtc_base/system/rtc_export.h"
namespace webrtc {
class RTCTestStats : public RTCStats {
class RTC_EXPORT RTCTestStats : public RTCStats {
public:
WEBRTC_RTCSTATS_DECL();