Add RTC_ prefix to contructormagic macros.

We must remove dependency on Chromium, i.e. we can't use Chromium's base/logging.h. That means we need to define these macros in WebRTC also when doing Chromium builds. And this causes redefinition.

* DISALLOW_ASSIGN -> RTC_DISALLOW_ASSIGN
* DISALLOW_COPY_AND_ASSIGN -> RTC_DISALLOW_COPY_AND_ASSIGN
* DISALLOW_IMPLICIT_CONSTRUCTORS -> RTC_DISALLOW_IMPLICIT_CONSTRUCTORS

Related CL: https://codereview.webrtc.org/1335923002/

BUG=chromium:468375
NOTRY=true

Review URL: https://codereview.webrtc.org/1345433002

Cr-Commit-Position: refs/heads/master@{#9953}
This commit is contained in:
henrikg
2015-09-16 05:37:44 -07:00
committed by Commit bot
parent afb6b5e3e0
commit 3c089d751e
258 changed files with 411 additions and 418 deletions

View File

@ -116,7 +116,7 @@ class DtmfSender
int duration_;
int inter_tone_gap_;
DISALLOW_COPY_AND_ASSIGN(DtmfSender);
RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender);
};
// Define proxy for DtmfSenderInterface.

View File

@ -102,7 +102,7 @@ private:
static jobject application_context_;
DISALLOW_COPY_AND_ASSIGN(AndroidVideoCapturerJni);
RTC_DISALLOW_COPY_AND_ASSIGN(AndroidVideoCapturerJni);
};
} // namespace webrtc_jni

View File

@ -63,7 +63,7 @@ class JsepIceCandidate : public IceCandidateInterface {
int sdp_mline_index_;
cricket::Candidate candidate_;
DISALLOW_COPY_AND_ASSIGN(JsepIceCandidate);
RTC_DISALLOW_COPY_AND_ASSIGN(JsepIceCandidate);
};
// Implementation of IceCandidateCollection.

View File

@ -98,7 +98,7 @@ class JsepSessionDescription : public SessionDescriptionInterface {
bool GetMediasectionIndex(const IceCandidateInterface* candidate,
size_t* index);
DISALLOW_COPY_AND_ASSIGN(JsepSessionDescription);
RTC_DISALLOW_COPY_AND_ASSIGN(JsepSessionDescription);
};
} // namespace webrtc

View File

@ -74,7 +74,7 @@ class MediaController : public webrtc::MediaControllerInterface {
rtc::Thread* worker_thread_;
rtc::scoped_ptr<webrtc::Call> call_;
DISALLOW_IMPLICIT_CONSTRUCTORS(MediaController);
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(MediaController);
};
} // namespace {

View File

@ -57,7 +57,7 @@ class RemoteVideoCapturer : public cricket::VideoCapturer {
bool IsScreencast() const override;
private:
DISALLOW_COPY_AND_ASSIGN(RemoteVideoCapturer);
RTC_DISALLOW_COPY_AND_ASSIGN(RemoteVideoCapturer);
};
} // namespace webrtc

View File

@ -321,7 +321,7 @@ class StatsReport {
} value_;
private:
DISALLOW_COPY_AND_ASSIGN(Value);
RTC_DISALLOW_COPY_AND_ASSIGN(Value);
};
// TODO(tommi): Consider using a similar approach to how we store Ids using
@ -371,7 +371,7 @@ class StatsReport {
double timestamp_; // Time since 1970-01-01T00:00:00Z in milliseconds.
Values values_;
DISALLOW_COPY_AND_ASSIGN(StatsReport);
RTC_DISALLOW_COPY_AND_ASSIGN(StatsReport);
};
// Typedef for an array of const StatsReport pointers.

View File

@ -321,7 +321,7 @@ class FrameInputWrapper : public cricket::VideoRenderer {
int width_;
int height_;
DISALLOW_COPY_AND_ASSIGN(FrameInputWrapper);
RTC_DISALLOW_COPY_AND_ASSIGN(FrameInputWrapper);
};
} // anonymous namespace

View File

@ -107,7 +107,7 @@ class IceObserver {
~IceObserver() {}
private:
DISALLOW_COPY_AND_ASSIGN(IceObserver);
RTC_DISALLOW_COPY_AND_ASSIGN(IceObserver);
};
class WebRtcSession : public cricket::BaseSession,
@ -414,7 +414,7 @@ class WebRtcSession : public cricket::BaseSession,
// Declares the RTCP mux policy for the WebRTCSession.
PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_;
DISALLOW_COPY_AND_ASSIGN(WebRtcSession);
RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession);
};
} // namespace webrtc

View File

@ -197,7 +197,7 @@ class WebRtcSessionDescriptionFactory : public rtc::MessageHandler,
const cricket::DataChannelType data_channel_type_;
CertificateRequestState certificate_request_state_;
DISALLOW_COPY_AND_ASSIGN(WebRtcSessionDescriptionFactory);
RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSessionDescriptionFactory);
};
} // namespace webrtc

View File

@ -28,7 +28,7 @@
#ifndef TALK_MEDIA_BASE_CPUID_H_
#define TALK_MEDIA_BASE_CPUID_H_
#include "webrtc/base/basictypes.h" // For DISALLOW_IMPLICIT_CONSTRUCTORS
#include "webrtc/base/basictypes.h" // For RTC_DISALLOW_IMPLICIT_CONSTRUCTORS
namespace cricket {
@ -65,7 +65,7 @@ class CpuInfo {
static void MaskCpuFlagsForTest(int enable_flags);
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(CpuInfo);
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CpuInfo);
};
// Detect an Intel Core I5 or better such as 4th generation Macbook Air.

View File

@ -133,7 +133,7 @@ class RtpDumpReader {
uint32 start_time_ms_;
uint32 ssrc_override_;
DISALLOW_COPY_AND_ASSIGN(RtpDumpReader);
RTC_DISALLOW_COPY_AND_ASSIGN(RtpDumpReader);
};
// RtpDumpLoopReader reads RTP dump packets from the input stream and rewinds
@ -181,7 +181,7 @@ class RtpDumpLoopReader : public RtpDumpReader {
int prev_rtp_seq_num_;
uint32 prev_rtp_timestamp_;
DISALLOW_COPY_AND_ASSIGN(RtpDumpLoopReader);
RTC_DISALLOW_COPY_AND_ASSIGN(RtpDumpLoopReader);
};
class RtpDumpWriter {
@ -225,7 +225,7 @@ class RtpDumpWriter {
uint32 start_time_ms_; // Time when the record starts.
// If writing to the stream takes longer than this many ms, log a warning.
uint32 warn_slow_writes_delay_;
DISALLOW_COPY_AND_ASSIGN(RtpDumpWriter);
RTC_DISALLOW_COPY_AND_ASSIGN(RtpDumpWriter);
};
} // namespace cricket

View File

@ -246,7 +246,7 @@ struct MediaStreams {
std::vector<StreamParams> video_;
std::vector<StreamParams> data_;
DISALLOW_COPY_AND_ASSIGN(MediaStreams);
RTC_DISALLOW_COPY_AND_ASSIGN(MediaStreams);
};
// A request for a specific format of a specific stream.

View File

@ -92,7 +92,7 @@ class VideoAdapter {
// The critical section to protect the above variables.
rtc::CriticalSection critical_section_;
DISALLOW_COPY_AND_ASSIGN(VideoAdapter);
RTC_DISALLOW_COPY_AND_ASSIGN(VideoAdapter);
};
// CoordinatedVideoAdapter adapts the video input to the encoder by coordinating
@ -201,7 +201,7 @@ class CoordinatedVideoAdapter
// adaptation is on), but only used if cpu_smoothing_ is set.
float system_load_average_;
DISALLOW_COPY_AND_ASSIGN(CoordinatedVideoAdapter);
RTC_DISALLOW_COPY_AND_ASSIGN(CoordinatedVideoAdapter);
};
} // namespace cricket

View File

@ -104,7 +104,7 @@ struct CapturedFrame {
// memory or points to an existing memory.
private:
DISALLOW_COPY_AND_ASSIGN(CapturedFrame);
RTC_DISALLOW_COPY_AND_ASSIGN(CapturedFrame);
};
// VideoCapturer is an abstract class that defines the interfaces for video
@ -397,7 +397,7 @@ class VideoCapturer
// Whether capturer should apply rotation to the frame before signaling it.
bool apply_rotation_;
DISALLOW_COPY_AND_ASSIGN(VideoCapturer);
RTC_DISALLOW_COPY_AND_ASSIGN(VideoCapturer);
};
} // namespace cricket

View File

@ -97,7 +97,7 @@ class YuvFrameGenerator {
int barcode_start_x_;
int barcode_start_y_;
DISALLOW_COPY_AND_ASSIGN(YuvFrameGenerator);
RTC_DISALLOW_COPY_AND_ASSIGN(YuvFrameGenerator);
};
} // namespace cricket

View File

@ -150,7 +150,7 @@ class FileVideoCapturer::FileReadThread
mutable rtc::CriticalSection crit_;
bool finished_;
DISALLOW_COPY_AND_ASSIGN(FileReadThread);
RTC_DISALLOW_COPY_AND_ASSIGN(FileReadThread);
};
/////////////////////////////////////////////////////////////////////

View File

@ -71,7 +71,7 @@ class VideoRecorder {
rtc::FileStream video_file_;
bool write_header_;
DISALLOW_COPY_AND_ASSIGN(VideoRecorder);
RTC_DISALLOW_COPY_AND_ASSIGN(VideoRecorder);
};
// Simulated video capturer that periodically reads frames from a file.
@ -153,7 +153,7 @@ class FileVideoCapturer : public VideoCapturer {
int64 last_frame_timestamp_ns_; // Timestamp of last read frame.
bool ignore_framerate_;
DISALLOW_COPY_AND_ASSIGN(FileVideoCapturer);
RTC_DISALLOW_COPY_AND_ASSIGN(FileVideoCapturer);
};
} // namespace cricket

View File

@ -88,7 +88,7 @@ class YuvFramesCapturer::YuvFramesThread
mutable rtc::CriticalSection crit_;
bool finished_;
DISALLOW_COPY_AND_ASSIGN(YuvFramesThread);
RTC_DISALLOW_COPY_AND_ASSIGN(YuvFramesThread);
};
/////////////////////////////////////////////////////////////////////

View File

@ -90,7 +90,7 @@ class YuvFramesCapturer : public VideoCapturer {
int32 barcode_interval_;
int32 GetBarcodeValue();
DISALLOW_COPY_AND_ASSIGN(YuvFramesCapturer);
RTC_DISALLOW_COPY_AND_ASSIGN(YuvFramesCapturer);
};
} // namespace cricket

View File

@ -245,7 +245,7 @@ class SrtpSession {
static bool inited_;
static rtc::GlobalLockPod lock_;
int last_send_seq_num_;
DISALLOW_COPY_AND_ASSIGN(SrtpSession);
RTC_DISALLOW_COPY_AND_ASSIGN(SrtpSession);
};
// Class that collects failures of SRTP.
@ -320,7 +320,7 @@ class SrtpStat {
// Threshold in ms to silent the signaling errors.
uint32 signal_silent_time_;
DISALLOW_COPY_AND_ASSIGN(SrtpStat);
RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStat);
};
} // namespace cricket

View File

@ -797,7 +797,7 @@ class SrtpStatTest
cricket::SrtpFilter::Error error_;
private:
DISALLOW_COPY_AND_ASSIGN(SrtpStatTest);
RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStatTest);
};
TEST_F(SrtpStatTest, TestProtectRtpError) {

View File

@ -141,7 +141,7 @@ class AsyncInvoker : public MessageHandler {
uint32 id);
bool destroying_;
DISALLOW_COPY_AND_ASSIGN(AsyncInvoker);
RTC_DISALLOW_COPY_AND_ASSIGN(AsyncInvoker);
};
// Similar to AsyncInvoker, but guards against the Thread being destroyed while

View File

@ -130,7 +130,7 @@ class AsyncPacketSocket : public sigslot::has_slots<> {
sigslot::signal2<AsyncPacketSocket*, AsyncPacketSocket*> SignalNewConnection;
private:
DISALLOW_COPY_AND_ASSIGN(AsyncPacketSocket);
RTC_DISALLOW_COPY_AND_ASSIGN(AsyncPacketSocket);
};
} // namespace rtc

View File

@ -74,7 +74,7 @@ class AsyncTCPSocketBase : public AsyncPacketSocket {
char* inbuf_, * outbuf_;
size_t insize_, inpos_, outsize_, outpos_;
DISALLOW_COPY_AND_ASSIGN(AsyncTCPSocketBase);
RTC_DISALLOW_COPY_AND_ASSIGN(AsyncTCPSocketBase);
};
class AsyncTCPSocket : public AsyncTCPSocketBase {
@ -95,7 +95,7 @@ class AsyncTCPSocket : public AsyncTCPSocketBase {
void HandleIncomingConnection(AsyncSocket* socket) override;
private:
DISALLOW_COPY_AND_ASSIGN(AsyncTCPSocket);
RTC_DISALLOW_COPY_AND_ASSIGN(AsyncTCPSocket);
};
} // namespace rtc

View File

@ -81,7 +81,7 @@ class AutoDetectProxy : public SignalThread {
AsyncSocket* socket_;
int next_;
DISALLOW_IMPLICIT_CONSTRUCTORS(AutoDetectProxy);
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AutoDetectProxy);
};
} // namespace rtc

View File

@ -81,7 +81,7 @@ class BitBuffer {
// The current offset, in bits, into the current byte.
size_t bit_offset_;
DISALLOW_COPY_AND_ASSIGN(BitBuffer);
RTC_DISALLOW_COPY_AND_ASSIGN(BitBuffer);
};
// A BitBuffer API for write operations. Supports symmetric write APIs to the
@ -110,7 +110,7 @@ class BitBufferWriter : public BitBuffer {
// The buffer, as a writable array.
uint8_t* const writable_bytes_;
DISALLOW_COPY_AND_ASSIGN(BitBufferWriter);
RTC_DISALLOW_COPY_AND_ASSIGN(BitBufferWriter);
};
} // namespace rtc

View File

@ -42,7 +42,7 @@ class BufferQueue {
std::vector<Buffer*> free_list_;
mutable CriticalSection crit_; // object lock
DISALLOW_COPY_AND_ASSIGN(BufferQueue);
RTC_DISALLOW_COPY_AND_ASSIGN(BufferQueue);
};
} // namespace rtc

View File

@ -114,7 +114,7 @@ class ByteBuffer {
// There are sensible ways to define these, but they aren't needed in our code
// base.
DISALLOW_COPY_AND_ASSIGN(ByteBuffer);
RTC_DISALLOW_COPY_AND_ASSIGN(ByteBuffer);
};
} // namespace rtc

View File

@ -11,19 +11,14 @@
#ifndef WEBRTC_BASE_CONSTRUCTORMAGIC_H_
#define WEBRTC_BASE_CONSTRUCTORMAGIC_H_
// Undefine macros first, just in case. Some third-party includes have their own
// version.
#undef DISALLOW_ASSIGN
#define DISALLOW_ASSIGN(TypeName) \
#define RTC_DISALLOW_ASSIGN(TypeName) \
void operator=(const TypeName&)
// A macro to disallow the evil copy constructor and operator= functions
// This should be used in the private: declarations for a class.
#undef DISALLOW_COPY_AND_ASSIGN
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
#define RTC_DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&); \
DISALLOW_ASSIGN(TypeName)
RTC_DISALLOW_ASSIGN(TypeName)
// A macro to disallow all the implicit constructors, namely the
// default constructor, copy constructor and operator= functions.
@ -31,10 +26,8 @@
// This should be used in the private: declarations for a class
// that wants to prevent anyone from instantiating it. This is
// especially useful for classes containing only static methods.
#undef DISALLOW_IMPLICIT_CONSTRUCTORS
#define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \
#define RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \
TypeName(); \
DISALLOW_COPY_AND_ASSIGN(TypeName)
RTC_DISALLOW_COPY_AND_ASSIGN(TypeName)
#endif // WEBRTC_BASE_CONSTRUCTORMAGIC_H_

View File

@ -72,7 +72,7 @@ class SCOPED_LOCKABLE CritScope {
~CritScope() UNLOCK_FUNCTION();
private:
CriticalSection* const cs_;
DISALLOW_COPY_AND_ASSIGN(CritScope);
RTC_DISALLOW_COPY_AND_ASSIGN(CritScope);
};
// Tries to lock a critical section on construction via
@ -95,7 +95,7 @@ class TryCritScope {
CriticalSection* const cs_;
const bool locked_;
CS_DEBUG_CODE(mutable bool lock_was_called_);
DISALLOW_COPY_AND_ASSIGN(TryCritScope);
RTC_DISALLOW_COPY_AND_ASSIGN(TryCritScope);
};
// A POD lock used to protect global variables. Do NOT use for other purposes.
@ -121,7 +121,7 @@ class SCOPED_LOCKABLE GlobalLockScope {
~GlobalLockScope() UNLOCK_FUNCTION();
private:
GlobalLockPod* const lock_;
DISALLOW_COPY_AND_ASSIGN(GlobalLockScope);
RTC_DISALLOW_COPY_AND_ASSIGN(GlobalLockScope);
};
} // namespace rtc

View File

@ -123,7 +123,7 @@ class FileRotatingStream : public StreamInterface {
size_t current_bytes_written_;
bool disable_buffering_;
DISALLOW_COPY_AND_ASSIGN(FileRotatingStream);
RTC_DISALLOW_COPY_AND_ASSIGN(FileRotatingStream);
};
// CallSessionFileRotatingStream is meant to be used in situations where we will
@ -164,7 +164,7 @@ class CallSessionFileRotatingStream : public FileRotatingStream {
const size_t max_total_log_size_;
size_t num_rotations_;
DISALLOW_COPY_AND_ASSIGN(CallSessionFileRotatingStream);
RTC_DISALLOW_COPY_AND_ASSIGN(CallSessionFileRotatingStream);
};
} // namespace rtc

View File

@ -407,7 +407,7 @@ class Filesystem {
static FilesystemInterface* default_filesystem_;
static FilesystemInterface *EnsureDefaultFilesystem();
DISALLOW_IMPLICIT_CONSTRUCTORS(Filesystem);
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(Filesystem);
};
class FilesystemScope{
@ -420,7 +420,7 @@ class FilesystemScope{
}
private:
FilesystemInterface* old_fs_;
DISALLOW_IMPLICIT_CONSTRUCTORS(FilesystemScope);
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FilesystemScope);
};
// Generates a unique filename based on the input path. If no path component

View File

@ -261,7 +261,7 @@ class WindowsCommandLineArguments {
char **argv_;
private:
DISALLOW_COPY_AND_ASSIGN(WindowsCommandLineArguments);
RTC_DISALLOW_COPY_AND_ASSIGN(WindowsCommandLineArguments);
};
#endif // WEBRTC_WIN

View File

@ -61,7 +61,7 @@ class LateBindingSymbolTable {
DllHandle handle_;
bool undefined_symbols_;
DISALLOW_COPY_AND_ASSIGN(LateBindingSymbolTable);
RTC_DISALLOW_COPY_AND_ASSIGN(LateBindingSymbolTable);
};
} // namespace rtc

View File

@ -76,7 +76,7 @@ LATE_BINDING_SYMBOL_TABLE_SYMBOLS_LIST
void *table_[SYMBOL_TABLE_SIZE];
DISALLOW_COPY_AND_ASSIGN(LATE_BINDING_SYMBOL_TABLE_CLASS_NAME);
RTC_DISALLOW_COPY_AND_ASSIGN(LATE_BINDING_SYMBOL_TABLE_CLASS_NAME);
};
#undef LATE_BINDING_SYMBOL_TABLE_CLASS_NAME

View File

@ -239,7 +239,7 @@ class LogMessage {
// Determines if logs will be directed to stderr in debug mode.
static bool log_to_stderr_;
DISALLOW_COPY_AND_ASSIGN(LogMessage);
RTC_DISALLOW_COPY_AND_ASSIGN(LogMessage);
};
//////////////////////////////////////////////////////////////////////

View File

@ -48,7 +48,7 @@ class FileRotatingLogSink : public LogSink {
private:
scoped_ptr<FileRotatingStream> stream_;
DISALLOW_COPY_AND_ASSIGN(FileRotatingLogSink);
RTC_DISALLOW_COPY_AND_ASSIGN(FileRotatingLogSink);
};
// Log sink that uses a CallSessionFileRotatingStream to write to disk.
@ -60,7 +60,7 @@ class CallSessionFileRotatingLogSink : public FileRotatingLogSink {
~CallSessionFileRotatingLogSink() override;
private:
DISALLOW_COPY_AND_ASSIGN(CallSessionFileRotatingLogSink);
RTC_DISALLOW_COPY_AND_ASSIGN(CallSessionFileRotatingLogSink);
};
} // namespace rtc

View File

@ -90,7 +90,7 @@ class MacAsyncSocket : public AsyncSocket, public sigslot::has_slots<> {
ConnState state_;
AsyncResolver* resolver_;
DISALLOW_COPY_AND_ASSIGN(MacAsyncSocket);
RTC_DISALLOW_COPY_AND_ASSIGN(MacAsyncSocket);
};
} // namespace rtc

View File

@ -40,7 +40,7 @@ class MacCocoaSocketServer : public MacBaseSocketServer {
// The count of how many times we're inside the NSApplication main loop.
int run_count_;
DISALLOW_COPY_AND_ASSIGN(MacCocoaSocketServer);
RTC_DISALLOW_COPY_AND_ASSIGN(MacCocoaSocketServer);
};
} // namespace rtc

View File

@ -29,7 +29,7 @@ class MessageHandler {
MessageHandler() {}
private:
DISALLOW_COPY_AND_ASSIGN(MessageHandler);
RTC_DISALLOW_COPY_AND_ASSIGN(MessageHandler);
};
// Helper class to facilitate executing a functor on a thread.

View File

@ -248,7 +248,7 @@ class MessageQueue {
mutable CriticalSection crit_;
private:
DISALLOW_COPY_AND_ASSIGN(MessageQueue);
RTC_DISALLOW_COPY_AND_ASSIGN(MessageQueue);
};
} // namespace rtc

View File

@ -75,7 +75,7 @@ class MultipartStream : public StreamInterface, public sigslot::has_slots<> {
size_t current_; // The index into parts_ of the current read position.
size_t position_; // The current read position in bytes.
DISALLOW_COPY_AND_ASSIGN(MultipartStream);
RTC_DISALLOW_COPY_AND_ASSIGN(MultipartStream);
};
} // namespace rtc

View File

@ -116,7 +116,7 @@ class NATServer : public sigslot::has_slots<> {
ProxyServer* tcp_proxy_server_;
InternalMap* int_map_;
ExternalMap* ext_map_;
DISALLOW_COPY_AND_ASSIGN(NATServer);
RTC_DISALLOW_COPY_AND_ASSIGN(NATServer);
};
} // namespace rtc

View File

