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

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: changes 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 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 removeBlockedURLIndex.bind(null, blockedDomainIndex)); 1130 removeBlockedURLIndex.bind(null, blockedDomainIndex));
1131 } 1131 }
1132 1132
1133 /** 1133 /**
1134 * @param {string} url 1134 * @param {string} url
1135 */ 1135 */
1136 function addBlockedURL(url) { 1136 function addBlockedURL(url) {
1137 blockedSettingData.push(url); 1137 blockedSettingData.push(url);
1138 blockedSetting.set(blockedSettingData); 1138 blockedSetting.set(blockedSettingData);
1139 UI.viewManager.showView('network.blocked-urls'); 1139 UI.viewManager.showView('network.blocked-urls');
1140 SDK.multitargetNetworkManager.setRequestBlockingEnabled(true);
1140 } 1141 }
1141 1142
1142 /** 1143 /**
1143 * @param {number} index 1144 * @param {number} index
1144 */ 1145 */
1145 function removeBlockedURLIndex(index) { 1146 function removeBlockedURLIndex(index) {
1146 blockedSettingData.splice(index, 1); 1147 blockedSettingData.splice(index, 1);
1147 blockedSetting.set(blockedSettingData); 1148 blockedSetting.set(blockedSettingData);
1148 UI.viewManager.showView('network.blocked-urls'); 1149 UI.viewManager.showView('network.blocked-urls');
1149 } 1150 }
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 Running: 'running', 1776 Running: 'running',
1776 FromCache: 'from-cache' 1777 FromCache: 'from-cache'
1777 }; 1778 };
1778 1779
1779 /** @type {!Array<string>} */ 1780 /** @type {!Array<string>} */
1780 Network.NetworkLogView._searchKeys = 1781 Network.NetworkLogView._searchKeys =
1781 Object.keys(Network.NetworkLogView.FilterType).map(key => Network.NetworkLog View.FilterType[key]); 1782 Object.keys(Network.NetworkLogView.FilterType).map(key => Network.NetworkLog View.FilterType[key]);
1782 1783
1783 /** @typedef {function(!SDK.NetworkRequest): boolean} */ 1784 /** @typedef {function(!SDK.NetworkRequest): boolean} */
1784 Network.NetworkLogView.Filter; 1785 Network.NetworkLogView.Filter;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698