summaryrefslogtreecommitdiff
path: root/chromium/content/renderer/impression_conversions.cc
blob: 81c7aee83b8ef86d52f88699f3c9fedc995e2362 (plain)
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
// 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.

#include "content/renderer/impression_conversions.h"

#include <algorithm>
#include <iterator>

#include "third_party/blink/public/platform/web_security_origin.h"
#include "third_party/blink/public/platform/web_string.h"

namespace content {

Impression ConvertWebImpressionToImpression(
    const blink::WebImpression& web_impression) {
  Impression result;

  result.impression_data = web_impression.impression_data;
  result.expiry = web_impression.expiry;
  result.reporting_origin = web_impression.reporting_origin;
  result.conversion_destination = web_impression.conversion_destination;

  return result;
}

}  // namespace content