@ -56,7 +56,7 @@ class NATSocketFactory : public SocketFactory, public NATInternalSocketFactory {
SocketFactory* factory_;
SocketAddress nat_udp_addr_;
SocketAddress nat_tcp_addr_;
DISALLOW_COPY_AND_ASSIGN(NATSocketFactory);
RTC_DISALLOW_COPY_AND_ASSIGN(NATSocketFactory);
};
// Creates sockets that will send traffic through a NAT depending on what
@ -153,7 +153,7 @@ class NATSocketServer : public SocketServer, public NATInternalSocketFactory {
SocketServer* server_;
MessageQueue* msg_queue_;
TranslatorMap nats_;
DISALLOW_COPY_AND_ASSIGN(NATSocketServer);
RTC_DISALLOW_COPY_AND_ASSIGN(NATSocketServer);
};
// Free-standing NAT helper functions.

View File

@ -60,7 +60,7 @@ class NSSKeyPair {
SECKEYPublicKey* pubkey_;
SSLKEAType ssl_kea_type_;
DISALLOW_COPY_AND_ASSIGN(NSSKeyPair);
RTC_DISALLOW_COPY_AND_ASSIGN(NSSKeyPair);
};
@ -109,7 +109,7 @@ class NSSCertificate : public SSLCertificate {
CERTCertificate* certificate_;
scoped_ptr<SSLCertChain> chain_;
DISALLOW_COPY_AND_ASSIGN(NSSCertificate);
RTC_DISALLOW_COPY_AND_ASSIGN(NSSCertificate);
};
// Represents a SSL key pair and certificate for NSS.
@ -135,7 +135,7 @@ class NSSIdentity : public SSLIdentity {
rtc::scoped_ptr<NSSKeyPair> keypair_;
rtc::scoped_ptr<NSSCertificate> certificate_;
DISALLOW_COPY_AND_ASSIGN(NSSIdentity);
RTC_DISALLOW_COPY_AND_ASSIGN(NSSIdentity);
};
} // namespace rtc

View File

@ -45,7 +45,7 @@ class OpenSSLKeyPair {
EVP_PKEY* pkey_;
DISALLOW_COPY_AND_ASSIGN(OpenSSLKeyPair);
RTC_DISALLOW_COPY_AND_ASSIGN(OpenSSLKeyPair);
};
// OpenSSLCertificate encapsulates an OpenSSL X509* certificate object,
@ -92,7 +92,7 @@ class OpenSSLCertificate : public SSLCertificate {
X509* x509_;
DISALLOW_COPY_AND_ASSIGN(OpenSSLCertificate);
RTC_DISALLOW_COPY_AND_ASSIGN(OpenSSLCertificate);
};
// Holds a keypair and certificate together, and a method to generate
@ -120,7 +120,7 @@ class OpenSSLIdentity : public SSLIdentity {
scoped_ptr<OpenSSLKeyPair> key_pair_;
scoped_ptr<OpenSSLCertificate> certificate_;
DISALLOW_COPY_AND_ASSIGN(OpenSSLIdentity);
RTC_DISALLOW_COPY_AND_ASSIGN(OpenSSLIdentity);
};

View File

@ -134,7 +134,7 @@ class Profiler {
EventMap events_;
mutable SharedExclusiveLock lock_;
DISALLOW_COPY_AND_ASSIGN(Profiler);
RTC_DISALLOW_COPY_AND_ASSIGN(Profiler);
};
// Starts an event on construction and stops it on destruction.
@ -151,7 +151,7 @@ class ProfilerScope {
private:
std::string event_name_;
DISALLOW_COPY_AND_ASSIGN(ProfilerScope);
RTC_DISALLOW_COPY_AND_ASSIGN(ProfilerScope);
};
std::ostream& operator<<(std::ostream& stream,

View File

@ -55,7 +55,7 @@ class ProxyBinding : public sigslot::has_slots<> {
bool connected_;
FifoBuffer out_buffer_;
FifoBuffer in_buffer_;
DISALLOW_COPY_AND_ASSIGN(ProxyBinding);
RTC_DISALLOW_COPY_AND_ASSIGN(ProxyBinding);
};
class ProxyServer : public sigslot::has_slots<> {
@ -78,7 +78,7 @@ class ProxyServer : public sigslot::has_slots<> {
SocketAddress ext_ip_;
scoped_ptr<AsyncSocket> server_socket_;
BindingList bindings_;
DISALLOW_COPY_AND_ASSIGN(ProxyServer);
RTC_DISALLOW_COPY_AND_ASSIGN(ProxyServer);
};
// SocksProxyServer is a simple extension of ProxyServer to implement SOCKS.
@ -90,7 +90,7 @@ class SocksProxyServer : public ProxyServer {
}
protected:
AsyncProxyServerSocket* WrapSocket(AsyncSocket* socket) override;
DISALLOW_COPY_AND_ASSIGN(SocksProxyServer);
RTC_DISALLOW_COPY_AND_ASSIGN(SocksProxyServer);
};
} // namespace rtc

View File

@ -77,7 +77,7 @@ class ReferenceCountedSingletonFactory {
CriticalSection crit_;
int ref_count_;
DISALLOW_COPY_AND_ASSIGN(ReferenceCountedSingletonFactory);
RTC_DISALLOW_COPY_AND_ASSIGN(ReferenceCountedSingletonFactory);
};
template <typename Interface>
@ -149,7 +149,7 @@ class rcsf_ptr {
Interface* instance_;
ReferenceCountedSingletonFactory<Interface>* factory_;
DISALLOW_IMPLICIT_CONSTRUCTORS(rcsf_ptr);
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(rcsf_ptr);
};
}; // namespace rtc

View File

@ -165,7 +165,7 @@ class RollingAccumulator {
mutable bool min_stale_;
std::vector<T> samples_;
DISALLOW_COPY_AND_ASSIGN(RollingAccumulator);
RTC_DISALLOW_COPY_AND_ASSIGN(RollingAccumulator);
};
} // namespace rtc

View File

@ -50,7 +50,7 @@ class ScopedAutoreleasePool {
NSAutoreleasePool* pool_;
DISALLOW_COPY_AND_ASSIGN(ScopedAutoreleasePool);
RTC_DISALLOW_COPY_AND_ASSIGN(ScopedAutoreleasePool);
};
} // namespace rtc

View File

@ -298,7 +298,7 @@ class scoped_ptr_impl {
Data data_;
DISALLOW_COPY_AND_ASSIGN(scoped_ptr_impl);
RTC_DISALLOW_COPY_AND_ASSIGN(scoped_ptr_impl);
};
} // namespace internal

View File

@ -52,7 +52,7 @@ class ScopedPtrCollection {
private:
VectorT collection_;
DISALLOW_COPY_AND_ASSIGN(ScopedPtrCollection);
RTC_DISALLOW_COPY_AND_ASSIGN(ScopedPtrCollection);
};
} // namespace rtc

View File

@ -28,7 +28,7 @@ class InstanceCounter {
private:
int* num_instances_;
DISALLOW_COPY_AND_ASSIGN(InstanceCounter);
RTC_DISALLOW_COPY_AND_ASSIGN(InstanceCounter);
};
} // namespace

View File

