#include "third_party/blink/renderer/modules/cookie_store/cookie_change_event.h"
#include <utility>
#include "services/network/public/mojom/cookie_manager.mojom-blink.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_cookie_change_event_init.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_cookie_list_item.h"
#include "third_party/blink/renderer/core/dom/dom_high_res_time_stamp.h"
#include "third_party/blink/renderer/modules/event_modules.h"
#include "third_party/blink/renderer/platform/heap/visitor.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
CookieChangeEvent::~CookieChangeEvent() = default;
const AtomicString& CookieChangeEvent::InterfaceName() const { … }
void CookieChangeEvent::Trace(Visitor* visitor) const { … }
CookieChangeEvent::CookieChangeEvent() = default;
CookieChangeEvent::CookieChangeEvent(const AtomicString& type,
HeapVector<Member<CookieListItem>> changed,
HeapVector<Member<CookieListItem>> deleted)
: … { … }
CookieChangeEvent::CookieChangeEvent(const AtomicString& type,
const CookieChangeEventInit* initializer)
: … { … }
namespace {
String ToCookieListItemSameSite(net::CookieSameSite same_site) { … }
String ToCookieListItemEffectiveSameSite(
network::mojom::CookieEffectiveSameSite effective_same_site) { … }
}
CookieListItem* CookieChangeEvent::ToCookieListItem(
const net::CanonicalCookie& canonical_cookie,
const network::mojom::blink::CookieEffectiveSameSite& effective_same_site,
bool is_deleted) { … }
void CookieChangeEvent::ToEventInfo(
const network::mojom::blink::CookieChangeInfoPtr& change_info,
HeapVector<Member<CookieListItem>>& changed,
HeapVector<Member<CookieListItem>>& deleted) { … }
}