summaryrefslogtreecommitdiff
path: root/chromium/net/third_party/quiche/src/quiche/common/platform/api/quiche_flags.h
blob: 5fb23bf709dd7be75616b75d88061ed06045f218 (plain)
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
// Copyright 2020 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_COMMON_PLATFORM_API_QUICHE_FLAGS_H_
#define QUICHE_COMMON_PLATFORM_API_QUICHE_FLAGS_H_

#include "quiche_platform_impl/quiche_flags_impl.h"

// Flags accessed via GetQuicheReloadableFlag/GetQuicheRestartFlag are temporary
// boolean flags that are used to enable or disable code behavior changes.  The
// current list is available in the quiche/quic/core/quic_flags_list.h file.
#define GetQuicheReloadableFlag(module, flag) \
  GetQuicheReloadableFlagImpl(module, flag)
#define SetQuicheReloadableFlag(module, flag, value) \
  SetQuicheReloadableFlagImpl(module, flag, value)
#define GetQuicheRestartFlag(module, flag) \
  GetQuicheRestartFlagImpl(module, flag)
#define SetQuicheRestartFlag(module, flag, value) \
  SetQuicheRestartFlagImpl(module, flag, value)

// Flags accessed via GetQuicheFlag are permanent flags used to control QUICHE
// library behavior.  The current list is available in the
// quiche/quic/core/quic_protocol_flags_list.h file.
#define GetQuicheFlag(flag) GetQuicheFlagImpl(flag)
#define SetQuicheFlag(flag, value) SetQuicheFlagImpl(flag, value)

#endif  // QUICHE_COMMON_PLATFORM_API_QUICHE_FLAGS_H_