| // Copyright 2020 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "content/browser/attribution_reporting/attribution_trigger.h" |
| |
| #include <utility> |
| |
| #include "components/attribution_reporting/suitable_origin.h" |
| #include "services/network/public/cpp/trigger_attestation.h" |
| #include "third_party/abseil-cpp/absl/types/optional.h" |
| |
| namespace content { |
| |
| AttributionTrigger::AttributionTrigger( |
| attribution_reporting::SuitableOrigin reporting_origin, |
| attribution_reporting::TriggerRegistration registration, |
| attribution_reporting::SuitableOrigin destination_origin, |
| absl::optional<network::TriggerAttestation> attestation, |
| bool is_within_fenced_frame) |
| : reporting_origin_(std::move(reporting_origin)), |
| registration_(std::move(registration)), |
| destination_origin_(std::move(destination_origin)), |
| attestation_(std::move(attestation)), |
| is_within_fenced_frame_(is_within_fenced_frame) {} |
| |
| AttributionTrigger::AttributionTrigger(const AttributionTrigger&) = default; |
| |
| AttributionTrigger& AttributionTrigger::operator=(const AttributionTrigger&) = |
| default; |
| |
| AttributionTrigger::AttributionTrigger(AttributionTrigger&&) = default; |
| |
| AttributionTrigger& AttributionTrigger::operator=(AttributionTrigger&&) = |
| default; |
| |
| AttributionTrigger::~AttributionTrigger() = default; |
| |
| } // namespace content |