chromium/net/ssl/ssl_connection_status_flags.h

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_SSL_SSL_CONNECTION_STATUS_FLAGS_H_
#define NET_SSL_SSL_CONNECTION_STATUS_FLAGS_H_

#include <stdint.h>

#include "base/check_op.h"

namespace net {

// Status flags for SSLInfo::connection_status.
enum {};

// NOTE: the SSL version enum constants must be between 0 and
// SSL_CONNECTION_VERSION_MASK, inclusive. These values are persisted to disk
// and used in UMA, so they must remain stable.
enum SSLVersion {};
static_assert;

inline uint16_t SSLConnectionStatusToCipherSuite(int connection_status) {}

inline SSLVersion SSLConnectionStatusToVersion(int connection_status) {}

inline void SSLConnectionStatusSetCipherSuite(uint16_t cipher_suite,
                                              int* connection_status) {}

inline void SSLConnectionStatusSetVersion(int version, int* connection_status) {}

}  // namespace net

#endif  // NET_SSL_SSL_CONNECTION_STATUS_FLAGS_H_