@ -36,7 +36,7 @@ class LOCKABLE SharedExclusiveLock {
rtc::Event shared_count_is_zero_;
int shared_count_;
DISALLOW_COPY_AND_ASSIGN(SharedExclusiveLock);
RTC_DISALLOW_COPY_AND_ASSIGN(SharedExclusiveLock);
};
class SCOPED_LOCKABLE SharedScope {
@ -51,7 +51,7 @@ class SCOPED_LOCKABLE SharedScope {
private:
SharedExclusiveLock* lock_;
DISALLOW_COPY_AND_ASSIGN(SharedScope);
RTC_DISALLOW_COPY_AND_ASSIGN(SharedScope);
};
class SCOPED_LOCKABLE ExclusiveScope {
@ -67,7 +67,7 @@ class SCOPED_LOCKABLE ExclusiveScope {
private:
SharedExclusiveLock* lock_;
DISALLOW_COPY_AND_ASSIGN(ExclusiveScope);
RTC_DISALLOW_COPY_AND_ASSIGN(ExclusiveScope);
};
} // namespace rtc

View File

@ -112,7 +112,7 @@ class SignalThread
private:
SignalThread* parent_;
DISALLOW_IMPLICIT_CONSTRUCTORS(Worker);
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(Worker);
};
class SCOPED_LOCKABLE EnterExit {
@ -135,7 +135,7 @@ class SignalThread
private:
SignalThread* t_;
DISALLOW_IMPLICIT_CONSTRUCTORS(EnterExit);
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EnterExit);
};
void Run();
@ -147,7 +147,7 @@ class SignalThread
State state_;
int refcount_;
DISALLOW_COPY_AND_ASSIGN(SignalThread);
RTC_DISALLOW_COPY_AND_ASSIGN(SignalThread);
};
///////////////////////////////////////////////////////////////////////////////

View File

@ -57,7 +57,7 @@ class SignalThreadTest : public testing::Test, public sigslot::has_slots<> {
private:
SignalThreadTest* harness_;
DISALLOW_COPY_AND_ASSIGN(SlowSignalThread);
RTC_DISALLOW_COPY_AND_ASSIGN(SlowSignalThread);
};
void OnWorkComplete(rtc::SignalThread* thread) {
@ -128,7 +128,7 @@ class OwnerThread : public Thread, public sigslot::has_slots<> {
private:
SignalThreadTest* harness_;
bool has_run_;
DISALLOW_COPY_AND_ASSIGN(OwnerThread);
RTC_DISALLOW_COPY_AND_ASSIGN(OwnerThread);
};
// Test for when the main thread goes away while the

View File

@ -71,7 +71,7 @@ class SigslotTester1 : public sigslot::has_slots<> {
int callback_count_;
C1* capture1_;
DISALLOW_COPY_AND_ASSIGN(SigslotTester1);
RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester1);
};
template <class A1, class A2, class C1, class C2>
@ -97,7 +97,7 @@ class SigslotTester2 : public sigslot::has_slots<> {
C1* capture1_;
C2* capture2_;
DISALLOW_COPY_AND_ASSIGN(SigslotTester2);
RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester2);
};
template <class A1, class A2, class A3, class C1, class C2, class C3>
@ -125,7 +125,7 @@ class SigslotTester3 : public sigslot::has_slots<> {
C2* capture2_;
C3* capture3_;
DISALLOW_COPY_AND_ASSIGN(SigslotTester3);
RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester3);
};
template <class A1, class A2, class A3, class A4, class C1, class C2, class C3,
@ -157,7 +157,7 @@ class SigslotTester4 : public sigslot::has_slots<> {
C3* capture3_;
C4* capture4_;
DISALLOW_COPY_AND_ASSIGN(SigslotTester4);
RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester4);
};
template <class A1, class A2, class A3, class A4, class A5, class C1, class C2,
@ -192,7 +192,7 @@ class SigslotTester5 : public sigslot::has_slots<> {
C4* capture4_;
C5* capture5_;
DISALLOW_COPY_AND_ASSIGN(SigslotTester5);
RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester5);
};
} // namespace rtc

View File

@ -76,7 +76,7 @@ class SigslotTester$i : public sigslot::has_slots<> {
C$j* capture$j[[]]_;]]
DISALLOW_COPY_AND_ASSIGN(SigslotTester$i);
RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester$i);
};
]]

View File

@ -180,7 +180,7 @@ class Socket {
Socket() {}
private:
DISALLOW_COPY_AND_ASSIGN(Socket);
RTC_DISALLOW_COPY_AND_ASSIGN(Socket);
};
} // namespace rtc

View File

@ -50,7 +50,7 @@ class BufferedReadAdapter : public AsyncSocketAdapter {
char * buffer_;
size_t buffer_size_, data_len_;
bool buffering_;
DISALLOW_COPY_AND_ASSIGN(BufferedReadAdapter);
RTC_DISALLOW_COPY_AND_ASSIGN(BufferedReadAdapter);
};
///////////////////////////////////////////////////////////////////////////////
@ -78,7 +78,7 @@ class AsyncSSLSocket : public BufferedReadAdapter {
protected:
void OnConnectEvent(AsyncSocket* socket) override;
void ProcessInput(char* data, size_t* len) override;
DISALLOW_COPY_AND_ASSIGN(AsyncSSLSocket);
RTC_DISALLOW_COPY_AND_ASSIGN(AsyncSSLSocket);
};
// Implements a socket adapter that performs the server side of a
@ -89,7 +89,7 @@ class AsyncSSLServerSocket : public BufferedReadAdapter {
protected:
void ProcessInput(char* data, size_t* len) override;
DISALLOW_COPY_AND_ASSIGN(AsyncSSLServerSocket);
RTC_DISALLOW_COPY_AND_ASSIGN(AsyncSSLServerSocket);
};
///////////////////////////////////////////////////////////////////////////////
@ -137,7 +137,7 @@ class AsyncHttpsProxySocket : public BufferedReadAdapter {
} state_;
HttpAuthContext * context_;
std::string unknown_mechanisms_;
DISALLOW_COPY_AND_ASSIGN(AsyncHttpsProxySocket);
RTC_DISALLOW_COPY_AND_ASSIGN(AsyncHttpsProxySocket);
};
/* TODO: Implement this.
@ -148,7 +148,7 @@ class AsyncHttpsProxyServerSocket : public AsyncProxyServerSocket {
private:
virtual void ProcessInput(char * data, size_t& len);
void Error(int error);
DISALLOW_COPY_AND_ASSIGN(AsyncHttpsProxyServerSocket);
RTC_DISALLOW_COPY_AND_ASSIGN(AsyncHttpsProxyServerSocket);
};
*/
@ -183,7 +183,7 @@ class AsyncSocksProxySocket : public BufferedReadAdapter {
SocketAddress proxy_, dest_;
std::string user_;
CryptString pass_;
DISALLOW_COPY_AND_ASSIGN(AsyncSocksProxySocket);
RTC_DISALLOW_COPY_AND_ASSIGN(AsyncSocksProxySocket);
};
// Implements a proxy server socket for the SOCKS protocol.
@ -209,7 +209,7 @@ class AsyncSocksProxyServerSocket : public AsyncProxyServerSocket {
SS_HELLO, SS_AUTH, SS_CONNECT, SS_CONNECT_PENDING, SS_TUNNEL, SS_ERROR
};
State state_;
DISALLOW_COPY_AND_ASSIGN(AsyncSocksProxyServerSocket);
RTC_DISALLOW_COPY_AND_ASSIGN(AsyncSocksProxyServerSocket);
};
///////////////////////////////////////////////////////////////////////////////
@ -235,7 +235,7 @@ class LoggingSocketAdapter : public AsyncSocketAdapter {
std::string label_;
bool hex_mode_;
LogMultilineState lms_;
DISALLOW_COPY_AND_ASSIGN(LoggingSocketAdapter);
RTC_DISALLOW_COPY_AND_ASSIGN(LoggingSocketAdapter);
};
///////////////////////////////////////////////////////////////////////////////

View File

@ -51,7 +51,7 @@ class SocketStream : public StreamInterface, public sigslot::has_slots<> {
AsyncSocket* socket_;
DISALLOW_COPY_AND_ASSIGN(SocketStream);
RTC_DISALLOW_COPY_AND_ASSIGN(SocketStream);
};
///////////////////////////////////////////////////////////////////////////////

View File

@ -104,7 +104,7 @@ class SSLCertChain {
std::vector<SSLCertificate*> certs_;
DISALLOW_COPY_AND_ASSIGN(SSLCertChain);
RTC_DISALLOW_COPY_AND_ASSIGN(SSLCertChain);
};
// TODO(hbos, torbjorng): Don't change KT_DEFAULT without first

