chromium/components/variations/net/omnibox_http_headers.cc

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

#include "components/variations/net/omnibox_http_headers.h"

#include "base/metrics/field_trial.h"
#include "components/google/core/common/google_util.h"
#include "services/network/public/cpp/resource_request.h"
#include "url/gurl.h"

namespace variations {

// The header used to report the state of the omnibox on-device search
// suggestions provider. This header is only set when the provider is in a
// non-default state, and only reports one of two possible values: "Enabled_V2"
// or "Control_V2".
const char kOmniboxOnDeviceSuggestionsHeader[] =;

// Whether to enable reporting the header. Included as a quick escape hatch in
// case of crashes.
BASE_FEATURE();

std::string GetHeaderValue() {}

// Returns whether the header should be sent for this URL. The header is only
// sent to Google domains served over HTTPS.
bool ShouldAppendHeader(const GURL& url) {}

void AppendOmniboxOnDeviceSuggestionsHeaderIfNeeded(
    const GURL& url,
    network::ResourceRequest* request) {}

}  // namespace variations