Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js

Issue 2692653003: [Devtools] Added Enable/Disable for request blocking in network (Closed)
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/chromium/src into ADD_ENABLE_DISABLE_REQ… Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698