Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/child/requestNotifier.js

Issue 29329698: Issue 3222 - Improve JSDoc comments (Closed)
Patch Set: Created Nov. 3, 2015, 11:32 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/requestNotifier.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/child/requestNotifier.js
===================================================================
--- a/lib/child/requestNotifier.js
+++ b/lib/child/requestNotifier.js
@@ -23,17 +23,17 @@ let {Services} = Cu.import("resource://g
let {Utils} = require("utils");
let nodeData = new WeakMap();
let windowStats = new WeakMap();
let requestEntryMaxId = 0;
/**
* Active RequestNotifier instances by their ID
- * @type Map
+ * @type Map.<number,RequestNotifier>
*/
let notifiers = new Map();
addMessageListener("AdblockPlus:StartWindowScan", onStartScan);
addMessageListener("AdblockPlus:ShutdownNotifier", onNotifierShutdown);
onShutdown.add(() => {
removeMessageListener("AdblockPlus:StartWindowScan", onStartScan);
@@ -166,17 +166,17 @@ RequestNotifier.prototype =
* @param {Node} node node to attach data to
* @param {Window} topWnd top-level window the node belongs to
* @param {String} contentType request type, e.g. "IMAGE"
* @param {String} docDomain domain of the document that initiated the request
* @param {Boolean} thirdParty will be true if a third-party server has been requested
* @param {String} location the address that has been requested
* @param {Filter} filter filter applied to the request or null if none
*/
-RequestNotifier.addNodeData = function(/**Node*/ node, /**Window*/ topWnd, /**String*/ contentType, /**String*/ docDomain, /**Boolean*/ thirdParty, /**String*/ location, /**Filter*/ filter)
+RequestNotifier.addNodeData = function(node, topWnd, contentType, docDomain, thirdParty, location, filter)
{
let entry = {
id: ++requestEntryMaxId,
type: contentType,
docDomain, thirdParty, location, filter
};
let existingData = nodeData.get(node);
« no previous file with comments | « no previous file | lib/requestNotifier.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld