chromium/google_apis/common/api_key_request_util.cc

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

#include "google_apis/common/api_key_request_util.h"

#include "base/version_info/channel.h"
#include "google_apis/google_api_keys.h"
#include "net/base/url_util.h"
#include "net/http/http_request_headers.h"
#include "services/network/public/cpp/resource_request.h"
#include "url/gurl.h"

namespace google_apis {

void AddDefaultAPIKeyToRequest(network::ResourceRequest& request,
                               version_info::Channel channel) {}

void AddAPIKeyToRequest(network::ResourceRequest& request,
                        std::string_view api_key) {}

void AddAPIKeyToRequest(net::HttpRequestHeaders& request_headers,
                        std::string_view api_key) {}

namespace internal {

std::optional<std::string> GetAPIKey(const GURL& url) {}

std::optional<std::string> GetAPIKey(
    const net::HttpRequestHeaders& request_headers) {}

}  // namespace internal

}  // namespace google_apis