summaryrefslogtreecommitdiff
path: root/chromium/content/public/browser/cookie_access_details.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/public/browser/cookie_access_details.h')
-rw-r--r--chromium/content/public/browser/cookie_access_details.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/chromium/content/public/browser/cookie_access_details.h b/chromium/content/public/browser/cookie_access_details.h
new file mode 100644
index 00000000000..56d2d41ca92
--- /dev/null
+++ b/chromium/content/public/browser/cookie_access_details.h
@@ -0,0 +1,38 @@
+// Copyright 2020 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_COOKIE_ACCESS_DETAILS_H_
+#define CONTENT_PUBLIC_BROWSER_COOKIE_ACCESS_DETAILS_H_
+
+#include "content/common/content_export.h"
+#include "net/cookies/canonical_cookie.h"
+#include "services/network/public/mojom/cookie_access_observer.mojom.h"
+#include "url/gurl.h"
+
+namespace content {
+
+struct CONTENT_EXPORT CookieAccessDetails {
+ using Type = network::mojom::CookieAccessDetails::Type;
+
+ CookieAccessDetails();
+ CookieAccessDetails(Type type,
+ const GURL& url,
+ const GURL& first_party_url,
+ const net::CookieList& list,
+ bool blocked_by_policy = false);
+ ~CookieAccessDetails();
+
+ CookieAccessDetails(const CookieAccessDetails&);
+ CookieAccessDetails& operator=(const CookieAccessDetails&);
+
+ Type type;
+ GURL url;
+ GURL first_party_url;
+ net::CookieList cookie_list;
+ bool blocked_by_policy;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_COOKIE_ACCESS_DETAILS_H_