OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> | 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> |
4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 removeBlockedURLIndex.bind(null, blockedDomainIndex)); | 1136 removeBlockedURLIndex.bind(null, blockedDomainIndex)); |
1137 } | 1137 } |
1138 | 1138 |
1139 /** | 1139 /** |
1140 * @param {string} url | 1140 * @param {string} url |
1141 */ | 1141 */ |
1142 function addBlockedURL(url) { | 1142 function addBlockedURL(url) { |
1143 blockedSettingData.push(url); | 1143 blockedSettingData.push(url); |
1144 blockedSetting.set(blockedSettingData); | 1144 blockedSetting.set(blockedSettingData); |
1145 UI.viewManager.showView('network.blocked-urls'); | 1145 UI.viewManager.showView('network.blocked-urls'); |
| 1146 Common.moduleSetting('requestBlockingEnabled').set(true); |
1146 } | 1147 } |
1147 | 1148 |
1148 /** | 1149 /** |
1149 * @param {number} index | 1150 * @param {number} index |
1150 */ | 1151 */ |
1151 function removeBlockedURLIndex(index) { | 1152 function removeBlockedURLIndex(index) { |
1152 blockedSettingData.splice(index, 1); | 1153 blockedSettingData.splice(index, 1); |
1153 blockedSetting.set(blockedSettingData); | 1154 blockedSetting.set(blockedSettingData); |
1154 UI.viewManager.showView('network.blocked-urls'); | 1155 UI.viewManager.showView('network.blocked-urls'); |
1155 } | 1156 } |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1794 */ | 1795 */ |
1795 Network.NetworkGroupLookupInterface = function() {}; | 1796 Network.NetworkGroupLookupInterface = function() {}; |
1796 | 1797 |
1797 Network.NetworkGroupLookupInterface.prototype = { | 1798 Network.NetworkGroupLookupInterface.prototype = { |
1798 /** | 1799 /** |
1799 * @param {!SDK.NetworkRequest} request | 1800 * @param {!SDK.NetworkRequest} request |
1800 * @return {?string} | 1801 * @return {?string} |
1801 */ | 1802 */ |
1802 lookup(request) {} | 1803 lookup(request) {} |
1803 }; | 1804 }; |
OLD | NEW |