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.
|
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#ifndef SHELL_BROWSER_NET_COOKIE_DETAILS_H_
|
|
|
|
#define SHELL_BROWSER_NET_COOKIE_DETAILS_H_
|
2017-11-27 03:27:14 +00:00
|
|
|
|
|
|
|
#include "base/macros.h"
|
2018-10-04 18:08:56 +00:00
|
|
|
#include "services/network/public/mojom/cookie_manager.mojom.h"
|
|
|
|
|
|
|
|
namespace net {
|
|
|
|
class CanonicalCookie;
|
|
|
|
}
|
2017-11-27 03:27:14 +00:00
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2017-11-27 03:27:14 +00:00
|
|
|
|
|
|
|
struct CookieDetails {
|
|
|
|
public:
|
|
|
|
CookieDetails(const net::CanonicalCookie* cookie_copy,
|
|
|
|
bool is_removed,
|
2018-10-04 18:08:56 +00:00
|
|
|
network::mojom::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-10-04 18:08:56 +00:00
|
|
|
network::mojom::CookieChangeCause cause;
|
2017-11-27 03:27:14 +00:00
|
|
|
};
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|
2017-11-27 03:27:14 +00:00
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#endif // SHELL_BROWSER_NET_COOKIE_DETAILS_H_
|