1 // Copyright 2024 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef NET_COOKIES_COOKIE_ACCESS_PARAMS_H_ 6 #define NET_COOKIES_COOKIE_ACCESS_PARAMS_H_ 7 8 #include "net/base/net_export.h" 9 #include "net/cookies/cookie_constants.h" 10 11 namespace net { 12 13 // Params used to determine whether a cookie can be accessed. 14 struct NET_EXPORT CookieAccessParams { 15 CookieAccessParams() = delete; 16 CookieAccessParams(CookieAccessSemantics access_semantics, 17 bool delegate_treats_url_as_trustworthy); 18 19 // |access_semantics| is the access mode of the cookie access check. 20 CookieAccessSemantics access_semantics = CookieAccessSemantics::UNKNOWN; 21 22 // |delegate_treats_url_as_trustworthy| should be true iff the 23 // CookieAccessDelegate has authorized access to secure cookies from URLs 24 // which might not otherwise be able to do so. 25 bool delegate_treats_url_as_trustworthy = false; 26 }; 27 28 } // namespace net 29 30 #endif // NET_COOKIES_COOKIE_ACCESS_PARAMS_H_ 31