Clang format

pull/8281/head
Garrett Casto 8 years ago
parent 7ec31718f4
commit a2a325048d
  1. 12
      src/cpp/client/cronet_credentials.cc

@ -1,32 +1,30 @@
#include <grpc++/security/credentials.h> #include <grpc++/security/credentials.h>
#include <grpc/grpc_cronet.h>
#include <grpc++/channel.h> #include <grpc++/channel.h>
#include <grpc++/support/channel_arguments.h> #include <grpc++/support/channel_arguments.h>
#include <grpc/grpc_cronet.h>
#include "src/cpp/client/create_channel_internal.h" #include "src/cpp/client/create_channel_internal.h"
namespace grpc { namespace grpc {
class CronetChannelCredentialsImpl GRPC_FINAL : public ChannelCredentials { class CronetChannelCredentialsImpl GRPC_FINAL : public ChannelCredentials {
public: public:
CronetChannelCredentialsImpl(void* engine) CronetChannelCredentialsImpl(void* engine) : engine_(engine) {}
: engine_(engine) {}
std::shared_ptr<grpc::Channel> CreateChannel( std::shared_ptr<grpc::Channel> CreateChannel(
const string& target, const grpc::ChannelArguments& args) GRPC_OVERRIDE { const string& target, const grpc::ChannelArguments& args) GRPC_OVERRIDE {
grpc_channel_args channel_args; grpc_channel_args channel_args;
args.SetChannelArgs(&channel_args); args.SetChannelArgs(&channel_args);
return CreateChannelInternal( return CreateChannelInternal(
"", "", grpc_cronet_secure_channel_create(engine_, target.c_str(),
grpc_cronet_secure_channel_create( &channel_args, nullptr));
engine_, target.c_str(), &channel_args, nullptr));
} }
SecureChannelCredentials* AsSecureCredentials() GRPC_OVERRIDE { SecureChannelCredentials* AsSecureCredentials() GRPC_OVERRIDE {
return nullptr; return nullptr;
} }
private: private:
void* engine_; void* engine_;
}; };

Loading…
Cancel
Save