2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-11-24 01:56:06 +03:00
|
|
|
|
|
|
|
#include "nsIStreamListener.idl"
|
|
|
|
|
|
|
|
interface nsITabParent;
|
|
|
|
|
2014-03-28 00:11:50 +04:00
|
|
|
%{C++
|
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
class HttpChannelParentListener;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%}
|
|
|
|
|
|
|
|
[ptr] native HttpChannelParentListener(mozilla::net::HttpChannelParentListener);
|
|
|
|
|
2010-11-24 01:56:06 +03:00
|
|
|
/**
|
|
|
|
* Implemented by chrome side of IPC protocols.
|
|
|
|
*/
|
|
|
|
|
2014-11-12 02:05:55 +03:00
|
|
|
[scriptable, uuid(e0fc4801-6030-4653-a59f-1fb282bd1a04)]
|
2010-11-24 01:56:06 +03:00
|
|
|
interface nsIParentChannel : nsIStreamListener
|
|
|
|
{
|
2014-03-28 00:11:50 +04:00
|
|
|
/**
|
|
|
|
* Called to set the HttpChannelParentListener object (optional).
|
|
|
|
*/
|
|
|
|
[noscript] void setParentListener(in HttpChannelParentListener listener);
|
|
|
|
|
2014-11-12 02:05:55 +03:00
|
|
|
/**
|
|
|
|
* Called to notify the HttpChannelChild that tracking protection was
|
|
|
|
* disabled for this load.
|
|
|
|
*/
|
|
|
|
[noscript] void notifyTrackingProtectionDisabled();
|
|
|
|
|
2017-02-21 04:46:36 +03:00
|
|
|
/**
|
|
|
|
* Called to set matched information when URL matches SafeBrowsing list.
|
|
|
|
* @param aList
|
|
|
|
* Name of the list that matched
|
|
|
|
* @param aProvider
|
|
|
|
* Name of provider that matched
|
2017-08-04 13:20:13 +03:00
|
|
|
* @param aFullHash
|
|
|
|
* String represents full hash that matched
|
2017-02-21 04:46:36 +03:00
|
|
|
*/
|
|
|
|
[noscript] void setClassifierMatchedInfo(in ACString aList,
|
|
|
|
in ACString aProvider,
|
2017-08-04 13:20:13 +03:00
|
|
|
in ACString aFullHash);
|
2017-02-21 04:46:36 +03:00
|
|
|
|
2016-12-16 23:19:19 +03:00
|
|
|
/**
|
|
|
|
* Called to notify the HttpChannelChild that the resource being loaded
|
|
|
|
* is on the tracking protection list.
|
|
|
|
*/
|
|
|
|
[noscript] void notifyTrackingResource();
|
|
|
|
|
2010-11-24 01:56:06 +03:00
|
|
|
/**
|
|
|
|
* Called to invoke deletion of the IPC protocol.
|
|
|
|
*/
|
|
|
|
void delete();
|
|
|
|
};
|