diff --git a/BUILD b/BUILD index d2f56cd4ecd..e5083fb874d 100644 --- a/BUILD +++ b/BUILD @@ -342,6 +342,7 @@ GRPCXX_PUBLIC_HDRS = [ "include/grpcpp/impl/client_unary_call.h", "include/grpcpp/impl/codegen/core_codegen.h", "include/grpcpp/impl/completion_queue_tag.h", + "include/grpcpp/impl/create_auth_context.h", "include/grpcpp/impl/delegating_channel.h", "include/grpcpp/impl/grpc_library.h", "include/grpcpp/impl/intercepted_channel.h", diff --git a/CMakeLists.txt b/CMakeLists.txt index ea97f9b6c06..b904e0569bf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3446,6 +3446,7 @@ foreach(_hdr include/grpcpp/impl/codegen/sync_stream.h include/grpcpp/impl/codegen/time.h include/grpcpp/impl/completion_queue_tag.h + include/grpcpp/impl/create_auth_context.h include/grpcpp/impl/delegating_channel.h include/grpcpp/impl/grpc_library.h include/grpcpp/impl/intercepted_channel.h @@ -4138,6 +4139,7 @@ foreach(_hdr include/grpcpp/impl/codegen/sync_stream.h include/grpcpp/impl/codegen/time.h include/grpcpp/impl/completion_queue_tag.h + include/grpcpp/impl/create_auth_context.h include/grpcpp/impl/delegating_channel.h include/grpcpp/impl/grpc_library.h include/grpcpp/impl/intercepted_channel.h diff --git a/build_autogenerated.yaml b/build_autogenerated.yaml index b56c1ed7962..bbadba3b2e8 100644 --- a/build_autogenerated.yaml +++ b/build_autogenerated.yaml @@ -2821,6 +2821,7 @@ libs: - include/grpcpp/impl/codegen/sync_stream.h - include/grpcpp/impl/codegen/time.h - include/grpcpp/impl/completion_queue_tag.h + - include/grpcpp/impl/create_auth_context.h - include/grpcpp/impl/delegating_channel.h - include/grpcpp/impl/grpc_library.h - include/grpcpp/impl/intercepted_channel.h @@ -3244,6 +3245,7 @@ libs: - include/grpcpp/impl/codegen/sync_stream.h - include/grpcpp/impl/codegen/time.h - include/grpcpp/impl/completion_queue_tag.h + - include/grpcpp/impl/create_auth_context.h - include/grpcpp/impl/delegating_channel.h - include/grpcpp/impl/grpc_library.h - include/grpcpp/impl/intercepted_channel.h diff --git a/gRPC-C++.podspec b/gRPC-C++.podspec index 8cc2d97d6f3..f5593353367 100644 --- a/gRPC-C++.podspec +++ b/gRPC-C++.podspec @@ -147,6 +147,7 @@ Pod::Spec.new do |s| 'include/grpcpp/impl/codegen/sync_stream.h', 'include/grpcpp/impl/codegen/time.h', 'include/grpcpp/impl/completion_queue_tag.h', + 'include/grpcpp/impl/create_auth_context.h', 'include/grpcpp/impl/delegating_channel.h', 'include/grpcpp/impl/grpc_library.h', 'include/grpcpp/impl/intercepted_channel.h', diff --git a/include/grpcpp/client_context.h b/include/grpcpp/client_context.h index 4caecb7d800..12161aba543 100644 --- a/include/grpcpp/client_context.h +++ b/include/grpcpp/client_context.h @@ -41,8 +41,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/include/grpcpp/impl/codegen/create_auth_context.h b/include/grpcpp/impl/codegen/create_auth_context.h index 817988f3aa2..b3a10428f30 100644 --- a/include/grpcpp/impl/codegen/create_auth_context.h +++ b/include/grpcpp/impl/codegen/create_auth_context.h @@ -21,15 +21,7 @@ // IWYU pragma: private -#include - -#include -#include - -namespace grpc { - -std::shared_ptr CreateAuthContext(grpc_call* call); - -} // namespace grpc +/// TODO(chengyuc): Remove this file after solving compatibility. +#include #endif // GRPCPP_IMPL_CODEGEN_CREATE_AUTH_CONTEXT_H diff --git a/include/grpcpp/impl/create_auth_context.h b/include/grpcpp/impl/create_auth_context.h new file mode 100644 index 00000000000..e6c8c2ae76f --- /dev/null +++ b/include/grpcpp/impl/create_auth_context.h @@ -0,0 +1,34 @@ +/* + * + * Copyright 2015 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#ifndef GRPCPP_IMPL_CREATE_AUTH_CONTEXT_H +#define GRPCPP_IMPL_CREATE_AUTH_CONTEXT_H + +#include + +#include +#include + +namespace grpc { + +/// TODO(ctiller): not sure we want to make this a permanent thing +std::shared_ptr CreateAuthContext(grpc_call* call); + +} // namespace grpc + +#endif // GRPCPP_IMPL_CREATE_AUTH_CONTEXT_H diff --git a/tools/doxygen/Doxyfile.c++ b/tools/doxygen/Doxyfile.c++ index 045a6fa6ad5..3609a72fc68 100644 --- a/tools/doxygen/Doxyfile.c++ +++ b/tools/doxygen/Doxyfile.c++ @@ -1011,6 +1011,7 @@ include/grpcpp/impl/codegen/sync.h \ include/grpcpp/impl/codegen/sync_stream.h \ include/grpcpp/impl/codegen/time.h \ include/grpcpp/impl/completion_queue_tag.h \ +include/grpcpp/impl/create_auth_context.h \ include/grpcpp/impl/delegating_channel.h \ include/grpcpp/impl/grpc_library.h \ include/grpcpp/impl/intercepted_channel.h \ diff --git a/tools/doxygen/Doxyfile.c++.internal b/tools/doxygen/Doxyfile.c++.internal index c132ac30c06..0ec213d2dab 100644 --- a/tools/doxygen/Doxyfile.c++.internal +++ b/tools/doxygen/Doxyfile.c++.internal @@ -1011,6 +1011,7 @@ include/grpcpp/impl/codegen/sync.h \ include/grpcpp/impl/codegen/sync_stream.h \ include/grpcpp/impl/codegen/time.h \ include/grpcpp/impl/completion_queue_tag.h \ +include/grpcpp/impl/create_auth_context.h \ include/grpcpp/impl/delegating_channel.h \ include/grpcpp/impl/grpc_library.h \ include/grpcpp/impl/intercepted_channel.h \