2017-11-27 03:27:14 +00:00
|
|
|
// Copyright (c) 2017 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2017-11-28 07:23:42 +00:00
|
|
|
#ifndef ATOM_BROWSER_NET_COOKIE_DETAILS_H_
|
|
|
|
#define ATOM_BROWSER_NET_COOKIE_DETAILS_H_
|
2017-11-27 03:27:14 +00:00
|
|
|
|
|
|
|
#include "base/macros.h"
|
2018-04-08 17:50:21 +00:00
|
|
|
#include "net/cookies/cookie_change_dispatcher.h"
|
2017-11-27 03:27:14 +00:00
|
|
|
|
2017-11-28 07:23:42 +00:00
|
|
|
namespace atom {
|
2017-11-27 03:27:14 +00:00
|
|
|
|
|
|
|
struct CookieDetails {
|
|
|
|
public:
|
|
|
|
CookieDetails(const net::CanonicalCookie* cookie_copy,
|
|
|
|
bool is_removed,
|
2018-04-08 17:50:21 +00:00
|
|
|
net::CookieChangeCause cause)
|
2017-11-27 03:27:14 +00:00
|
|
|
: cookie(cookie_copy), removed(is_removed), cause(cause) {}
|
|
|
|
|
|
|
|
const net::CanonicalCookie* cookie;
|
|
|
|
bool removed;
|
2018-04-08 17:50:21 +00:00
|
|
|
net::CookieChangeCause cause;
|
2017-11-27 03:27:14 +00:00
|
|
|
};
|
|
|
|
|
2017-11-28 07:23:42 +00:00
|
|
|
} // namespace atom
|
2017-11-27 03:27:14 +00:00
|
|
|
|
2017-11-28 07:23:42 +00:00
|
|
|
#endif // ATOM_BROWSER_NET_COOKIE_DETAILS_H_
|