#ifndef CEF_LIBCEF_COMMON_NET_SERVICE_NET_SERVICE_UTIL_H_
#define CEF_LIBCEF_COMMON_NET_SERVICE_NET_SERVICE_UTIL_H_
#include <map>
#include <string>
#include "include/internal/cef_types_wrappers.h"
#include "base/memory/scoped_refptr.h"
#include "net/cookies/cookie_constants.h"
namespace net {
class CanonicalCookie;
class HttpResponseHeaders;
struct RedirectInfo;
}
namespace network {
struct ResourceRequest;
}
class GURL;
namespace net_service {
extern const char kHTTPLocationHeaderName[];
extern const char kHTTPSetCookieHeaderName[];
extern const char kContentTypeApplicationFormURLEncoded[];
std::string MakeStatusLine(int status_code,
const std::string& status_text,
bool for_replacement);
std::string MakeContentTypeValue(const std::string& mime_type,
const std::string& charset);
scoped_refptr<net::HttpResponseHeaders> MakeResponseHeaders(
int status_code,
const std::string& status_text,
const std::string& mime_type,
const std::string& charset,
int64_t content_length,
const std::multimap<std::string, std::string>& extra_headers,
bool allow_existing_header_override);
net::RedirectInfo MakeRedirectInfo(const network::ResourceRequest& request,
const net::HttpResponseHeaders* headers,
const GURL& new_location,
int status_code);
bool MakeCefCookie(const net::CanonicalCookie& cc, CefCookie& cookie);
bool MakeCefCookie(const GURL& url,
const std::string& cookie_line,
CefCookie& cookie);
net::CookieSameSite MakeCookieSameSite(cef_cookie_same_site_t value);
net::CookiePriority MakeCookiePriority(cef_cookie_priority_t value);
}
#endif