nsINetworkErrorLogging.idl (964B)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim:set ts=2 sw=2 sts=2 et cindent: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #include "nsISupports.idl" 8 interface nsIHttpChannel; 9 10 [scriptable, uuid(53b81d9c-3b62-4ecb-b8d2-5f5a17914c9e)] 11 interface nsINetworkErrorReport : nsISupports 12 { 13 readonly attribute AUTF8String body; 14 readonly attribute AString group; 15 readonly attribute AString url; 16 }; 17 18 [scriptable, uuid(391ba410-0a68-42f7-b3e4-3ec26db645c0)] 19 interface nsINetworkErrorLogging : nsISupports 20 { 21 /** 22 * Called by nsHttpChannel to register a NEL policy 23 */ 24 void registerPolicy(in nsIHttpChannel aChannel); 25 26 /** 27 * Maybe send error log payload if theres a policy. 28 */ 29 nsINetworkErrorReport generateNELReport(in nsIHttpChannel aChannel); 30 };