1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38

content / public / browser / legacy_tech_cookie_issue_details.h [blame]

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_PUBLIC_BROWSER_LEGACY_TECH_COOKIE_ISSUE_DETAILS_H_
#define CONTENT_PUBLIC_BROWSER_LEGACY_TECH_COOKIE_ISSUE_DETAILS_H_

#include <string>

#include "content/common/content_export.h"
#include "url/gurl.h"

namespace content {

// Container to send Cookie Issue Details to Legacy Tech Report.
struct CONTENT_EXPORT LegacyTechCookieIssueDetails {
  enum AccessOperation { kRead, kWrite };
  LegacyTechCookieIssueDetails();
  LegacyTechCookieIssueDetails(const GURL& transfer_or_script_url,
                               const std::string& name,
                               const std::string& domain,
                               const std::string& path,
                               AccessOperation access_operation);
  LegacyTechCookieIssueDetails(const LegacyTechCookieIssueDetails& other);
  ~LegacyTechCookieIssueDetails();

  bool operator==(const LegacyTechCookieIssueDetails&) const = default;

  GURL transfer_or_script_url;
  std::string name;
  std::string domain;
  std::string path;
  AccessOperation access_operation;
};

}  // namespace content

#endif  // CONTENT_PUBLIC_BROWSER_LEGACY_TECH_COOKIE_ISSUE_DETAILS_H_