diff options
Diffstat (limited to 'osp/public/presentation/presentation_connection.h')
-rw-r--r-- | osp/public/presentation/presentation_connection.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/osp/public/presentation/presentation_connection.h b/osp/public/presentation/presentation_connection.h index ee0cff1b..4ea37ce7 100644 --- a/osp/public/presentation/presentation_connection.h +++ b/osp/public/presentation/presentation_connection.h @@ -62,7 +62,6 @@ class Connection { class Delegate { public: Delegate() = default; - virtual ~Delegate() = default; // State changes. virtual void OnConnected() = 0; @@ -85,6 +84,9 @@ class Connection { // A binary message was received. virtual void OnBinaryMessage(const std::vector<uint8_t>& data) = 0; + protected: + virtual ~Delegate() = default; + private: OSP_DISALLOW_COPY_AND_ASSIGN(Delegate); }; |