| // 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. |
| |
| module blink.mojom; |
| |
| import "url/mojom/origin.mojom"; |
| |
| struct Conversion { |
| // Origin of the conversion registration redirect. |
| url.mojom.Origin reporting_origin; |
| |
| // Conversion data specified in conversion redirect. 0 is used as a |
| // default if none is provided. |
| uint64 conversion_data = 0; |
| }; |
| |
| // Sent from renderer to browser process when a resource request matching the |
| // .well-known conversion registration path is intercepted. |
| interface ConversionHost { |
| // Registers a conversion on the site with data provided in the conversion |
| // registration redirect. Only called for requests loaded in the top-level |
| // browsing context. |
| RegisterConversion(Conversion conversion); |
| }; |