chromium/third_party/grpc/src/src/cpp/common/channel_arguments.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 <algorithm>
#include <list>
#include <string>
#include <vector>

#include <grpc/impl/compression_types.h>
#include <grpc/support/log.h>
#include <grpcpp/grpcpp.h>
#include <grpcpp/resource_quota.h>
#include <grpcpp/support/channel_arguments.h>

#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/iomgr/socket_mutator.h"

namespace grpc {

ChannelArguments::ChannelArguments() {}

ChannelArguments::ChannelArguments(const ChannelArguments& other)
    :{}

ChannelArguments::~ChannelArguments() {}

void ChannelArguments::Swap(ChannelArguments& other) {}

void ChannelArguments::SetCompressionAlgorithm(
    grpc_compression_algorithm algorithm) {}

void ChannelArguments::SetGrpclbFallbackTimeout(int fallback_timeout) {}

void ChannelArguments::SetSocketMutator(grpc_socket_mutator* mutator) {}

// Note: a second call to this will add in front the result of the first call.
// An example is calling this on a copy of ChannelArguments which already has a
// prefix. The user can build up a prefix string by calling this multiple times,
// each with more significant identifier.
void ChannelArguments::SetUserAgentPrefix(
    const std::string& user_agent_prefix) {}

void ChannelArguments::SetResourceQuota(
    const grpc::ResourceQuota& resource_quota) {}

void ChannelArguments::SetMaxReceiveMessageSize(int size) {}

void ChannelArguments::SetMaxSendMessageSize(int size) {}

void ChannelArguments::SetLoadBalancingPolicyName(
    const std::string& lb_policy_name) {}

void ChannelArguments::SetServiceConfigJSON(
    const std::string& service_config_json) {}

void ChannelArguments::SetInt(const std::string& key, int value) {}

void ChannelArguments::SetPointer(const std::string& key, void* value) {}

void ChannelArguments::SetPointerWithVtable(
    const std::string& key, void* value,
    const grpc_arg_pointer_vtable* vtable) {}

void ChannelArguments::SetString(const std::string& key,
                                 const std::string& value) {}

void ChannelArguments::SetChannelArgs(grpc_channel_args* channel_args) const {}

}  // namespace grpc