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

Side by Side Diff: background.js

Issue 11627039: Added ad counting functionality (Closed)
Patch Set: Created Sept. 18, 2013, 10:07 a.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 | « _locales/en_US/messages.json ('k') | include.preload.js » ('j') | 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 <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2013 Eyeo GmbH 3 * Copyright (C) 2006-2013 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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 // onRequest and sendRequest are deprecated as of Chrome 20
19 var ChromeCompat = {
20 tabs: {
21 onMessage: ("onMessage" in chrome.tabs) ? chrome.tabs.onMessage : chrome.tab s.onRequest,
22 sendMessage: ("sendMessage" in chrome.tabs) ? chrome.tabs.sendMessage : chro me.tabs.sendRequest
23 }
24 };
25
18 with(require("filterClasses")) 26 with(require("filterClasses"))
19 { 27 {
20 this.Filter = Filter; 28 this.Filter = Filter;
21 this.RegExpFilter = RegExpFilter; 29 this.RegExpFilter = RegExpFilter;
22 this.BlockingFilter = BlockingFilter; 30 this.BlockingFilter = BlockingFilter;
23 this.WhitelistFilter = WhitelistFilter; 31 this.WhitelistFilter = WhitelistFilter;
24 } 32 }
25 with(require("subscriptionClasses")) 33 with(require("subscriptionClasses"))
26 { 34 {
27 this.Subscription = Subscription; 35 this.Subscription = Subscription;
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 tabs.forEach(refreshIconAndContextMenu); 756 tabs.forEach(refreshIconAndContextMenu);
749 }); 757 });
750 }); 758 });
751 759
752 setTimeout(function() 760 setTimeout(function()
753 { 761 {
754 var notificationToShow = Notification.getNextToShow(); 762 var notificationToShow = Notification.getNextToShow();
755 if (notificationToShow) 763 if (notificationToShow)
756 showNotification(notificationToShow); 764 showNotification(notificationToShow);
757 }, 3 * 60 * 1000); 765 }, 3 * 60 * 1000);
OLDNEW
« no previous file with comments | « _locales/en_US/messages.json ('k') | include.preload.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld