cookie_details.h 710 B

123456789101112131415161718192021222324252627
  1. // Copyright (c) 2017 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ATOM_BROWSER_NET_COOKIE_DETAILS_H_
  5. #define ATOM_BROWSER_NET_COOKIE_DETAILS_H_
  6. #include "base/macros.h"
  7. #include "net/cookies/cookie_change_dispatcher.h"
  8. namespace atom {
  9. struct CookieDetails {
  10. public:
  11. CookieDetails(const net::CanonicalCookie* cookie_copy,
  12. bool is_removed,
  13. net::CookieChangeCause cause)
  14. : cookie(cookie_copy), removed(is_removed), cause(cause) {}
  15. const net::CanonicalCookie* cookie;
  16. bool removed;
  17. net::CookieChangeCause cause;
  18. };
  19. } // namespace atom
  20. #endif // ATOM_BROWSER_NET_COOKIE_DETAILS_H_