blob: 6073a6e9a38ede110a4ac291342fdeccd599c226 [file] [log] [blame]
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef QUICHE_QUIC_CORE_IO_QUIC_DEFAULT_EVENT_LOOP_H_
#define QUICHE_QUIC_CORE_IO_QUIC_DEFAULT_EVENT_LOOP_H_
#include <memory>
#include "quiche/quic/core/io/quic_event_loop.h"
namespace quic {
// Returns the default implementation of QuicheEventLoop. The embedders can
// override this using the platform API. The factory pointer returned is an
// unowned static variable.
QUICHE_NO_EXPORT QuicEventLoopFactory* GetDefaultEventLoop();
// Returns the factory objects for all event loops. This is particularly useful
// for the unit tests. The factory pointers returned are unowned static
// variables.
QUICHE_NO_EXPORT std::vector<QuicEventLoopFactory*> GetAllSupportedEventLoops();
} // namespace quic
#endif // QUICHE_QUIC_CORE_IO_QUIC_DEFAULT_EVENT_LOOP_H_