diff options
author | yang-g <yangg@google.com> | 2015-07-07 23:33:40 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2015-07-07 23:33:40 -0700 |
commit | ab575d46f73f4e11a243fb6b5dfa0ef748447727 (patch) | |
tree | 822514f345fa29bdbe7d26965871e7c62578cc12 /include/grpc++/client_context.h | |
parent | 6406f1826739048ceac9e43afe0761ebf8b12ed7 (diff) | |
parent | 3b685b744818ec73580aff961f85c22b11e61ab0 (diff) |
merge head and resolve conflict
Diffstat (limited to 'include/grpc++/client_context.h')
-rw-r--r-- | include/grpc++/client_context.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/grpc++/client_context.h b/include/grpc++/client_context.h index 26bd7c830f..7adaaa6e6f 100644 --- a/include/grpc++/client_context.h +++ b/include/grpc++/client_context.h @@ -47,6 +47,7 @@ struct grpc_call; struct grpc_completion_queue; +struct census_context; namespace grpc { @@ -110,6 +111,10 @@ class ClientContext { std::shared_ptr<const AuthContext> auth_context() const; + // 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: @@ -158,6 +163,7 @@ class ClientContext { grpc::string authority_; std::shared_ptr<Credentials> creds_; mutable std::shared_ptr<const AuthContext> auth_context_; + 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_; |