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

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

Issue 2881593002: Reporting: Plumb into RenderFrame via Mojo (Closed)
Patch Set: rebase, make requested changes, format 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
« no previous file with comments | « content/common/net/OWNERS ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 interface ReportingServiceProxy {
11 // 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
12 //
13 // |url| is the URL that generated the report.
14 //
15 // |group| is the endpoint group that should receive the report. This should
16 // be configured for the feature using Reporting by the site that generated
17 // the report.
18 //
19 // |type| is the type of report (for example, "csp" or "hpkp"). This should be
20 // 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
21 //
22 // |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
23 QueueReport(url.mojom.Url url,
24 string group,
25 string type,
26 mojo.common.mojom.Value body);
27 };
OLDNEW
« no previous file with comments | « content/common/net/OWNERS ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698