View File

@ -228,7 +228,7 @@ class StreamInterface : public MessageHandler {
void OnMessage(Message* msg) override;
private:
DISALLOW_COPY_AND_ASSIGN(StreamInterface);
RTC_DISALLOW_COPY_AND_ASSIGN(StreamInterface);
};
///////////////////////////////////////////////////////////////////////////////
@ -305,7 +305,7 @@ class StreamAdapterInterface : public StreamInterface,
private:
StreamInterface* stream_;
bool owned_;
DISALLOW_COPY_AND_ASSIGN(StreamAdapterInterface);
RTC_DISALLOW_COPY_AND_ASSIGN(StreamAdapterInterface);
};
///////////////////////////////////////////////////////////////////////////////
@ -337,7 +337,7 @@ class StreamTap : public StreamAdapterInterface {
scoped_ptr<StreamInterface> tap_;
StreamResult tap_result_;
int tap_error_;
DISALLOW_COPY_AND_ASSIGN(StreamTap);
RTC_DISALLOW_COPY_AND_ASSIGN(StreamTap);
};
///////////////////////////////////////////////////////////////////////////////
@ -415,7 +415,7 @@ class FileStream : public StreamInterface {
FILE* file_;
private:
DISALLOW_COPY_AND_ASSIGN(FileStream);
RTC_DISALLOW_COPY_AND_ASSIGN(FileStream);
};
///////////////////////////////////////////////////////////////////////////////
@ -458,7 +458,7 @@ class MemoryStreamBase : public StreamInterface {
size_t seek_position_;
private:
DISALLOW_COPY_AND_ASSIGN(MemoryStreamBase);
RTC_DISALLOW_COPY_AND_ASSIGN(MemoryStreamBase);
};
// MemoryStream dynamically resizes to accomodate written data.
@ -556,7 +556,7 @@ class FifoBuffer : public StreamInterface {
size_t read_position_; // offset to the readable data
Thread* owner_; // stream callbacks are dispatched on this thread
mutable CriticalSection crit_; // object lock
DISALLOW_COPY_AND_ASSIGN(FifoBuffer);
RTC_DISALLOW_COPY_AND_ASSIGN(FifoBuffer);
};
///////////////////////////////////////////////////////////////////////////////
@ -587,7 +587,7 @@ class LoggingAdapter : public StreamAdapterInterface {
bool hex_mode_;
LogMultilineState lms_;
DISALLOW_COPY_AND_ASSIGN(LoggingAdapter);
RTC_DISALLOW_COPY_AND_ASSIGN(LoggingAdapter);
};
///////////////////////////////////////////////////////////////////////////////
@ -670,7 +670,7 @@ class StreamReference : public StreamAdapterInterface {
StreamInterface* stream_;
int ref_count_;
CriticalSection cs_;
DISALLOW_COPY_AND_ASSIGN(StreamRefCount);
RTC_DISALLOW_COPY_AND_ASSIGN(StreamRefCount);
};
// Constructor for adding references
@ -678,7 +678,7 @@ class StreamReference : public StreamAdapterInterface {
StreamInterface* stream);
StreamRefCount* stream_ref_count_;
DISALLOW_COPY_AND_ASSIGN(StreamReference);
RTC_DISALLOW_COPY_AND_ASSIGN(StreamReference);
};
///////////////////////////////////////////////////////////////////////////////

View File

@ -308,7 +308,7 @@ class AbortTask : public Task {
return STATE_NEXT;
}
private:
DISALLOW_COPY_AND_ASSIGN(AbortTask);
RTC_DISALLOW_COPY_AND_ASSIGN(AbortTask);
};
class TaskAbortTest : public sigslot::has_slots<> {
@ -333,7 +333,7 @@ class TaskAbortTest : public sigslot::has_slots<> {
}
MyTaskRunner task_runner_;
DISALLOW_COPY_AND_ASSIGN(TaskAbortTest);
RTC_DISALLOW_COPY_AND_ASSIGN(TaskAbortTest);
};
TEST(start_task_test, Abort) {
@ -363,7 +363,7 @@ class SetBoolOnDeleteTask : public Task {
private:
bool* set_when_deleted_;
DISALLOW_COPY_AND_ASSIGN(SetBoolOnDeleteTask);
RTC_DISALLOW_COPY_AND_ASSIGN(SetBoolOnDeleteTask);
};
class AbortShouldWakeTest : public sigslot::has_slots<> {
@ -396,7 +396,7 @@ class AbortShouldWakeTest : public sigslot::has_slots<> {
}
MyTaskRunner task_runner_;
DISALLOW_COPY_AND_ASSIGN(AbortShouldWakeTest);
RTC_DISALLOW_COPY_AND_ASSIGN(AbortShouldWakeTest);
};
TEST(start_task_test, AbortShouldWake) {
@ -477,7 +477,7 @@ class TimeoutChangeTest : public sigslot::has_slots<> {
MyTaskRunner task_runner_;
StuckTask* (stuck_tasks_[3]);
int task_count_;
DISALLOW_COPY_AND_ASSIGN(TimeoutChangeTest);
RTC_DISALLOW_COPY_AND_ASSIGN(TimeoutChangeTest);
};
TEST(start_task_test, TimeoutChange) {
@ -494,7 +494,7 @@ class DeleteTestTaskRunner : public TaskRunner {
return GetCurrentTime();
}
private:
DISALLOW_COPY_AND_ASSIGN(DeleteTestTaskRunner);
RTC_DISALLOW_COPY_AND_ASSIGN(DeleteTestTaskRunner);
};
TEST(unstarted_task_test, DeleteTask) {

View File

@ -53,7 +53,7 @@ class TaskParent {
bool child_error_;
typedef std::set<Task *> ChildSet;
scoped_ptr<ChildSet> children_;
DISALLOW_COPY_AND_ASSIGN(TaskParent);
RTC_DISALLOW_COPY_AND_ASSIGN(TaskParent);
};

View File

@ -89,7 +89,7 @@ class TestClient : public sigslot::has_slots<> {
AsyncPacketSocket* socket_;
std::vector<Packet*>* packets_;
bool ready_to_send_;
DISALLOW_COPY_AND_ASSIGN(TestClient);
RTC_DISALLOW_COPY_AND_ASSIGN(TestClient);
};
} // namespace rtc

View File

@ -65,7 +65,7 @@ class TestEchoServer : public sigslot::has_slots<> {
typedef std::list<AsyncTCPSocket*> ClientList;
scoped_ptr<AsyncSocket> server_socket_;
ClientList client_sockets_;
DISALLOW_COPY_AND_ASSIGN(TestEchoServer);
RTC_DISALLOW_COPY_AND_ASSIGN(TestEchoServer);
};
} // namespace rtc

View File

@ -68,7 +68,7 @@ class ThreadManager {
DWORD key_;
#endif
DISALLOW_COPY_AND_ASSIGN(ThreadManager);
RTC_DISALLOW_COPY_AND_ASSIGN(ThreadManager);
};
struct _SendMessage {
@ -94,7 +94,7 @@ class Runnable {
Runnable() {}
private:
DISALLOW_COPY_AND_ASSIGN(Runnable);
RTC_DISALLOW_COPY_AND_ASSIGN(Runnable);
};
// WARNING! SUBCLASSES MUST CALL Stop() IN THEIR DESTRUCTORS! See ~Thread().
@ -287,7 +287,7 @@ class Thread : public MessageQueue {
friend class ThreadManager;
DISALLOW_COPY_AND_ASSIGN(Thread);
RTC_DISALLOW_COPY_AND_ASSIGN(Thread);
};
// AutoThread automatically installs itself at construction
@ -300,7 +300,7 @@ class AutoThread : public Thread {
~AutoThread() override;
private:
DISALLOW_COPY_AND_ASSIGN(AutoThread);
RTC_DISALLOW_COPY_AND_ASSIGN(AutoThread);
};
// Win32 extension for threads that need to use COM
@ -314,7 +314,7 @@ class ComThread : public Thread {
virtual void Run();
private:
DISALLOW_COPY_AND_ASSIGN(ComThread);
RTC_DISALLOW_COPY_AND_ASSIGN(ComThread);
};
#endif
@ -332,7 +332,7 @@ class SocketServerScope {
private:
SocketServer* old_ss_;
DISALLOW_IMPLICIT_CONSTRUCTORS(SocketServerScope);
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SocketServerScope);
};
} // namespace rtc

