summaryrefslogtreecommitdiff
path: root/system_wrappers
diff options
context:
space:
mode:
authorAndroid Chromium Automerger <chromium-automerger@android>2014-05-27 11:07:21 +0000
committerAndroid Chromium Automerger <chromium-automerger@android>2014-05-27 11:07:21 +0000
commit98e1ef10adcd58128fd469d191c09c3c23224dc8 (patch)
tree03d3594748dd8062ed93ed2f1b8103194e292164 /system_wrappers
parentf290b35b0236643f60a56c40047bbb5c683607d5 (diff)
parente066d34bb747f730084f1726408ca8348ff25da7 (diff)
downloadwebrtc-98e1ef10adcd58128fd469d191c09c3c23224dc8.tar.gz
Merge third_party/webrtc from https://chromium.googlesource.com/external/webrtc/trunk/webrtc.git at e066d34bb747f730084f1726408ca8348ff25da7
This commit was generated by merge_from_chromium.py. Change-Id: I94edbc99f9ae2b5f6ab2f155184548bffd2b57f9
Diffstat (limited to 'system_wrappers')
-rw-r--r--system_wrappers/interface/atomic32.h2
-rw-r--r--system_wrappers/interface/constructor_magic.h50
-rw-r--r--system_wrappers/interface/scoped_ptr.h2
3 files changed, 2 insertions, 52 deletions
diff --git a/system_wrappers/interface/atomic32.h b/system_wrappers/interface/atomic32.h
index 08ab4f25..8633e263 100644
--- a/system_wrappers/interface/atomic32.h
+++ b/system_wrappers/interface/atomic32.h
@@ -17,8 +17,8 @@
#include <stddef.h>
+#include "webrtc/base/constructormagic.h"
#include "webrtc/common_types.h"
-#include "webrtc/system_wrappers/interface/constructor_magic.h"
namespace webrtc {
diff --git a/system_wrappers/interface/constructor_magic.h b/system_wrappers/interface/constructor_magic.h
deleted file mode 100644
index b2aabc57..00000000
--- a/system_wrappers/interface/constructor_magic.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2011 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.
- */
-
-/*
- * WebRtc
- * Copy from third_party/libjingle/source/talk/base/constructormagic.h
- */
-
-#ifndef WEBRTC_SYSTEM_WRAPPERS_INTERFACE_CONSTRUCTOR_MAGIC_H_
-#define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_CONSTRUCTOR_MAGIC_H_
-
-#ifndef DISALLOW_ASSIGN
-#define DISALLOW_ASSIGN(TypeName) \
- void operator=(const TypeName&)
-#endif
-
-#ifndef DISALLOW_COPY_AND_ASSIGN
-// A macro to disallow the evil copy constructor and operator= functions
-// This should be used in the private: declarations for a class
-#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
- TypeName(const TypeName&); \
- DISALLOW_ASSIGN(TypeName)
-#endif
-
-#ifndef DISALLOW_EVIL_CONSTRUCTORS
-// Alternative, less-accurate legacy name.
-#define DISALLOW_EVIL_CONSTRUCTORS(TypeName) \
- DISALLOW_COPY_AND_ASSIGN(TypeName)
-#endif
-
-#ifndef DISALLOW_IMPLICIT_CONSTRUCTORS
-// A macro to disallow all the implicit constructors, namely the
-// default constructor, copy constructor and operator= functions.
-//
-// 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.
-#define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \
- TypeName(); \
- DISALLOW_EVIL_CONSTRUCTORS(TypeName)
-#endif
-
-#endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_CONSTRUCTOR_MAGIC_H_
diff --git a/system_wrappers/interface/scoped_ptr.h b/system_wrappers/interface/scoped_ptr.h
index 8998f817..42bb8a6d 100644
--- a/system_wrappers/interface/scoped_ptr.h
+++ b/system_wrappers/interface/scoped_ptr.h
@@ -104,8 +104,8 @@
#include <algorithm> // For std::swap().
+#include "webrtc/base/constructormagic.h"
#include "webrtc/system_wrappers/interface/compile_assert.h"
-#include "webrtc/system_wrappers/interface/constructor_magic.h"
#include "webrtc/system_wrappers/interface/template_util.h"
#include "webrtc/system_wrappers/source/move.h"
#include "webrtc/typedefs.h"