aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/client_context.h
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-08 07:44:54 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-08 07:44:54 -0700
commit98d60fcb9adbf3379ddf3595f5a5de8289415f92 (patch)
treeae9101c565f64fcbcb4eb8cd7b5d3e3bdb5eb720 /include/grpc++/client_context.h
parentd9b6fcfee4cb986f148762a4a7d0794de9b3ba62 (diff)
parent3b685b744818ec73580aff961f85c22b11e61ab0 (diff)
Merge github.com:grpc/grpc into hosts-need-names-too
Diffstat (limited to 'include/grpc++/client_context.h')
-rw-r--r--include/grpc++/client_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/grpc++/client_context.h b/include/grpc++/client_context.h
index 5e10875260..4d96d862e7 100644
--- a/include/grpc++/client_context.h
+++ b/include/grpc++/client_context.h
@@ -46,6 +46,7 @@
struct grpc_call;
struct grpc_completion_queue;
+struct census_context;
namespace grpc {
@@ -107,6 +108,10 @@ class ClientContext {
creds_ = creds;
}
+ // Get and set census context
+ void set_census_context(census_context* ccp) { census_context_ = ccp; }
+ census_context* get_census_context() const { return census_context_; }
+
void TryCancel();
private:
@@ -154,6 +159,7 @@ class ClientContext {
gpr_timespec deadline_;
grpc::string authority_;
std::shared_ptr<Credentials> creds_;
+ census_context* census_context_;
std::multimap<grpc::string, grpc::string> send_initial_metadata_;
std::multimap<grpc::string, grpc::string> recv_initial_metadata_;
std::multimap<grpc::string, grpc::string> trailing_metadata_;