blob: 4635b2582dffad2575f889ff935e4c1de03c7da2 [file] [log] [blame]
// Copyright 2017 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 CHROME_BROWSER_CLIENT_HINTS_CLIENT_HINTS_H_
#define CHROME_BROWSER_CLIENT_HINTS_CLIENT_HINTS_H_
#include <memory>
#include "base/memory/ref_counted.h"
class GURL;
namespace content {
class BrowserContext;
}
namespace content_settings {
class CookieSettings;
}
namespace net {
class HttpRequestHeaders;
class URLRequest;
}
namespace client_hints {
// Allow the embedder to return additional headers related to client hints that
// should be sent when fetching |url|. May return a nullptr.
std::unique_ptr<net::HttpRequestHeaders>
GetAdditionalNavigationRequestClientHintsHeaders(
content::BrowserContext* context,
const GURL& url);
// Called before |request| goes on the network.
void RequestBeginning(
net::URLRequest* request,
scoped_refptr<content_settings::CookieSettings> cookie_settings);
} // namespace client_hints
#endif // CHROME_BROWSER_CLIENT_HINTS_CLIENT_HINTS_H_