View File

@ -49,7 +49,7 @@ class ThreadCheckerClass : public ThreadChecker {
static void DetachThenCallFromDifferentThreadImpl();
private:
DISALLOW_COPY_AND_ASSIGN(ThreadCheckerClass);
RTC_DISALLOW_COPY_AND_ASSIGN(ThreadCheckerClass);
};
// Calls ThreadCheckerClass::DoStuff on another thread.
@ -72,7 +72,7 @@ class CallDoStuffOnThread : public Thread {
private:
ThreadCheckerClass* thread_checker_class_;
DISALLOW_COPY_AND_ASSIGN(CallDoStuffOnThread);
RTC_DISALLOW_COPY_AND_ASSIGN(CallDoStuffOnThread);
};
// Deletes ThreadCheckerClass on a different thread.
@ -96,7 +96,7 @@ class DeleteThreadCheckerClassOnThread : public Thread {
private:
scoped_ptr<ThreadCheckerClass> thread_checker_class_;
DISALLOW_COPY_AND_ASSIGN(DeleteThreadCheckerClassOnThread);
RTC_DISALLOW_COPY_AND_ASSIGN(DeleteThreadCheckerClassOnThread);
};
} // namespace

View File

@ -243,7 +243,7 @@ class VirtualSocketServer : public SocketServer, public sigslot::has_slots<> {
CriticalSection delay_crit_;
double drop_prob_;
DISALLOW_COPY_AND_ASSIGN(VirtualSocketServer);
RTC_DISALLOW_COPY_AND_ASSIGN(VirtualSocketServer);
};
// Implements the socket interface using the virtual network. Packets are

View File

@ -329,7 +329,7 @@ class RegKey {
// for unittest
friend void RegKeyHelperFunctionsTest();
DISALLOW_COPY_AND_ASSIGN(RegKey);
RTC_DISALLOW_COPY_AND_ASSIGN(RegKey);
};
} // namespace rtc

View File

@ -64,7 +64,7 @@ class Worker : private MessageHandler {
// The thread that is currently doing the work.
Thread *worker_thread_;
DISALLOW_COPY_AND_ASSIGN(Worker);
RTC_DISALLOW_COPY_AND_ASSIGN(Worker);
};
} // namespace rtc

View File

@ -73,7 +73,7 @@ class XWindowProperty {
unsigned long size_; // NOLINT: type required by XGetWindowProperty
unsigned char* data_;
DISALLOW_COPY_AND_ASSIGN(XWindowProperty);
RTC_DISALLOW_COPY_AND_ASSIGN(XWindowProperty);
};
// Stupid X11. It seems none of the synchronous returns codes from X11 calls
@ -118,7 +118,7 @@ class XErrorSuppressor {
Display* display_;
XErrorHandler original_error_handler_;
DISALLOW_COPY_AND_ASSIGN(XErrorSuppressor);
RTC_DISALLOW_COPY_AND_ASSIGN(XErrorSuppressor);
};
// Hiding all X11 specifics inside its own class. This to avoid

View File

@ -95,7 +95,7 @@ class Config {
typedef std::map<OptionIdentifier, BaseOption*> OptionMap;
OptionMap options_;
// DISALLOW_COPY_AND_ASSIGN
// RTC_DISALLOW_COPY_AND_ASSIGN
Config(const Config&);
void operator=(const Config&);
};

View File

@ -58,7 +58,7 @@ class AudioConverter {
const int dst_channels_;
const size_t dst_frames_;
DISALLOW_COPY_AND_ASSIGN(AudioConverter);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioConverter);
};
} // namespace webrtc

View File

@ -68,7 +68,7 @@ class PushSincResampler : public SincResamplerCallback {
// Used to assert we are only requested for as much data as is available.
size_t source_available_;
DISALLOW_COPY_AND_ASSIGN(PushSincResampler);
RTC_DISALLOW_COPY_AND_ASSIGN(PushSincResampler);
};
} // namespace webrtc

View File

@ -162,7 +162,7 @@ class SincResampler {
float* r3_;
float* r4_;
DISALLOW_COPY_AND_ASSIGN(SincResampler);
RTC_DISALLOW_COPY_AND_ASSIGN(SincResampler);
};
} // namespace webrtc

View File

@ -47,7 +47,7 @@ class SinusoidalLinearChirpSource : public SincResamplerCallback {
size_t current_index_;
double delay_samples_;
DISALLOW_COPY_AND_ASSIGN(SinusoidalLinearChirpSource);
RTC_DISALLOW_COPY_AND_ASSIGN(SinusoidalLinearChirpSource);
};
} // namespace webrtc

View File

@ -44,7 +44,7 @@ class SparseFIRFilter final {
const std::vector<float> nonzero_coeffs_;
std::vector<float> state_;
DISALLOW_COPY_AND_ASSIGN(SparseFIRFilter);
RTC_DISALLOW_COPY_AND_ASSIGN(SparseFIRFilter);
};
} // namespace webrtc

View File

@ -58,7 +58,7 @@ class WavWriter final : public WavFile {
uint32_t num_samples_; // Total number of samples written to file.
FILE* file_handle_; // Output file, owned by this class
DISALLOW_COPY_AND_ASSIGN(WavWriter);
RTC_DISALLOW_COPY_AND_ASSIGN(WavWriter);
};
// Follows the conventions of WavWriter.
@ -87,7 +87,7 @@ class WavReader final : public WavFile {
uint32_t num_samples_remaining_;
FILE* file_handle_; // Input file, owned by this class.
DISALLOW_COPY_AND_ASSIGN(WavReader);
RTC_DISALLOW_COPY_AND_ASSIGN(WavReader);
};
} // namespace webrtc

View File

@ -24,7 +24,7 @@ class WindowGenerator {
static void KaiserBesselDerived(float alpha, size_t length, float* window);
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(WindowGenerator);
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WindowGenerator);
};
} // namespace webrtc

View File

@ -263,7 +263,7 @@ class PubSubStateClient : public sigslot::has_slots<> {
// itemid => StateItemInfo
std::map<std::string, StateItemInfo> info_by_itemid_;
DISALLOW_COPY_AND_ASSIGN(PubSubStateClient);
RTC_DISALLOW_COPY_AND_ASSIGN(PubSubStateClient);
};
} // namespace buzz

View File

@ -67,7 +67,7 @@ class XmppClientInterface {
virtual void RemoveXmppTask(XmppTask* task) = 0;
sigslot::signal0<> SignalDisconnected;
DISALLOW_COPY_AND_ASSIGN(XmppClientInterface);
RTC_DISALLOW_COPY_AND_ASSIGN(XmppClientInterface);
};
// XmppTaskParentInterface is the interface require for any parent of
@ -86,7 +86,7 @@ class XmppTaskParentInterface : public rtc::Task {
virtual XmppClientInterface* GetClient() = 0;
DISALLOW_COPY_AND_ASSIGN(XmppTaskParentInterface);
RTC_DISALLOW_COPY_AND_ASSIGN(XmppTaskParentInterface);
};
class XmppTaskBase : public XmppTaskParentInterface {
@ -104,7 +104,7 @@ class XmppTaskBase : public XmppTaskParentInterface {
protected:
XmppTaskParentInterface* parent_;
DISALLOW_COPY_AND_ASSIGN(XmppTaskBase);
RTC_DISALLOW_COPY_AND_ASSIGN(XmppTaskBase);
};
class XmppTask : public XmppTaskBase,

View File

@ -115,7 +115,7 @@ class AudioDecoder {
SpeechType* speech_type);
private:
DISALLOW_COPY_AND_ASSIGN(AudioDecoder);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoder);
};
} // namespace webrtc

