summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authortfarina <tfarina@chromium.org>2015-10-19 21:23:36 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-20 04:24:28 +0000
commitea94afc23c664ca6354c2778734e55e7de27748a (patch)
treeef4532a23f6a9bb64d41dc696284be6bfdc3a544 /net
parentc2572edcdfea2fee18e91789f594b0ebacaa24fc (diff)
downloadchromium_src-ea94afc23c664ca6354c2778734e55e7de27748a.zip
chromium_src-ea94afc23c664ca6354c2778734e55e7de27748a.tar.gz
chromium_src-ea94afc23c664ca6354c2778734e55e7de27748a.tar.bz2
net/websockets: Remove basictypes.h includes.
When necessary use either macros.h or stddef.h. BUG=138542, 487868, 488550, 539734 TEST=net_unittests R=ricea@chromium.org,eroman@chromium.org,wtc@chromium.org Review URL: https://codereview.chromium.org/1409343003 Cr-Commit-Position: refs/heads/master@{#354974}
Diffstat (limited to 'net')
-rw-r--r--net/websockets/websocket_basic_handshake_stream.cc2
-rw-r--r--net/websockets/websocket_basic_handshake_stream.h1
-rw-r--r--net/websockets/websocket_basic_stream.cc2
-rw-r--r--net/websockets/websocket_basic_stream_test.cc3
-rw-r--r--net/websockets/websocket_channel.cc3
-rw-r--r--net/websockets/websocket_channel.h2
-rw-r--r--net/websockets/websocket_deflate_predictor.h3
-rw-r--r--net/websockets/websocket_deflate_predictor_impl.h4
-rw-r--r--net/websockets/websocket_deflate_predictor_impl_test.cc1
-rw-r--r--net/websockets/websocket_deflate_stream.h3
-rw-r--r--net/websockets/websocket_deflate_stream_test.cc2
-rw-r--r--net/websockets/websocket_deflater.h3
-rw-r--r--net/websockets/websocket_event_interface.h2
-rw-r--r--net/websockets/websocket_frame.h2
-rw-r--r--net/websockets/websocket_frame_parser.h3
-rw-r--r--net/websockets/websocket_frame_parser_test.cc2
-rw-r--r--net/websockets/websocket_frame_test.cc2
-rw-r--r--net/websockets/websocket_handshake_constants.h3
-rw-r--r--net/websockets/websocket_handshake_stream_base.h2
-rw-r--r--net/websockets/websocket_inflater.h3
-rw-r--r--net/websockets/websocket_stream.h2
-rw-r--r--net/websockets/websocket_test_util.cc3
-rw-r--r--net/websockets/websocket_test_util.h2
23 files changed, 31 insertions, 24 deletions
diff --git a/net/websockets/websocket_basic_handshake_stream.cc b/net/websockets/websocket_basic_handshake_stream.cc
index a909892..7649553 100644
--- a/net/websockets/websocket_basic_handshake_stream.cc
+++ b/net/websockets/websocket_basic_handshake_stream.cc
@@ -4,6 +4,7 @@
#include "net/websockets/websocket_basic_handshake_stream.h"
+#include <stddef.h>
#include <algorithm>
#include <iterator>
#include <set>
@@ -11,7 +12,6 @@
#include <vector>
#include "base/base64.h"
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/containers/hash_tables.h"
diff --git a/net/websockets/websocket_basic_handshake_stream.h b/net/websockets/websocket_basic_handshake_stream.h
index 1984f3c..41cba37 100644
--- a/net/websockets/websocket_basic_handshake_stream.h
+++ b/net/websockets/websocket_basic_handshake_stream.h
@@ -10,6 +10,7 @@
#include <string>
#include <vector>
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "net/base/net_export.h"
diff --git a/net/websockets/websocket_basic_stream.cc b/net/websockets/websocket_basic_stream.cc
index c4599f5..440bd26 100644
--- a/net/websockets/websocket_basic_stream.cc
+++ b/net/websockets/websocket_basic_stream.cc
@@ -4,13 +4,13 @@
#include "net/websockets/websocket_basic_stream.h"
+#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <limits>
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/logging.h"
#include "base/numerics/safe_conversions.h"
diff --git a/net/websockets/websocket_basic_stream_test.cc b/net/websockets/websocket_basic_stream_test.cc
index 6917c2a..d4c73e8 100644
--- a/net/websockets/websocket_basic_stream_test.cc
+++ b/net/websockets/websocket_basic_stream_test.cc
@@ -8,13 +8,14 @@
#include "net/websockets/websocket_basic_stream.h"
+#include <stddef.h>
#include <stdint.h>
#include <string.h> // for memcpy() and memset().
#include <string>
-#include "base/basictypes.h"
#include "base/big_endian.h"
+#include "base/macros.h"
#include "net/base/test_completion_callback.h"
#include "net/log/test_net_log.h"
#include "net/socket/socket_test_util.h"
diff --git a/net/websockets/websocket_channel.cc b/net/websockets/websocket_channel.cc
index cd7b3fd..9481033 100644
--- a/net/websockets/websocket_channel.cc
+++ b/net/websockets/websocket_channel.cc
@@ -4,15 +4,14 @@
#include "net/websockets/websocket_channel.h"
+#include <stddef.h>
#include <limits.h> // for INT_MAX
#include <algorithm>
#include <deque>
-#include "base/basictypes.h" // for size_t
#include "base/big_endian.h"
#include "base/bind.h"
-#include "base/compiler_specific.h"
#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
diff --git a/net/websockets/websocket_channel.h b/net/websockets/websocket_channel.h
index 9904358..abe08b0 100644
--- a/net/websockets/websocket_channel.h
+++ b/net/websockets/websocket_channel.h
@@ -10,10 +10,10 @@
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/callback.h"
#include "base/compiler_specific.h" // for WARN_UNUSED_RESULT
#include "base/i18n/streaming_utf8_validator.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
diff --git a/net/websockets/websocket_deflate_predictor.h b/net/websockets/websocket_deflate_predictor.h
index c786d80..9413fa0 100644
--- a/net/websockets/websocket_deflate_predictor.h
+++ b/net/websockets/websocket_deflate_predictor.h
@@ -5,7 +5,8 @@
#ifndef NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_H_
#define NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_H_
-#include "base/basictypes.h"
+#include <stddef.h>
+
#include "base/memory/scoped_vector.h"
#include "net/base/net_export.h"
diff --git a/net/websockets/websocket_deflate_predictor_impl.h b/net/websockets/websocket_deflate_predictor_impl.h
index 680ec56..72c96ee 100644
--- a/net/websockets/websocket_deflate_predictor_impl.h
+++ b/net/websockets/websocket_deflate_predictor_impl.h
@@ -5,8 +5,8 @@
#ifndef NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_IMPL_H_
#define NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_IMPL_H_
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
+#include <stddef.h>
+
#include "base/memory/scoped_vector.h"
#include "net/base/net_export.h"
#include "net/websockets/websocket_deflate_predictor.h"
diff --git a/net/websockets/websocket_deflate_predictor_impl_test.cc b/net/websockets/websocket_deflate_predictor_impl_test.cc
index 79c54e1..f1bfd56 100644
--- a/net/websockets/websocket_deflate_predictor_impl_test.cc
+++ b/net/websockets/websocket_deflate_predictor_impl_test.cc
@@ -4,7 +4,6 @@
#include "net/websockets/websocket_deflate_predictor_impl.h"
-#include "base/basictypes.h"
#include "base/memory/scoped_vector.h"
#include "net/websockets/websocket_frame.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/net/websockets/websocket_deflate_stream.h b/net/websockets/websocket_deflate_stream.h
index e69a89d..c0d0915 100644
--- a/net/websockets/websocket_deflate_stream.h
+++ b/net/websockets/websocket_deflate_stream.h
@@ -5,9 +5,10 @@
#ifndef NET_WEBSOCKETS_WEBSOCKET_DEFLATE_STREAM_H_
#define NET_WEBSOCKETS_WEBSOCKET_DEFLATE_STREAM_H_
+#include <stddef.h>
#include <string>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "net/base/completion_callback.h"
diff --git a/net/websockets/websocket_deflate_stream_test.cc b/net/websockets/websocket_deflate_stream_test.cc
index 4d5d9f2..9c6fc72 100644
--- a/net/websockets/websocket_deflate_stream_test.cc
+++ b/net/websockets/websocket_deflate_stream_test.cc
@@ -4,11 +4,11 @@
#include "net/websockets/websocket_deflate_stream.h"
+#include <stddef.h>
#include <stdint.h>
#include <deque>
#include <string>
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
diff --git a/net/websockets/websocket_deflater.h b/net/websockets/websocket_deflater.h
index 1b631e2..e0b7ca6 100644
--- a/net/websockets/websocket_deflater.h
+++ b/net/websockets/websocket_deflater.h
@@ -5,10 +5,11 @@
#ifndef NET_WEBSOCKETS_WEBSOCKET_DEFLATER_H_
#define NET_WEBSOCKETS_WEBSOCKET_DEFLATER_H_
+#include <stddef.h>
#include <deque>
#include <vector>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "net/base/net_export.h"
diff --git a/net/websockets/websocket_event_interface.h b/net/websockets/websocket_event_interface.h
index 4d2b486..64340d4 100644
--- a/net/websockets/websocket_event_interface.h
+++ b/net/websockets/websocket_event_interface.h
@@ -9,8 +9,8 @@
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/compiler_specific.h" // for WARN_UNUSED_RESULT
+#include "base/macros.h"
#include "net/base/net_export.h"
class GURL;
diff --git a/net/websockets/websocket_frame.h b/net/websockets/websocket_frame.h
index e3ceec5..438f249 100644
--- a/net/websockets/websocket_frame.h
+++ b/net/websockets/websocket_frame.h
@@ -8,7 +8,7 @@
#include <stdint.h>
#include <vector>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "net/base/net_export.h"
diff --git a/net/websockets/websocket_frame_parser.h b/net/websockets/websocket_frame_parser.h
index 194370f..8752862 100644
--- a/net/websockets/websocket_frame_parser.h
+++ b/net/websockets/websocket_frame_parser.h
@@ -5,10 +5,11 @@
#ifndef NET_WEBSOCKETS_WEBSOCKET_FRAME_PARSER_H_
#define NET_WEBSOCKETS_WEBSOCKET_FRAME_PARSER_H_
+#include <stddef.h>
#include <stdint.h>
#include <vector>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
diff --git a/net/websockets/websocket_frame_parser_test.cc b/net/websockets/websocket_frame_parser_test.cc
index a208eb5..3d858a9 100644
--- a/net/websockets/websocket_frame_parser_test.cc
+++ b/net/websockets/websocket_frame_parser_test.cc
@@ -8,7 +8,7 @@
#include <algorithm>
#include <vector>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/memory/scoped_vector.h"
#include "net/base/io_buffer.h"
#include "net/websockets/websocket_frame.h"
diff --git a/net/websockets/websocket_frame_test.cc b/net/websockets/websocket_frame_test.cc
index 6d1fc25..04c10d2 100644
--- a/net/websockets/websocket_frame_test.cc
+++ b/net/websockets/websocket_frame_test.cc
@@ -8,7 +8,7 @@
#include <algorithm>
#include <vector>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/memory/aligned_memory.h"
#include "net/base/net_errors.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/net/websockets/websocket_handshake_constants.h b/net/websockets/websocket_handshake_constants.h
index f52f513..6b17be0 100644
--- a/net/websockets/websocket_handshake_constants.h
+++ b/net/websockets/websocket_handshake_constants.h
@@ -12,7 +12,8 @@
#ifndef NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_CONSTANTS_H_
#define NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_CONSTANTS_H_
-#include "base/basictypes.h"
+#include <stddef.h>
+
#include "net/base/net_export.h"
// This file plases constants inside the ::net::websockets namespace to avoid
diff --git a/net/websockets/websocket_handshake_stream_base.h b/net/websockets/websocket_handshake_stream_base.h
index a858febe..dda9f3d 100644
--- a/net/websockets/websocket_handshake_stream_base.h
+++ b/net/websockets/websocket_handshake_stream_base.h
@@ -11,7 +11,7 @@
#include <string>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/supports_user_data.h"
diff --git a/net/websockets/websocket_inflater.h b/net/websockets/websocket_inflater.h
index fdfa762..d062867 100644
--- a/net/websockets/websocket_inflater.h
+++ b/net/websockets/websocket_inflater.h
@@ -5,11 +5,12 @@
#ifndef NET_WEBSOCKETS_WEBSOCKET_INFLATER_H_
#define NET_WEBSOCKETS_WEBSOCKET_INFLATER_H_
+#include <stddef.h>
#include <deque>
#include <utility>
#include <vector>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "net/base/net_export.h"
diff --git a/net/websockets/websocket_stream.h b/net/websockets/websocket_stream.h
index 713205a..658a9c9 100644
--- a/net/websockets/websocket_stream.h
+++ b/net/websockets/websocket_stream.h
@@ -8,8 +8,8 @@
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/callback_forward.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
diff --git a/net/websockets/websocket_test_util.cc b/net/websockets/websocket_test_util.cc
index fc494e6..097bab8 100644
--- a/net/websockets/websocket_test_util.cc
+++ b/net/websockets/websocket_test_util.cc
@@ -4,10 +4,10 @@
#include "net/websockets/websocket_test_util.h"
+#include <stddef.h>
#include <algorithm>
#include <vector>
-#include "base/basictypes.h"
#include "base/memory/scoped_vector.h"
#include "base/stl_util.h"
#include "base/strings/stringprintf.h"
@@ -18,6 +18,7 @@
namespace net {
namespace {
+
const uint64_t kA = (static_cast<uint64_t>(0x5851f42d) << 32) +
static_cast<uint64_t>(0x4c957f2d);
const uint64_t kC = 12345;
diff --git a/net/websockets/websocket_test_util.h b/net/websockets/websocket_test_util.h
index c2fe1f9..49abf74 100644
--- a/net/websockets/websocket_test_util.h
+++ b/net/websockets/websocket_test_util.h
@@ -8,7 +8,7 @@
#include <stdint.h>
#include <string>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "net/url_request/url_request_test_util.h"
#include "net/websockets/websocket_stream.h"