forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeneric_factory_context.h
28 lines (22 loc) · 986 Bytes
/
generic_factory_context.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include "envoy/server/factory_context.h"
namespace Envoy {
namespace Server {
class GenericFactoryContextImpl : public Server::Configuration::GenericFactoryContext {
public:
GenericFactoryContextImpl(Server::Configuration::ServerFactoryContext& server_context,
ProtobufMessage::ValidationVisitor& validation_visitor);
GenericFactoryContextImpl(Server::Configuration::GenericFactoryContext& generic_context);
// Server::Configuration::GenericFactoryContext
Server::Configuration::ServerFactoryContext& serverFactoryContext() const override;
ProtobufMessage::ValidationVisitor& messageValidationVisitor() const override;
Stats::Scope& scope() override;
Init::Manager& initManager() override;
private:
Server::Configuration::ServerFactoryContext& server_context_;
ProtobufMessage::ValidationVisitor& validation_visitor_;
Stats::Scope& scope_;
Init::Manager& init_manager_;
};
} // namespace Server
} // namespace Envoy