Revert of Replace basictypes.h with stdint.h for int_t types. (patchset #1 id:1 of https://codereview.webrtc.org/2604043002/ )

Reason for revert:
Very likely cause of Chromium import bot breakage (unused function '__cpuid'), TBD why.

Original issue's description:
> Replace basictypes.h with stdint.h for int_t types.
>
> Removes basictypes.h for types that only makes use of it for fixed-size-int
> typedefs and replaces it with stdint.h.
>
> BUG=webrtc:6853
> R=tommi@webrtc.org
>
> Review-Url: https://codereview.webrtc.org/2604043002
> Cr-Commit-Position: refs/heads/master@{#15867}
> Committed: 7fd1a75300

TBR=tommi@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:6853

Review-Url: https://codereview.webrtc.org/2603203003
Cr-Commit-Position: refs/heads/master@{#15869}
This commit is contained in:
pbos
2017-01-02 07:32:25 -08:00
committed by Commit bot
parent cafb497cc1
commit 7eb0e23bcf
31 changed files with 35 additions and 63 deletions

View File

@ -15,14 +15,13 @@
#ifndef WEBRTC_API_RTPRECEIVER_H_ #ifndef WEBRTC_API_RTPRECEIVER_H_
#define WEBRTC_API_RTPRECEIVER_H_ #define WEBRTC_API_RTPRECEIVER_H_
#include <stdint.h>
#include <string> #include <string>
#include "webrtc/api/mediastreaminterface.h" #include "webrtc/api/mediastreaminterface.h"
#include "webrtc/api/rtpreceiverinterface.h" #include "webrtc/api/rtpreceiverinterface.h"
#include "webrtc/api/remoteaudiosource.h" #include "webrtc/api/remoteaudiosource.h"
#include "webrtc/api/videotracksource.h" #include "webrtc/api/videotracksource.h"
#include "webrtc/base/basictypes.h"
#include "webrtc/base/sigslot.h" #include "webrtc/base/sigslot.h"
#include "webrtc/media/base/videobroadcaster.h" #include "webrtc/media/base/videobroadcaster.h"
#include "webrtc/pc/channel.h" #include "webrtc/pc/channel.h"

View File

@ -8,9 +8,9 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#include <stdint.h>
#include "webrtc/base/byteorder.h" #include "webrtc/base/byteorder.h"
#include "webrtc/base/basictypes.h"
#include "webrtc/base/gunit.h" #include "webrtc/base/gunit.h"
namespace rtc { namespace rtc {

View File

@ -11,14 +11,13 @@
#ifndef WEBRTC_BASE_NETWORK_H_ #ifndef WEBRTC_BASE_NETWORK_H_
#define WEBRTC_BASE_NETWORK_H_ #define WEBRTC_BASE_NETWORK_H_
#include <stdint.h>
#include <deque> #include <deque>
#include <map> #include <map>
#include <memory> #include <memory>
#include <string> #include <string>
#include <vector> #include <vector>
#include "webrtc/base/basictypes.h"
#include "webrtc/base/ipaddress.h" #include "webrtc/base/ipaddress.h"
#include "webrtc/base/networkmonitor.h" #include "webrtc/base/networkmonitor.h"
#include "webrtc/base/messagehandler.h" #include "webrtc/base/messagehandler.h"

View File

@ -11,10 +11,9 @@
#ifndef WEBRTC_BASE_RTCCERTIFICATE_H_ #ifndef WEBRTC_BASE_RTCCERTIFICATE_H_
#define WEBRTC_BASE_RTCCERTIFICATE_H_ #define WEBRTC_BASE_RTCCERTIFICATE_H_
#include <stdint.h>
#include <memory> #include <memory>
#include "webrtc/base/basictypes.h"
#include "webrtc/base/refcount.h" #include "webrtc/base/refcount.h"
#include "webrtc/base/scoped_ref_ptr.h" #include "webrtc/base/scoped_ref_ptr.h"
#include "webrtc/base/sslidentity.h" #include "webrtc/base/sslidentity.h"

View File

@ -11,10 +11,10 @@
#ifndef WEBRTC_BASE_SYSTEMINFO_H__ #ifndef WEBRTC_BASE_SYSTEMINFO_H__
#define WEBRTC_BASE_SYSTEMINFO_H__ #define WEBRTC_BASE_SYSTEMINFO_H__
#include <stdint.h>
#include <string> #include <string>
#include "webrtc/base/basictypes.h"
namespace rtc { namespace rtc {
class SystemInfo { class SystemInfo {

View File

@ -11,10 +11,8 @@
#ifndef WEBRTC_BASE_TASK_H__ #ifndef WEBRTC_BASE_TASK_H__
#define WEBRTC_BASE_TASK_H__ #define WEBRTC_BASE_TASK_H__
#include <stdint.h>
#include <string> #include <string>
#include "webrtc/base/basictypes.h"
#include "webrtc/base/sigslot.h" #include "webrtc/base/sigslot.h"
#include "webrtc/base/taskparent.h" #include "webrtc/base/taskparent.h"

View File

@ -11,10 +11,9 @@
#ifndef WEBRTC_BASE_TASKRUNNER_H__ #ifndef WEBRTC_BASE_TASKRUNNER_H__
#define WEBRTC_BASE_TASKRUNNER_H__ #define WEBRTC_BASE_TASKRUNNER_H__
#include <stdint.h>
#include <vector> #include <vector>
#include "webrtc/base/basictypes.h"
#include "webrtc/base/sigslot.h" #include "webrtc/base/sigslot.h"
#include "webrtc/base/taskparent.h" #include "webrtc/base/taskparent.h"

View File

@ -11,8 +11,7 @@
#ifndef WEBRTC_BASE_TIMEDELTA_H_ #ifndef WEBRTC_BASE_TIMEDELTA_H_
#define WEBRTC_BASE_TIMEDELTA_H_ #define WEBRTC_BASE_TIMEDELTA_H_
#include <stdint.h> #include "webrtc/base/basictypes.h"
#include "webrtc/base/timeutils.h" #include "webrtc/base/timeutils.h"
// Convenience class to convert between different units of relative time. // Convenience class to convert between different units of relative time.

View File

@ -11,8 +11,7 @@
#ifndef WEBRTC_BASE_TIMESTAMPALIGNER_H_ #ifndef WEBRTC_BASE_TIMESTAMPALIGNER_H_
#define WEBRTC_BASE_TIMESTAMPALIGNER_H_ #define WEBRTC_BASE_TIMESTAMPALIGNER_H_
#include <stdint.h> #include "webrtc/base/basictypes.h"
#include "webrtc/base/constructormagic.h" #include "webrtc/base/constructormagic.h"
namespace rtc { namespace rtc {

View File

@ -11,10 +11,10 @@
#ifndef WEBRTC_BASE_TIMEUTILS_H_ #ifndef WEBRTC_BASE_TIMEUTILS_H_
#define WEBRTC_BASE_TIMEUTILS_H_ #define WEBRTC_BASE_TIMEUTILS_H_
#include <stdint.h> #include <ctime>
#include <time.h> #include <time.h>
#include <ctime> #include "webrtc/base/basictypes.h"
namespace rtc { namespace rtc {

View File

@ -11,8 +11,7 @@
#ifndef WEBRTC_BASE_WINDOW_H_ #ifndef WEBRTC_BASE_WINDOW_H_
#define WEBRTC_BASE_WINDOW_H_ #define WEBRTC_BASE_WINDOW_H_
#include <stdint.h> #include "webrtc/base/basictypes.h"
#include "webrtc/base/stringencode.h" #include "webrtc/base/stringencode.h"
// Define platform specific window types. // Define platform specific window types.

View File

@ -11,8 +11,6 @@
#ifndef WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ #ifndef WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_
#define WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ #define WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_
#include <stdint.h>
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -8,9 +8,8 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#include <stdint.h>
#include "webrtc/base/array_view.h" #include "webrtc/base/array_view.h"
#include "webrtc/base/basictypes.h"
#include "webrtc/call/flexfec_receive_stream_impl.h" #include "webrtc/call/flexfec_receive_stream_impl.h"
#include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h" #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h"
#include "webrtc/modules/rtp_rtcp/source/byte_io.h" #include "webrtc/modules/rtp_rtcp/source/byte_io.h"

View File

@ -12,10 +12,10 @@
#define WEBRTC_EXAMPLES_PEERCONNECTION_CLIENT_DEFAULTS_H_ #define WEBRTC_EXAMPLES_PEERCONNECTION_CLIENT_DEFAULTS_H_
#pragma once #pragma once
#include <stdint.h>
#include <string> #include <string>
#include "webrtc/base/basictypes.h"
extern const char kAudioLabel[]; extern const char kAudioLabel[];
extern const char kVideoLabel[]; extern const char kVideoLabel[];
extern const char kStreamLabel[]; extern const char kStreamLabel[];

View File

@ -26,13 +26,12 @@
#ifndef WEBRTC_MEDIA_BASE_STREAMPARAMS_H_ #ifndef WEBRTC_MEDIA_BASE_STREAMPARAMS_H_
#define WEBRTC_MEDIA_BASE_STREAMPARAMS_H_ #define WEBRTC_MEDIA_BASE_STREAMPARAMS_H_
#include <stdint.h>
#include <algorithm> #include <algorithm>
#include <set> #include <set>
#include <string> #include <string>
#include <vector> #include <vector>
#include "webrtc/base/basictypes.h"
#include "webrtc/base/constructormagic.h" #include "webrtc/base/constructormagic.h"
namespace cricket { namespace cricket {

View File

@ -13,13 +13,12 @@
#ifndef WEBRTC_MEDIA_BASE_VIDEOCAPTURER_H_ #ifndef WEBRTC_MEDIA_BASE_VIDEOCAPTURER_H_
#define WEBRTC_MEDIA_BASE_VIDEOCAPTURER_H_ #define WEBRTC_MEDIA_BASE_VIDEOCAPTURER_H_
#include <stdint.h>
#include <algorithm> #include <algorithm>
#include <memory> #include <memory>
#include <string> #include <string>
#include <vector> #include <vector>
#include "webrtc/base/basictypes.h"
#include "webrtc/base/constructormagic.h" #include "webrtc/base/constructormagic.h"
#include "webrtc/base/criticalsection.h" #include "webrtc/base/criticalsection.h"
#include "webrtc/media/base/videosourceinterface.h" #include "webrtc/media/base/videosourceinterface.h"

View File

@ -13,10 +13,9 @@
#ifndef WEBRTC_MEDIA_BASE_VIDEOCOMMON_H_ // NOLINT #ifndef WEBRTC_MEDIA_BASE_VIDEOCOMMON_H_ // NOLINT
#define WEBRTC_MEDIA_BASE_VIDEOCOMMON_H_ #define WEBRTC_MEDIA_BASE_VIDEOCOMMON_H_
#include <stdint.h>
#include <string> #include <string>
#include "webrtc/base/basictypes.h"
#include "webrtc/base/timeutils.h" #include "webrtc/base/timeutils.h"
namespace cricket { namespace cricket {

View File

@ -14,10 +14,9 @@
#ifndef WEBRTC_MEDIA_DEVICES_GTKVIDEORENDERER_H_ #ifndef WEBRTC_MEDIA_DEVICES_GTKVIDEORENDERER_H_
#define WEBRTC_MEDIA_DEVICES_GTKVIDEORENDERER_H_ #define WEBRTC_MEDIA_DEVICES_GTKVIDEORENDERER_H_
#include <stdint.h>
#include <memory> #include <memory>
#include "webrtc/base/basictypes.h"
#include "webrtc/media/base/videosinkinterface.h" #include "webrtc/media/base/videosinkinterface.h"
typedef struct _GtkWidget GtkWidget; // forward declaration, defined in gtk.h typedef struct _GtkWidget GtkWidget; // forward declaration, defined in gtk.h

View File

@ -11,8 +11,7 @@
#ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_PLAYOUT_DELAY_ORACLE_H_ #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_PLAYOUT_DELAY_ORACLE_H_
#define WEBRTC_MODULES_RTP_RTCP_SOURCE_PLAYOUT_DELAY_ORACLE_H_ #define WEBRTC_MODULES_RTP_RTCP_SOURCE_PLAYOUT_DELAY_ORACLE_H_
#include <stdint.h> #include "webrtc/base/basictypes.h"
#include "webrtc/base/criticalsection.h" #include "webrtc/base/criticalsection.h"
#include "webrtc/base/thread_annotations.h" #include "webrtc/base/thread_annotations.h"
#include "webrtc/modules/include/module_common_types.h" #include "webrtc/modules/include/module_common_types.h"

View File

@ -10,8 +10,7 @@
#ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_
#define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_
#include <stdint.h> #include "webrtc/base/basictypes.h"
#include "webrtc/common_video/rotation.h" #include "webrtc/common_video/rotation.h"
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"

View File

@ -11,8 +11,7 @@
#ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_TIME_UTIL_H_ #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_TIME_UTIL_H_
#define WEBRTC_MODULES_RTP_RTCP_SOURCE_TIME_UTIL_H_ #define WEBRTC_MODULES_RTP_RTCP_SOURCE_TIME_UTIL_H_
#include <stdint.h> #include "webrtc/base/basictypes.h"
#include "webrtc/system_wrappers/include/ntp_time.h" #include "webrtc/system_wrappers/include/ntp_time.h"
namespace webrtc { namespace webrtc {

View File

@ -10,10 +10,8 @@
#include "webrtc/modules/video_coding/h264_sprop_parameter_sets.h" #include "webrtc/modules/video_coding/h264_sprop_parameter_sets.h"
#include <stdint.h>
#include <vector> #include <vector>
#include "webrtc/base/basictypes.h"
#include "webrtc/test/gtest.h" #include "webrtc/test/gtest.h"
namespace webrtc { namespace webrtc {

View File

@ -9,8 +9,8 @@
*/ */
#include "webrtc/modules/video_coding/utility/default_video_bitrate_allocator.h" #include "webrtc/modules/video_coding/utility/default_video_bitrate_allocator.h"
#include "webrtc/base/basictypes.h"
#include <stdint.h> #include "webrtc/base/constructormagic.h"
namespace webrtc { namespace webrtc {

View File

@ -11,11 +11,10 @@
#ifndef WEBRTC_MODULES_VIDEO_CODING_UTILITY_SIMULCAST_RATE_ALLOCATOR_H_ #ifndef WEBRTC_MODULES_VIDEO_CODING_UTILITY_SIMULCAST_RATE_ALLOCATOR_H_
#define WEBRTC_MODULES_VIDEO_CODING_UTILITY_SIMULCAST_RATE_ALLOCATOR_H_ #define WEBRTC_MODULES_VIDEO_CODING_UTILITY_SIMULCAST_RATE_ALLOCATOR_H_
#include <stdint.h>
#include <map> #include <map>
#include <memory> #include <memory>
#include "webrtc/base/basictypes.h"
#include "webrtc/base/constructormagic.h" #include "webrtc/base/constructormagic.h"
#include "webrtc/common_video/include/video_bitrate_allocator.h" #include "webrtc/common_video/include/video_bitrate_allocator.h"
#include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h" #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h"

View File

@ -13,7 +13,6 @@
#include <limits.h> #include <limits.h>
#include <math.h> #include <math.h>
#include <stdint.h>
#include <algorithm> #include <algorithm>
#include <iomanip> #include <iomanip>
@ -21,6 +20,7 @@
#include <string> #include <string>
#include "webrtc/p2p/base/p2pconstants.h" #include "webrtc/p2p/base/p2pconstants.h"
#include "webrtc/base/basictypes.h"
#include "webrtc/base/helpers.h" #include "webrtc/base/helpers.h"
#include "webrtc/base/network.h" #include "webrtc/base/network.h"
#include "webrtc/base/socketaddress.h" #include "webrtc/base/socketaddress.h"

View File

@ -8,11 +8,10 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#include <stdint.h>
#include <memory> #include <memory>
#include "webrtc/base/asyncresolverinterface.h" #include "webrtc/base/asyncresolverinterface.h"
#include "webrtc/base/basictypes.h"
#include "webrtc/base/bind.h" #include "webrtc/base/bind.h"
#include "webrtc/base/checks.h" #include "webrtc/base/checks.h"
#include "webrtc/base/gunit.h" #include "webrtc/base/gunit.h"

View File

@ -14,10 +14,9 @@
#ifndef WEBRTC_PC_CURRENTSPEAKERMONITOR_H_ #ifndef WEBRTC_PC_CURRENTSPEAKERMONITOR_H_
#define WEBRTC_PC_CURRENTSPEAKERMONITOR_H_ #define WEBRTC_PC_CURRENTSPEAKERMONITOR_H_
#include <stdint.h>
#include <map> #include <map>
#include "webrtc/base/basictypes.h"
#include "webrtc/base/sigslot.h" #include "webrtc/base/sigslot.h"
namespace cricket { namespace cricket {

View File

@ -28,8 +28,7 @@
// functions and the corresponding authentication id using // functions and the corresponding authentication id using
// crypto_kernel_replace_auth_type function. // crypto_kernel_replace_auth_type function.
#include <stdint.h> #include "webrtc/base/basictypes.h"
#ifdef HAVE_SRTP #ifdef HAVE_SRTP
#include "third_party/libsrtp/crypto/include/auth.h" #include "third_party/libsrtp/crypto/include/auth.h"
#endif // HAVE_SRTP #endif // HAVE_SRTP

View File

@ -13,11 +13,10 @@
#include "webrtc/base/networkmonitor.h" #include "webrtc/base/networkmonitor.h"
#include <stdint.h>
#include <map> #include <map>
#include "webrtc/sdk/android/src/jni/jni_helpers.h" #include "webrtc/sdk/android/src/jni/jni_helpers.h"
#include "webrtc/base/basictypes.h"
#include "webrtc/base/thread_checker.h" #include "webrtc/base/thread_checker.h"
namespace webrtc_jni { namespace webrtc_jni {

View File

@ -10,8 +10,7 @@
#ifndef WEBRTC_SYSTEM_WRAPPERS_INCLUDE_NTP_TIME_H_ #ifndef WEBRTC_SYSTEM_WRAPPERS_INCLUDE_NTP_TIME_H_
#define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_NTP_TIME_H_ #define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_NTP_TIME_H_
#include <stdint.h> #include "webrtc/base/basictypes.h"
#include "webrtc/system_wrappers/include/clock.h" #include "webrtc/system_wrappers/include/clock.h"
namespace webrtc { namespace webrtc {

View File

@ -10,8 +10,7 @@
#ifndef WEBRTC_TEST_FRAME_UTILS_H_ #ifndef WEBRTC_TEST_FRAME_UTILS_H_
#define WEBRTC_TEST_FRAME_UTILS_H_ #define WEBRTC_TEST_FRAME_UTILS_H_
#include <stdint.h> #include "webrtc/base/basictypes.h"
#include "webrtc/base/scoped_ref_ptr.h" #include "webrtc/base/scoped_ref_ptr.h"
namespace webrtc { namespace webrtc {