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

Side by Side Diff: lib/utils.js

Issue 5964611362750464: Issue 2233 - Adapted array type annotations for JsDoc 3 (Closed)
Patch Set: Re-added removed argument name Created March 30, 2015, 10:51 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/subscriptionClasses.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 if (channel.loadGroup && channel.loadGroup.notificationCallbacks) 246 if (channel.loadGroup && channel.loadGroup.notificationCallbacks)
247 return channel.loadGroup.notificationCallbacks.getInterface(Ci.nsILoadCo ntext).associatedWindow; 247 return channel.loadGroup.notificationCallbacks.getInterface(Ci.nsILoadCo ntext).associatedWindow;
248 } catch(e) {} 248 } catch(e) {}
249 249
250 return null; 250 return null;
251 }, 251 },
252 252
253 /** 253 /**
254 * Generates filter subscription checksum. 254 * Generates filter subscription checksum.
255 * 255 *
256 * @param {Array of String} lines filter subscription lines (with checksum lin e removed) 256 * @param {string[]} lines filter subscription lines (with checksum line remov ed)
257 * @return {String} checksum or null 257 * @return {String} checksum or null
258 */ 258 */
259 generateChecksum: function(lines) 259 generateChecksum: function(lines)
260 { 260 {
261 let stream = null; 261 let stream = null;
262 try 262 try
263 { 263 {
264 // Checksum is an MD5 checksum (base64-encoded without the trailing "=") o f 264 // Checksum is an MD5 checksum (base64-encoded without the trailing "=") o f
265 // all lines in UTF-8 without the checksum line, joined with "\n". 265 // all lines in UTF-8 without the checksum line, joined with "\n".
266 266
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 Cu.reportError(e); 789 Cu.reportError(e);
790 // Expected, ctypes isn't supported in Gecko 1.9.2 790 // Expected, ctypes isn't supported in Gecko 1.9.2
791 return null; 791 return null;
792 } 792 }
793 }); 793 });
794 794
795 if ("@mozilla.org/messenger/headerparser;1" in Cc) 795 if ("@mozilla.org/messenger/headerparser;1" in Cc)
796 XPCOMUtils.defineLazyServiceGetter(Utils, "headerParser", "@mozilla.org/messen ger/headerparser;1", "nsIMsgHeaderParser"); 796 XPCOMUtils.defineLazyServiceGetter(Utils, "headerParser", "@mozilla.org/messen ger/headerparser;1", "nsIMsgHeaderParser");
797 else 797 else
798 Utils.headerParser = null; 798 Utils.headerParser = null;
OLDNEW
« no previous file with comments | « lib/subscriptionClasses.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld