Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(581)

Side by Side Diff: content/common/net/reporting.mojom

Issue 2881593002: Reporting: Plumb into RenderFrame via Mojo (Closed)
Patch Set: Enumify. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698