1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24

content / browser / preloading / prefetch / prefetch_probe_result.h [blame]

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

#ifndef CONTENT_BROWSER_PRELOADING_PREFETCH_PREFETCH_PROBE_RESULT_H_
#define CONTENT_BROWSER_PRELOADING_PREFETCH_PREFETCH_PROBE_RESULT_H_

namespace content {

// The result of an origin probe. See PrefetchOriginProber.
enum class PrefetchProbeResult {
  kNoProbing = 0,
  kDNSProbeSuccess = 1,
  kDNSProbeFailure = 2,
  kTLSProbeSuccess = 3,
  kTLSProbeFailure = 4,
};

// Returns true if the probe result is not a failure.
bool PrefetchProbeResultIsSuccess(PrefetchProbeResult result);

}  // namespace content

#endif  // CONTENT_BROWSER_PRELOADING_PREFETCH_PREFETCH_PROBE_RESULT_H_