diff options
author | Craig Tiller <ctiller@google.com> | 2015-02-23 10:53:01 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-02-23 10:53:01 -0800 |
commit | ad9d0c472d158d7b4df3250793d475724ac3516a (patch) | |
tree | 8a46d9af382a8fd9b6e6d62badcf51a1a63c3246 /include/grpc++ | |
parent | 42bc87c0979f7a9f3084366fd466d382cf86ec17 (diff) |
Remove dynamic_cast
Diffstat (limited to 'include/grpc++')
-rw-r--r-- | include/grpc++/credentials.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/grpc++/credentials.h b/include/grpc++/credentials.h index b462b450da..26e9b556fe 100644 --- a/include/grpc++/credentials.h +++ b/include/grpc++/credentials.h @@ -42,11 +42,19 @@ namespace grpc { class ChannelArguments; class ChannelInterface; +class SecureCredentials; class Credentials { public: virtual ~Credentials(); + protected: + friend std::unique_ptr<Credentials> ComposeCredentials( + const std::unique_ptr<Credentials>& creds1, + const std::unique_ptr<Credentials>& creds2); + + virtual SecureCredentials* AsSecureCredentials() = 0; + private: friend std::shared_ptr<ChannelInterface> CreateChannel( const grpc::string& target, const std::unique_ptr<Credentials>& creds, |