#include <stdlib.h>
#include <initializer_list>
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "absl/strings/str_format.h"
#include <grpc/compression.h>
#include <grpc/grpc.h>
#include <grpc/impl/compression_types.h>
#include <grpc/status.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/time.h>
#include <grpcpp/channel.h>
#include <grpcpp/client_context.h>
#include <grpcpp/impl/interceptor_common.h>
#include <grpcpp/impl/sync.h>
#include <grpcpp/security/credentials.h>
#include <grpcpp/server_context.h>
#include <grpcpp/support/client_interceptor.h>
#include "src/core/lib/gprpp/crash.h"
namespace grpc {
class Channel;
class DefaultGlobalClientCallbacks final
: public ClientContext::GlobalCallbacks { … };
static DefaultGlobalClientCallbacks* g_default_client_callbacks = …;
static ClientContext::GlobalCallbacks* g_client_callbacks = …;
ClientContext::ClientContext()
: … { … }
ClientContext::~ClientContext() { … }
void ClientContext::set_credentials(
const std::shared_ptr<CallCredentials>& creds) { … }
std::unique_ptr<ClientContext> ClientContext::FromInternalServerContext(
const grpc::ServerContextBase& context, PropagationOptions options) { … }
std::unique_ptr<ClientContext> ClientContext::FromServerContext(
const grpc::ServerContextBase& server_context, PropagationOptions options) { … }
std::unique_ptr<ClientContext> ClientContext::FromCallbackServerContext(
const grpc::CallbackServerContext& server_context,
PropagationOptions options) { … }
void ClientContext::AddMetadata(const std::string& meta_key,
const std::string& meta_value) { … }
void ClientContext::set_call(grpc_call* call,
const std::shared_ptr<Channel>& channel) { … }
void ClientContext::set_compression_algorithm(
grpc_compression_algorithm algorithm) { … }
void ClientContext::TryCancel() { … }
void ClientContext::SendCancelToInterceptors() { … }
std::string ClientContext::peer() const { … }
void ClientContext::SetGlobalCallbacks(GlobalCallbacks* client_callbacks) { … }
}