13 #ifndef __NET_NETWORKCOOKIESTORE_H__
14 #define __NET_NETWORKCOOKIESTORE_H__
32 #define NO_DISCARD SYS_NO_DISCARD_RESULT
45 ForcePersistentCookies
60 void setPersistentStoragePath(
const UT_StringRef &storage_location);
63 virtual void loadAsync();
78 virtual CookieList cookiesForUrl(
const UT_Url &url);
80 virtual bool setCookiesFromUrl(
const CookieList &cookies,
83 void deleteAllCookies();
85 void setStoragePolicy(StoragePolicy
policy);
90 void debugPrintStore()
const;
102 void createDBFileLocationIfNeeded();
109 for (
auto&& it : myCookies)
118 bool isAsync()
const {
return myMode == Async; }
122 void setAllCookies(
const CookieList &cookies);
133 class PendingOperation
144 : myType(type), myCookie(cookie)
158 : myDomain(cookie.domain())
159 , myName(cookie.
name())
160 , myPath(cookie.
path())
166 return myDomain == other.myDomain && myName == other.myName
167 && myPath == other.myPath;
171 return !(*
this == other);
177 SYShashCombine(h, myName.hash());
178 SYShashCombine(h, myPath.hash());
182 friend std::size_t
hash_value(
const UniqueKey &key)
211 void refreshIfRequired();
212 static bool isPersistentCookie(StoragePolicy
policy,
220 StoragePolicy myStoragePolicy;
223 PendingOperationList myPendingOps;
227 #endif // __NET_NETWORKCOOKIESTORE_H__
hboost::math::policies::policy< hboost::math::policies::domain_error< hboost::math::policies::ignore_error >, hboost::math::policies::pole_error< hboost::math::policies::ignore_error >, hboost::math::policies::overflow_error< hboost::math::policies::ignore_error >, hboost::math::policies::underflow_error< hboost::math::policies::ignore_error >, hboost::math::policies::denorm_error< hboost::math::policies::ignore_error >, hboost::math::policies::rounding_error< hboost::math::policies::ignore_error >, hboost::math::policies::evaluation_error< hboost::math::policies::ignore_error >, hboost::math::policies::indeterminate_result_error< hboost::math::policies::ignore_error > > policy
GLsizei const GLchar *const * path
std::size_t SYS_HashType
Define the type for hash values.
void setCapacity(exint new_capacity)
std::optional< T > UT_Optional
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
exint emplace_back(S &&...s)
GLuint const GLchar * name
CookieList allCookies() const
std::error_code UT_ErrorCode
const UT_StringHolder & persistentStorage() const
GLfloat GLfloat GLfloat GLfloat h
bool operator!=(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
size_t hash_value(const CH_ChannelRef &ref)
FMT_CONSTEXPR auto find(Ptr first, Ptr last, T value, Ptr &out) -> bool