| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module content.mojom; |
| 6 |
| 7 import "mojo/common/values.mojom"; |
| 8 import "url/mojo/url.mojom"; |
| 9 |
| 10 // Instead of accepting an arbitrary string type, this interface limits the |
| 11 // renderer to a fixed set of expected report types. If you're implementing |
| 12 // Reporting support for a new feature in the renderer, feel free to add your |
| 13 // feature here and in //content/browser/net/reporting_service_proxy.cc. |
| 14 enum ReportingReportType { |
| 15 CSP, |
| 16 INTERVENTION, |
| 17 DEPRECATION |
| 18 }; |
| 19 |
| 20 // Proxies Reporting API (https://wicg.github.io/reporting/) reports from the |
| 21 // renderer into the network stack (where Reporting lives). |
| 22 interface ReportingServiceProxy { |
| 23 // Attempts to queue a report using the Reporting API. |
| 24 // |
| 25 // |url| is the URL that generated the report. |
| 26 // |
| 27 // |group| is the endpoint group that should receive the report. This should |
| 28 // be configured for the feature using Reporting by the site that generated |
| 29 // the report. |
| 30 // |
| 31 // |type| is the type of report, from the above enum. |
| 32 // |
| 33 // |body| is the body. It can be any valid Value. |
| 34 QueueReport(url.mojom.Url url, |
| 35 string group, |
| 36 ReportingReportType type, |
| 37 mojo.common.mojom.Value body); |
| 38 }; |
| OLD | NEW |