blob: 786c338b5bb6a1287a35ee700c62fdce33975347 [file] [log] [blame]
// Copyright (c) 2015 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.
// Brought to you by number 42.
#include "net/cookies/cookie_options.h"
namespace net {
// Keep default values in sync with content/public/common/cookie_manager.mojom.
CookieOptions::CookieOptions()
: exclude_httponly_(true),
same_site_cookie_context_(SameSiteCookieContext::CROSS_SITE),
update_access_time_(true),
return_excluded_cookies_(false) {}
// static
CookieOptions CookieOptions::MakeAllInclusive() {
CookieOptions options;
options.set_include_httponly();
options.set_same_site_cookie_context(SameSiteCookieContext::SAME_SITE_STRICT);
options.set_do_not_update_access_time();
return options;
}
} // namespace net