GRPC Core  43.0.0
extensible.h
Go to the documentation of this file.
1 // Copyright 2024 The gRPC Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef GRPC_EVENT_ENGINE_EXTENSIBLE_H
16 #define GRPC_EVENT_ENGINE_EXTENSIBLE_H
17 
18 #include "absl/strings/string_view.h"
19 
21 
22 namespace grpc_event_engine {
23 namespace experimental {
24 
25 class Extensible {
26  public:
62  virtual void* QueryExtension(absl::string_view /*id*/) { return nullptr; }
63 
64  protected:
65  ~Extensible() = default;
66 };
67 
68 } // namespace experimental
69 } // namespace grpc_event_engine
70 
71 #endif // GRPC_EVENT_ENGINE_EXTENSIBLE_H
grpc_event_engine::experimental::Extensible::QueryExtension
virtual void * QueryExtension(absl::string_view)
A method which allows users to query whether an implementation supports a specified extension.
Definition: extensible.h:62
grpc_event_engine::experimental::Extensible::~Extensible
~Extensible()=default
grpc_event_engine::experimental::Extensible
Definition: extensible.h:25
grpc_event_engine
Definition: endpoint_config.h:24
port_platform.h