View File

@ -91,7 +91,7 @@ class AudioEncoderIsacT final : public AudioEncoder {
// Timestamp of the previously encoded packet.
uint32_t last_encoded_timestamp_;
DISALLOW_COPY_AND_ASSIGN(AudioEncoderIsacT);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderIsacT);
};
template <typename T>
@ -122,7 +122,7 @@ class AudioDecoderIsacT final : public AudioDecoder {
LockedIsacBandwidthInfo* bwinfo_;
int decoder_sample_rate_hz_;
DISALLOW_COPY_AND_ASSIGN(AudioDecoderIsacT);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderIsacT);
};
} // namespace webrtc

View File

@ -43,7 +43,7 @@ class AudioDecoderOpus : public AudioDecoder {
private:
OpusDecInst* dec_state_;
const size_t channels_;
DISALLOW_COPY_AND_ASSIGN(AudioDecoderOpus);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderOpus);
};
} // namespace webrtc

View File

@ -56,7 +56,7 @@ class AcmReceiveTest {
const int output_freq_hz_;
NumOutputChannels expected_output_channels_;
DISALLOW_COPY_AND_ASSIGN(AcmReceiveTest);
RTC_DISALLOW_COPY_AND_ASSIGN(AcmReceiveTest);
};
} // namespace test

View File

@ -64,7 +64,7 @@ class AcmReceiveTestOldApi {
int output_freq_hz_;
NumOutputChannels exptected_output_channels_;
DISALLOW_COPY_AND_ASSIGN(AcmReceiveTestOldApi);
RTC_DISALLOW_COPY_AND_ASSIGN(AcmReceiveTestOldApi);
};
// This test toggles the output frequency every |toggle_period_ms|. The test

View File

@ -74,7 +74,7 @@ class AcmSendTest : public AudioPacketizationCallback, public PacketSource {
uint16_t sequence_number_;
std::vector<uint8_t> last_payload_vec_;
DISALLOW_COPY_AND_ASSIGN(AcmSendTest);
RTC_DISALLOW_COPY_AND_ASSIGN(AcmSendTest);
};
} // namespace test

View File

@ -83,7 +83,7 @@ class AcmSendTestOldApi : public AudioPacketizationCallback,
std::vector<uint8_t> last_payload_vec_;
bool data_to_send_;
DISALLOW_COPY_AND_ASSIGN(AcmSendTestOldApi);
RTC_DISALLOW_COPY_AND_ASSIGN(AcmSendTestOldApi);
};
} // namespace test

View File

@ -82,7 +82,7 @@ class CodecManager final {
CodecOwner codec_owner_;
bool encoder_is_opus_;
DISALLOW_COPY_AND_ASSIGN(CodecManager);
RTC_DISALLOW_COPY_AND_ASSIGN(CodecManager);
};
} // namespace acm2

View File

@ -70,7 +70,7 @@ class CodecOwner {
rtc::scoped_ptr<AudioEncoder> cng_encoder_;
rtc::scoped_ptr<AudioEncoder> red_encoder_;
DISALLOW_COPY_AND_ASSIGN(CodecOwner);
RTC_DISALLOW_COPY_AND_ASSIGN(CodecOwner);
};
} // namespace acm2

View File

@ -65,7 +65,7 @@ class Accelerate : public TimeStretch {
AudioMultiVector* output) const override;
private:
DISALLOW_COPY_AND_ASSIGN(Accelerate);
RTC_DISALLOW_COPY_AND_ASSIGN(Accelerate);
};
struct AccelerateFactory {

View File

@ -46,7 +46,7 @@ class AudioDecoderPcmU : public AudioDecoder {
SpeechType* speech_type) override;
private:
DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcmU);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcmU);
};
class AudioDecoderPcmA : public AudioDecoder {
@ -64,7 +64,7 @@ class AudioDecoderPcmA : public AudioDecoder {
SpeechType* speech_type) override;
private:
DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcmA);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcmA);
};
class AudioDecoderPcmUMultiCh : public AudioDecoderPcmU {
@ -77,7 +77,7 @@ class AudioDecoderPcmUMultiCh : public AudioDecoderPcmU {
private:
const size_t channels_;
DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcmUMultiCh);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcmUMultiCh);
};
class AudioDecoderPcmAMultiCh : public AudioDecoderPcmA {
@ -90,7 +90,7 @@ class AudioDecoderPcmAMultiCh : public AudioDecoderPcmA {
private:
const size_t channels_;
DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcmAMultiCh);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcmAMultiCh);
};
#ifdef WEBRTC_CODEC_PCM16
@ -111,7 +111,7 @@ class AudioDecoderPcm16B : public AudioDecoder {
SpeechType* speech_type) override;
private:
DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcm16B);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcm16B);
};
// This class handles all four types (i.e., sample rates) of PCM16B codecs.
@ -124,7 +124,7 @@ class AudioDecoderPcm16BMultiCh : public AudioDecoderPcm16B {
private:
const size_t channels_;
DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcm16BMultiCh);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcm16BMultiCh);
};
#endif
@ -147,7 +147,7 @@ class AudioDecoderIlbc : public AudioDecoder {
private:
IlbcDecoderInstance* dec_state_;
DISALLOW_COPY_AND_ASSIGN(AudioDecoderIlbc);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderIlbc);
};
#endif
@ -170,7 +170,7 @@ class AudioDecoderG722 : public AudioDecoder {
private:
G722DecInst* dec_state_;
DISALLOW_COPY_AND_ASSIGN(AudioDecoderG722);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderG722);
};
class AudioDecoderG722Stereo : public AudioDecoder {
@ -199,7 +199,7 @@ class AudioDecoderG722Stereo : public AudioDecoder {
G722DecInst* dec_state_left_;
G722DecInst* dec_state_right_;
DISALLOW_COPY_AND_ASSIGN(AudioDecoderG722Stereo);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderG722Stereo);
};
#endif
@ -232,7 +232,7 @@ class AudioDecoderCng : public AudioDecoder {
private:
CNG_dec_inst* dec_state_;
DISALLOW_COPY_AND_ASSIGN(AudioDecoderCng);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderCng);
};
enum NetEqDecoder {

View File

@ -132,7 +132,7 @@ class AudioMultiVector {
size_t num_channels_;
private:
DISALLOW_COPY_AND_ASSIGN(AudioMultiVector);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioMultiVector);
};
} // namespace webrtc

View File

@ -105,7 +105,7 @@ class AudioVector {
// Note that this index may point outside of array_.
size_t capacity_; // Allocated number of samples in the array.
DISALLOW_COPY_AND_ASSIGN(AudioVector);
RTC_DISALLOW_COPY_AND_ASSIGN(AudioVector);
};
} // namespace webrtc

View File

@ -130,7 +130,7 @@ class BackgroundNoise {
bool initialized_;
NetEq::BackgroundNoiseMode mode_;
DISALLOW_COPY_AND_ASSIGN(BackgroundNoise);
RTC_DISALLOW_COPY_AND_ASSIGN(BackgroundNoise);
};
} // namespace webrtc

View File

@ -42,7 +42,7 @@ class BufferLevelFilter {
int level_factor_; // Filter factor for the buffer level filter in Q8.
int filtered_current_level_; // Filtered current buffer level in Q8.
DISALLOW_COPY_AND_ASSIGN(BufferLevelFilter);
RTC_DISALLOW_COPY_AND_ASSIGN(BufferLevelFilter);
};
} // namespace webrtc

Some files were not shown because too many files have changed in this diff Show More