chromium/third_party/grpc/src/src/cpp/client/client_context.cc

//
//
// 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.
//
//

#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) {}

}  // namespace grpc