Chromium Code Reviews| Index: content/common/net/reporting.mojom |
| diff --git a/content/common/net/reporting.mojom b/content/common/net/reporting.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ab0c201454023bf8668f6076c48bdd19973a2a5b |
| --- /dev/null |
| +++ b/content/common/net/reporting.mojom |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2017 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 content.mojom; |
| + |
| +import "mojo/common/values.mojom"; |
| +import "url/mojo/url.mojom"; |
| + |
| +interface ReportingServiceProxy { |
| + // Attempts to queue a report using the Reporting API. |
|
Rick Byers
2017/05/19 20:35:02
What's the implications of "attempt" here? I.e. i
dcheng
2017/05/22 09:30:38
I guess this is a web spec somewhere, might be nic
|
| + // |
| + // |url| is the URL that generated the report. |
| + // |
| + // |group| is the endpoint group that should receive the report. This should |
| + // be configured for the feature using Reporting by the site that generated |
| + // the report. |
| + // |
| + // |type| is the type of report (for example, "csp" or "hpkp"). This should be |
| + // set to a fixed value by the feature using Reporting. |
|
dcheng
2017/05/22 09:30:38
Is something that could be represented as an enum,
Julia Tuttle
2017/05/22 14:30:41
It could be an enum, I guess -- it is controlled b
dcheng
2017/05/22 21:24:37
Hmmm, I think so: in general we prefer to pass mor
|
| + // |
| + // |body| is the body. It can be any valid Value. |
|
Rick Byers
2017/05/19 20:35:02
I was assuming this would be a string, not a base:
Julia Tuttle
2017/05/22 14:30:41
It wouldn't be super difficult to make this a JSON
|
| + QueueReport(url.mojom.Url url, |
| + string group, |
| + string type, |
| + mojo.common.mojom.Value body); |
| +}; |