aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/impl/server_builder_option.h
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2016-04-29 13:03:06 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2016-04-29 13:05:36 -0700
commita42ec2134117f4a4db994467edcff52e6f347f3d (patch)
treeae99c80b4fffec89f01c6c6d6a75760e9a3af055 /include/grpc++/impl/server_builder_option.h
parentf921f2bee1e5a24f0259868ce0a622abfa24d331 (diff)
Server builder plugin
Diffstat (limited to 'include/grpc++/impl/server_builder_option.h')
-rw-r--r--include/grpc++/impl/server_builder_option.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/grpc++/impl/server_builder_option.h b/include/grpc++/impl/server_builder_option.h
index bcb19824fd..2b7e89f5e5 100644
--- a/include/grpc++/impl/server_builder_option.h
+++ b/include/grpc++/impl/server_builder_option.h
@@ -34,6 +34,10 @@
#ifndef GRPCXX_IMPL_SERVER_BUILDER_OPTION_H
#define GRPCXX_IMPL_SERVER_BUILDER_OPTION_H
+#include <map>
+#include <memory>
+
+#include <grpc++/impl/server_builder_plugin.h>
#include <grpc++/support/channel_arguments.h>
namespace grpc {
@@ -44,6 +48,10 @@ class ServerBuilderOption {
virtual ~ServerBuilderOption() {}
/// Alter the \a ChannelArguments used to create the gRPC server.
virtual void UpdateArguments(ChannelArguments* args) = 0;
+ /// Alter the ServerBuilderPlugin map that will be added into ServerBuilder.
+ virtual void UpdatePlugins(
+ std::map<grpc::string, std::unique_ptr<ServerBuilderPlugin> >*
+ plugins) = 0;
};
} // namespace grpc