Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikravis committed Apr 23, 2019
1 parent be94795 commit 2049b6c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion include/grpcpp/security/credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <grpcpp/security/credentials_impl.h>

namespace grpc {
class Channel;

typedef ::grpc_impl::ChannelCredentials ChannelCredentials;
typedef ::grpc_impl::CallCredentials CallCredentials;
Expand Down
14 changes: 7 additions & 7 deletions include/grpcpp/security/credentials_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ struct grpc_call;

namespace grpc {
class ChannelArguments;
class Channel;
} // namespace grpc

namespace grpc_impl {

class Channel;
class ChannelCredentials;
class CallCredentials;
class SecureCallCredentials;
class SecureChannelCredentials;

std::shared_ptr<grpc::Channel> CreateCustomChannelImpl(
std::shared_ptr<Channel> CreateCustomChannel(
const grpc::string& target,
const std::shared_ptr<ChannelCredentials>& creds,
const grpc::ChannelArguments& args);

namespace experimental {
std::shared_ptr<grpc::Channel> CreateCustomChannelWithInterceptors(
std::shared_ptr<Channel> CreateCustomChannelWithInterceptors(
const grpc::string& target,
const std::shared_ptr<ChannelCredentials>& creds,
const grpc::ChannelArguments& args,
Expand Down Expand Up @@ -78,12 +78,12 @@ class ChannelCredentials : private grpc::GrpcLibraryCodegen {
virtual SecureChannelCredentials* AsSecureCredentials() = 0;

private:
friend std::shared_ptr<grpc::Channel> CreateCustomChannelImpl(
friend std::shared_ptr<Channel> CreateCustomChannel(
const grpc::string& target,
const std::shared_ptr<ChannelCredentials>& creds,
const grpc::ChannelArguments& args);

friend std::shared_ptr<grpc::Channel>
friend std::shared_ptr<Channel>
grpc_impl::experimental::CreateCustomChannelWithInterceptors(
const grpc::string& target,
const std::shared_ptr<ChannelCredentials>& creds,
Expand All @@ -92,12 +92,12 @@ class ChannelCredentials : private grpc::GrpcLibraryCodegen {
grpc::experimental::ClientInterceptorFactoryInterface>>
interceptor_creators);

virtual std::shared_ptr<grpc::Channel> CreateChannelImpl(
virtual std::shared_ptr<Channel> CreateChannel(
const grpc::string& target, const grpc::ChannelArguments& args) = 0;

// This function should have been a pure virtual function, but it is
// implemented as a virtual function so that it does not break API.
virtual std::shared_ptr<grpc::Channel> CreateChannelWithInterceptors(
virtual std::shared_ptr<Channel> CreateChannelWithInterceptors(
const grpc::string& target, const grpc::ChannelArguments& args,
std::vector<std::unique_ptr<
grpc::experimental::ClientInterceptorFactoryInterface>>
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/client/insecure_credentials.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace grpc_impl {
namespace {
class InsecureChannelCredentialsImpl final : public ChannelCredentials {
public:
std::shared_ptr<grpc::Channel> CreateChannelImpl(
std::shared_ptr<grpc::Channel> CreateChannel(
const grpc::string& target, const grpc::ChannelArguments& args) override {
return CreateChannelWithInterceptors(
target, args,
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/client/secure_credentials.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ SecureChannelCredentials::SecureChannelCredentials(
g_gli_initializer.summon();
}

std::shared_ptr<grpc::Channel> SecureChannelCredentials::CreateChannelImpl(
std::shared_ptr<grpc::Channel> SecureChannelCredentials::CreateChannel(
const grpc::string& target, const grpc::ChannelArguments& args) {
return CreateChannelWithInterceptors(
target, args,
Expand Down

0 comments on commit 2049b6c

Please sign in to comment.