Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
Remove include/grpcpp/impl/codegen/create_auth_context.h (grpc#31359)
Browse files Browse the repository at this point in the history
* Remove `include/grpcpp/impl/codegen/create_auth_context.h`

* Update

* Automated change: Fix sanity tests
  • Loading branch information
ralphchung authored Nov 22, 2022
1 parent 26f77fe commit d5b285d
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 11 deletions.
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions CMakeLists.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions build_autogenerated.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions gRPC-C++.podspec

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion include/grpcpp/client_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#include <grpc/impl/codegen/compression_types.h>
#include <grpc/impl/codegen/propagation_bits.h>
#include <grpcpp/impl/codegen/core_codegen_interface.h>
#include <grpcpp/impl/codegen/create_auth_context.h>
#include <grpcpp/impl/codegen/sync.h>
#include <grpcpp/impl/create_auth_context.h>
#include <grpcpp/impl/metadata_map.h>
#include <grpcpp/impl/rpc_method.h>
#include <grpcpp/security/auth_context.h>
Expand Down
12 changes: 2 additions & 10 deletions include/grpcpp/impl/codegen/create_auth_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,7 @@

// IWYU pragma: private

#include <memory>

#include <grpc/impl/codegen/grpc_types.h>
#include <grpcpp/impl/codegen/security/auth_context.h>

namespace grpc {

std::shared_ptr<const AuthContext> CreateAuthContext(grpc_call* call);

} // namespace grpc
/// TODO(chengyuc): Remove this file after solving compatibility.
#include <grpcpp/impl/create_auth_context.h>

#endif // GRPCPP_IMPL_CODEGEN_CREATE_AUTH_CONTEXT_H
34 changes: 34 additions & 0 deletions include/grpcpp/impl/create_auth_context.h
Original file line number Diff line number Diff line change
@@ -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 <memory>

#include <grpc/impl/codegen/grpc_types.h>
#include <grpcpp/security/auth_context.h>

namespace grpc {

/// TODO(ctiller): not sure we want to make this a permanent thing
std::shared_ptr<const AuthContext> CreateAuthContext(grpc_call* call);

} // namespace grpc

#endif // GRPCPP_IMPL_CREATE_AUTH_CONTEXT_H
1 change: 1 addition & 0 deletions tools/doxygen/Doxyfile.c++
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions tools/doxygen/Doxyfile.c++.internal

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d5b285d

Please sign in to comment.