[iwyu] transport (#29574)

* [iwyu] transport

* Automated change: Fix sanity tests

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
pull/29497/head^2
Craig Tiller 3 years ago committed by GitHub
parent 4429f73f6b
commit 7b66a593cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/core/lib/transport/bdp_estimator.cc
  2. 2
      src/core/lib/transport/bdp_estimator.h
  3. 7
      src/core/lib/transport/byte_stream.cc
  4. 5
      src/core/lib/transport/byte_stream.h
  5. 10
      src/core/lib/transport/connectivity_state.cc
  6. 2
      src/core/lib/transport/connectivity_state.h
  7. 6
      src/core/lib/transport/error_utils.cc
  8. 5
      src/core/lib/transport/error_utils.h
  9. 1
      src/core/lib/transport/metadata_batch.cc
  10. 20
      src/core/lib/transport/metadata_batch.h
  11. 2
      src/core/lib/transport/parsed_metadata.cc
  12. 9
      src/core/lib/transport/parsed_metadata.h
  13. 2
      src/core/lib/transport/status_conversion.cc
  14. 2
      src/core/lib/transport/status_conversion.h
  15. 8
      src/core/lib/transport/timeout_encoding.cc
  16. 5
      src/core/lib/transport/timeout_encoding.h
  17. 10
      src/core/lib/transport/transport.cc
  18. 24
      src/core/lib/transport/transport.h
  19. 10
      src/core/lib/transport/transport_impl.h
  20. 19
      src/core/lib/transport/transport_op_string.cc
  21. 1
      tools/dockerfile/grpc_iwyu/iwyu.sh

@ -23,7 +23,9 @@
#include <inttypes.h>
#include <stdlib.h>
#include "src/core/lib/gpr/useful.h"
#include <algorithm>
#include "src/core/lib/iomgr/exec_ctx.h"
grpc_core::TraceFlag grpc_bdp_estimator_trace(false, "bdp_estimator");

@ -25,10 +25,12 @@
#include <stdbool.h>
#include <stdint.h>
#include <grpc/impl/codegen/gpr_types.h>
#include <grpc/support/log.h>
#include <grpc/support/time.h>
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/gprpp/time.h"
#include "src/core/lib/iomgr/exec_ctx.h"
extern grpc_core::TraceFlag grpc_bdp_estimator_trace;

@ -20,13 +20,14 @@
#include "src/core/lib/transport/byte_stream.h"
#include <stdlib.h>
#include <string.h>
#include <memory>
#include <utility>
#include <grpc/slice_buffer.h>
#include <grpc/support/log.h>
#include "src/core/lib/gprpp/memory.h"
#include "src/core/lib/slice/slice_internal.h"
#include "src/core/lib/slice/slice_refcount.h"
namespace grpc_core {

@ -21,10 +21,15 @@
#include <grpc/support/port_platform.h>
#include <stddef.h>
#include <stdint.h>
#include <grpc/slice.h>
#include <grpc/slice_buffer.h>
#include "src/core/lib/gprpp/orphanable.h"
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/error.h"
/** Internal bit flag for grpc_begin_message's \a flags signaling the use of
* compression for the message. (Does not apply for stream compression.) */

@ -20,13 +20,15 @@
#include "src/core/lib/transport/connectivity_state.h"
#include <string.h>
#include <string>
#include <type_traits>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include "src/core/lib/iomgr/combiner.h"
#include "src/core/lib/gprpp/debug_location.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/exec_ctx.h"
namespace grpc_core {

@ -24,10 +24,12 @@
#include <atomic>
#include <map>
#include <memory>
#include <utility>
#include "absl/status/status.h"
#include <grpc/grpc.h>
#include <grpc/impl/codegen/connectivity_state.h>
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/gprpp/orphanable.h"

@ -20,11 +20,13 @@
#include "src/core/lib/transport/error_utils.h"
#include <stdint.h>
#include "absl/strings/string_view.h"
#include <grpc/support/string_util.h>
#include "src/core/lib/gprpp/status_helper.h"
#include "src/core/lib/iomgr/error_internal.h"
#include "src/core/lib/slice/slice_internal.h"
#include "src/core/lib/transport/status_conversion.h"
static grpc_error_handle recursively_find_error_with_field(

@ -21,8 +21,13 @@
#include <grpc/support/port_platform.h>
#include <string>
#include "absl/status/status.h"
#include <grpc/status.h>
#include "src/core/lib/gprpp/time.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/transport/http2_errors.h"

@ -17,7 +17,6 @@
#include "src/core/lib/transport/metadata_batch.h"
#include "absl/strings/escaping.h"
#include "absl/strings/str_join.h"
namespace grpc_core {
namespace metadata_detail {

@ -22,19 +22,38 @@
#include <grpc/support/port_platform.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <cstdint>
#include <limits>
#include <string>
#include <type_traits>
#include <utility>
#include "absl/container/inlined_vector.h"
#include "absl/functional/function_ref.h"
#include "absl/meta/type_traits.h"
#include "absl/strings/match.h"
#include "absl/strings/numbers.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "absl/types/optional.h"
#include <grpc/grpc.h>
#include <grpc/impl/codegen/compression_types.h>
#include <grpc/slice.h>
#include <grpc/status.h>
#include <grpc/support/log.h>
#include <grpc/support/time.h>
#include "src/core/lib/compression/compression_internal.h"
#include "src/core/lib/gprpp/chunked_vector.h"
#include "src/core/lib/gprpp/table.h"
#include "src/core/lib/gprpp/time.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/resource_quota/arena.h"
#include "src/core/lib/slice/slice.h"
#include "src/core/lib/surface/validate_metadata.h"
#include "src/core/lib/transport/parsed_metadata.h"
@ -458,6 +477,7 @@ struct HttpStatusMetadata : public SimpleIntBasedMetadata<uint32_t, 0> {
// "secret" metadata trait used to pass load balancing token between filters.
// This should not be exposed outside of gRPC core.
class GrpcLbClientStats;
struct GrpcLbClientStatsMetadata {
static constexpr bool kRepeatable = false;
static absl::string_view key() { return "grpclb_client_stats"; }

@ -16,6 +16,8 @@
#include "src/core/lib/transport/parsed_metadata.h"
#include "src/core/lib/slice/slice_refcount.h"
namespace grpc_core {
namespace metadata_detail {

@ -17,11 +17,20 @@
#include <grpc/support/port_platform.h>
#include <string.h>
#include <cstdint>
#include <string>
#include <type_traits>
#include <utility>
#include "absl/functional/function_ref.h"
#include "absl/meta/type_traits.h"
#include "absl/strings/match.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include <grpc/slice.h>
#include "src/core/lib/gprpp/time.h"
#include "src/core/lib/iomgr/error.h"

@ -20,6 +20,8 @@
#include "src/core/lib/transport/status_conversion.h"
#include "src/core/lib/iomgr/exec_ctx.h"
grpc_http2_error_code grpc_status_to_http2_error(grpc_status_code status) {
switch (status) {
case GRPC_STATUS_OK:

@ -22,7 +22,9 @@
#include <grpc/support/port_platform.h>
#include <grpc/grpc.h>
#include <grpc/status.h>
#include "src/core/lib/gprpp/time.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/transport/http2_errors.h"

@ -20,14 +20,10 @@
#include "src/core/lib/transport/timeout_encoding.h"
#include <stdio.h>
#include <string.h>
#include <cstdint>
#include "absl/base/attributes.h"
#include <grpc/support/log.h>
#include "src/core/lib/gpr/string.h"
#include <grpc/support/time.h>
namespace grpc_core {

@ -21,6 +21,11 @@
#include <grpc/support/port_platform.h>
#include <stdint.h>
#include "absl/types/optional.h"
#include "src/core/lib/gprpp/time.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/slice/slice.h"

@ -22,18 +22,12 @@
#include <string.h>
#include <grpc/support/alloc.h>
#include <grpc/support/atm.h>
#include <grpc/support/log.h>
#include <grpc/support/sync.h>
#include <new>
#include "src/core/lib/gpr/alloc.h"
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/gprpp/memory.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/iomgr/executor.h"
#include "src/core/lib/iomgr/iomgr.h"
#include "src/core/lib/slice/slice_internal.h"
#include "src/core/lib/slice/slice_string_helpers.h"
#include "src/core/lib/transport/transport_impl.h"
grpc_core::DebugOnlyTraceFlag grpc_trace_stream_refcount(false,

@ -22,22 +22,46 @@
#include <grpc/support/port_platform.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <functional>
#include <string>
#include "absl/status/status.h"
#include "absl/strings/string_view.h"
#include "absl/types/optional.h"
#include <grpc/impl/codegen/connectivity_state.h>
#include <grpc/slice.h>
#include <grpc/status.h>
#include <grpc/support/atm.h>
#include <grpc/support/log.h>
#include "src/core/lib/channel/context.h"
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/gprpp/debug_location.h"
#include "src/core/lib/gprpp/orphanable.h"
#include "src/core/lib/gprpp/ref_counted.h"
#include "src/core/lib/iomgr/call_combiner.h"
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/endpoint.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/polling_entity.h"
#include "src/core/lib/iomgr/pollset.h"
#include "src/core/lib/iomgr/pollset_set.h"
#include "src/core/lib/promise/arena_promise.h"
#include "src/core/lib/promise/context.h"
#include "src/core/lib/promise/latch.h"
#include "src/core/lib/resource_quota/arena.h"
#include "src/core/lib/slice/slice.h"
#include "src/core/lib/slice/slice_internal.h"
#include "src/core/lib/transport/byte_stream.h"
#include "src/core/lib/transport/connectivity_state.h"
#include "src/core/lib/transport/metadata_batch.h"
struct grpc_transport_stream_op_batch_payload;
/* Minimum and maximum protocol accepted versions. */
#define GRPC_PROTOCOL_VERSION_MAX_MAJOR 2
#define GRPC_PROTOCOL_VERSION_MAX_MINOR 1

@ -21,6 +21,16 @@
#include <grpc/support/port_platform.h>
#include <stddef.h>
#include "absl/strings/string_view.h"
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/endpoint.h"
#include "src/core/lib/iomgr/pollset.h"
#include "src/core/lib/iomgr/pollset_set.h"
#include "src/core/lib/promise/arena_promise.h"
#include "src/core/lib/resource_quota/arena.h"
#include "src/core/lib/transport/transport.h"
typedef struct grpc_transport_vtable {

@ -18,25 +18,24 @@
#include <grpc/support/port_platform.h>
#include <inttypes.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <memory>
#include <string>
#include <vector>
#include "absl/strings/escaping.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
#include <grpc/support/alloc.h>
#include <grpc/support/string_util.h>
#include <grpc/support/log.h>
#include "src/core/lib/channel/channel_stack.h"
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/slice/slice_string_helpers.h"
#include "src/core/lib/gprpp/orphanable.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/transport/byte_stream.h"
#include "src/core/lib/transport/connectivity_state.h"
#include "src/core/lib/transport/metadata_batch.h"
#include "src/core/lib/transport/transport.h"
/* These routines are here to facilitate debugging - they produce string
representations of various transport data structures */

@ -35,6 +35,7 @@ export ENABLED_MODULES='
src/core/lib/slice
src/core/lib/resource_quota
src/core/lib/promise
src/core/lib/transport
src/core/lib/uri
'

Loading…
Cancel
Save