#include "services/network/session_cleanup_cookie_store.h"
#include <list>
#include <memory>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/ref_counted.h"
#include "base/task/sequenced_task_runner.h"
#include "base/values.h"
#include "net/cookies/canonical_cookie.h"
#include "net/cookies/cookie_constants.h"
#include "net/cookies/cookie_util.h"
#include "net/extras/sqlite/cookie_crypto_delegate.h"
#include "net/log/net_log.h"
#include "url/gurl.h"
namespace network {
namespace {
base::Value::Dict CookieStoreOriginFiltered(
const std::string& origin,
bool is_https,
net::NetLogCaptureMode capture_mode) { … }
}
SessionCleanupCookieStore::SessionCleanupCookieStore(
const scoped_refptr<net::SQLitePersistentCookieStore>& cookie_store)
: … { … }
SessionCleanupCookieStore::~SessionCleanupCookieStore() { … }
void SessionCleanupCookieStore::DeleteSessionCookies(
DeleteCookiePredicate delete_cookie_predicate) { … }
void SessionCleanupCookieStore::Load(LoadedCallback loaded_callback,
const net::NetLogWithSource& net_log) { … }
void SessionCleanupCookieStore::LoadCookiesForKey(
const std::string& key,
LoadedCallback loaded_callback) { … }
void SessionCleanupCookieStore::AddCookie(const net::CanonicalCookie& cc) { … }
void SessionCleanupCookieStore::UpdateCookieAccessTime(
const net::CanonicalCookie& cc) { … }
void SessionCleanupCookieStore::DeleteCookie(const net::CanonicalCookie& cc) { … }
void SessionCleanupCookieStore::SetForceKeepSessionState() { … }
void SessionCleanupCookieStore::SetBeforeCommitCallback(
base::RepeatingClosure callback) { … }
void SessionCleanupCookieStore::Flush(base::OnceClosure callback) { … }
void SessionCleanupCookieStore::OnLoad(
LoadedCallback loaded_callback,
std::vector<std::unique_ptr<net::CanonicalCookie>> cookies) { … }
}