Delete unused STL includes from net/ headers.
Headers that do not contain "std::" do not need STL includes. This CL is first mechanically generated as follows: INCL="algorithm|array|list|map|memory|queue|set|string|unordered_map|unordered_set|utility|vector" git ls-files net | grep '\.h$' | xargs grep -L std:: | \ xargs grep -El "#include <($INCL)>$" > to_process.txt INCL_ESCAPED="$(echo $INCL|sed 's/|/\\|/g')" cat to_process.txt | xargs sed -i "/^#include <\($INCL_ESCAPED\)>$/d" cat to_process.txt | xargs sed -i '/^$/N;/^\n$/D' Then also remove an unused <bitset> include, which is not in the list above. Bug: 1200833 Change-Id: I962f3a1222d727eba0c1eccfdfb6cc86124fa1a4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2881261 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Maksim Orlovich <morlovich@chromium.org> Cr-Commit-Position: refs/heads/master@{#881268}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
167540f76e
commit
dc4f884da6
net
base
network_change_notifier_fuchsia.hnetwork_change_notifier_posix.hnetwork_interfaces_getifaddrs.htest_data_stream.cctest_data_stream.h
cert
asn1_util.hcert_database.hcert_verify_result.hct_policy_enforcer.hct_signed_certificate_timestamp_log_param.hnss_profile_filter_chromeos.hocsp_verify_result.hx509_certificate_net_log_param.h
cookies
disk_cache
dns
nqe
quic
spdy
tools
url_request
websockets
@ -8,8 +8,6 @@
|
||||
#include <fuchsia/net/interfaces/cpp/fidl.h>
|
||||
#include <lib/fidl/cpp/binding.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "base/atomicops.h"
|
||||
#include "base/callback.h"
|
||||
#include "base/containers/flat_map.h"
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_BASE_NETWORK_CHANGE_NOTIFIER_POSIX_H_
|
||||
#define NET_BASE_NETWORK_CHANGE_NOTIFIER_POSIX_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/gtest_prod_util.h"
|
||||
#include "base/memory/scoped_refptr.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
|
@ -13,8 +13,6 @@
|
||||
// This file defines IfaddrsToNetworkInterfaceList() so it can be called in
|
||||
// unittests.
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "build/build_config.h"
|
||||
#include "net/base/net_export.h"
|
||||
#include "net/base/network_interfaces.h"
|
||||
|
@ -4,6 +4,8 @@
|
||||
|
||||
#include "net/base/test_data_stream.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace net {
|
||||
|
||||
TestDataStream::TestDataStream() {
|
||||
|
@ -6,7 +6,6 @@
|
||||
#define NET_BASE_TEST_DATA_STREAM_H_
|
||||
|
||||
#include <string.h> // for memcpy().
|
||||
#include <algorithm>
|
||||
#include "net/base/net_export.h"
|
||||
|
||||
// This is a class for generating an infinite stream of data which can be
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_CERT_ASN1_UTIL_H_
|
||||
#define NET_CERT_ASN1_UTIL_H_
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "base/strings/string_piece.h"
|
||||
#include "net/base/net_export.h"
|
||||
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_CERT_CERT_DATABASE_H_
|
||||
#define NET_CERT_CERT_DATABASE_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "build/build_config.h"
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_CERT_CERT_VERIFY_RESULT_H_
|
||||
#define NET_CERT_CERT_VERIFY_RESULT_H_
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/supports_user_data.h"
|
||||
#include "net/base/net_export.h"
|
||||
|
@ -6,7 +6,6 @@
|
||||
#define NET_CERT_CT_POLICY_ENFORCER_H_
|
||||
|
||||
#include <stddef.h>
|
||||
#include <vector>
|
||||
|
||||
#include "net/base/net_export.h"
|
||||
#include "net/cert/signed_certificate_timestamp.h"
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_
|
||||
#define NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/strings/string_piece.h"
|
||||
#include "net/cert/signed_certificate_timestamp_and_status.h"
|
||||
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_CERT_NSS_PROFILE_FILTER_CHROMEOS_H_
|
||||
#define NET_CERT_NSS_PROFILE_FILTER_CHROMEOS_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "crypto/scoped_nss_types.h"
|
||||
#include "net/base/net_export.h"
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_CERT_OCSP_VERIFY_RESULT_H_
|
||||
#define NET_CERT_OCSP_VERIFY_RESULT_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "net/base/net_export.h"
|
||||
#include "net/cert/ocsp_revocation_status.h"
|
||||
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_CERT_X509_CERTIFICATE_NET_LOG_PARAM_H_
|
||||
#define NET_CERT_X509_CERTIFICATE_NET_LOG_PARAM_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "net/base/net_export.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_COOKIES_COOKIE_MONSTER_NETLOG_PARAMS_H_
|
||||
#define NET_COOKIES_COOKIE_MONSTER_NETLOG_PARAMS_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/values.h"
|
||||
#include "net/cookies/canonical_cookie.h"
|
||||
#include "net/cookies/cookie_change_dispatcher.h"
|
||||
|
@ -8,8 +8,6 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "base/strings/string_split.h"
|
||||
#include "net/base/net_export.h"
|
||||
|
@ -7,8 +7,6 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "net/log/net_log_with_source.h"
|
||||
|
||||
namespace net {
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_DNS_SERIAL_WORKER_H_
|
||||
#define NET_DNS_SERIAL_WORKER_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/macros.h"
|
||||
#include "base/memory/ref_counted_delete_on_sequence.h"
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_NQE_SOCKET_WATCHER_H_
|
||||
#define NET_NQE_SOCKET_WATCHER_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/callback.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
|
@ -5,9 +5,6 @@
|
||||
#ifndef NET_QUIC_PROPERTIES_BASED_QUIC_SERVER_INFO_H_
|
||||
#define NET_QUIC_PROPERTIES_BASED_QUIC_SERVER_INFO_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "net/base/network_isolation_key.h"
|
||||
|
@ -8,8 +8,6 @@
|
||||
#ifndef NET_QUIC_QUIC_CHROMIUM_ALARM_FACTORY_H_
|
||||
#define NET_QUIC_QUIC_CHROMIUM_ALARM_FACTORY_H_
|
||||
|
||||
#include <set>
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "net/base/net_export.h"
|
||||
|
@ -7,9 +7,6 @@
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include <bitset>
|
||||
#include <string>
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "base/timer/timer.h"
|
||||
#include "net/log/net_log_with_source.h"
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_SPDY_MULTIPLEXED_SESSION_H_
|
||||
#define NET_SPDY_MULTIPLEXED_SESSION_H_
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "base/strings/string_piece.h"
|
||||
#include "net/base/ip_endpoint.h"
|
||||
#include "net/base/net_errors.h"
|
||||
|
@ -5,9 +5,6 @@
|
||||
#ifndef NET_SPDY_SPDY_LOG_UTIL_H_
|
||||
#define NET_SPDY_SPDY_LOG_UTIL_H_
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "base/strings/string_piece.h"
|
||||
#include "net/base/net_export.h"
|
||||
#include "net/http/http_log_util.h"
|
||||
|
@ -5,9 +5,8 @@
|
||||
#ifndef NET_TOOLS_GSSAPI_GSS_TYPES_H_
|
||||
#define NET_TOOLS_GSSAPI_GSS_TYPES_H_
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
// Define a minimal subset of the definitions needed to build a loadable fake
|
||||
// GSSAPI library. The bindings follow RFC 2744. The code follows the RFC
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_INPUT_FILE_PARSERS_H_
|
||||
#define NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_INPUT_FILE_PARSERS_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "base/strings/string_piece.h"
|
||||
#include "net/tools/transport_security_state_generator/transport_security_state_entry.h"
|
||||
|
||||
|
@ -6,8 +6,6 @@
|
||||
#define NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_SPKI_HASH_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "base/strings/string_piece.h"
|
||||
|
||||
|
@ -7,9 +7,6 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "net/base/net_export.h"
|
||||
|
||||
namespace net {
|
||||
|
@ -7,8 +7,6 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/time/time.h"
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_URL_REQUEST_URL_REQUEST_THROTTLER_TEST_SUPPORT_H_
|
||||
#define NET_URL_REQUEST_URL_REQUEST_THROTTLER_TEST_SUPPORT_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "base/time/tick_clock.h"
|
||||
#include "base/time/time.h"
|
||||
|
@ -5,8 +5,6 @@
|
||||
#ifndef NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_REQUEST_INFO_H_
|
||||
#define NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_REQUEST_INFO_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "base/time/time.h"
|
||||
#include "net/base/net_export.h"
|
||||
|
Reference in New Issue
Block a user