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

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

Issue 1295903005: [DevTools] Implementation of resource requests blocked by specific urls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 4 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 | Annotate | Revision Log
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 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 } 1292 }
1293 contextMenu.appendItem(WebInspector.UIString.capitalize("Copy ^all as HA R"), this._copyAll.bind(this)); 1293 contextMenu.appendItem(WebInspector.UIString.capitalize("Copy ^all as HA R"), this._copyAll.bind(this));
1294 1294
1295 contextMenu.appendSeparator(); 1295 contextMenu.appendSeparator();
1296 contextMenu.appendItem(WebInspector.UIString.capitalize("Save as HAR wit h ^content"), this._exportAll.bind(this)); 1296 contextMenu.appendItem(WebInspector.UIString.capitalize("Save as HAR wit h ^content"), this._exportAll.bind(this));
1297 1297
1298 contextMenu.appendSeparator(); 1298 contextMenu.appendSeparator();
1299 contextMenu.appendItem(WebInspector.UIString.capitalize("Clear ^browser ^cache"), this._clearBrowserCache.bind(this)); 1299 contextMenu.appendItem(WebInspector.UIString.capitalize("Clear ^browser ^cache"), this._clearBrowserCache.bind(this));
1300 contextMenu.appendItem(WebInspector.UIString.capitalize("Clear ^browser ^cookies"), this._clearBrowserCookies.bind(this)); 1300 contextMenu.appendItem(WebInspector.UIString.capitalize("Clear ^browser ^cookies"), this._clearBrowserCookies.bind(this));
1301 1301
1302 var manager = WebInspector.multitargetNetworkManager;
1303 if (Runtime.experiments.isEnabled("blockedURLs") && request && !manager. blockedURLs().has(request.url)) {
1304 contextMenu.appendSeparator();
1305 contextMenu.appendItem(WebInspector.UIString.capitalize("Block ^requ est URL"), manager.toggleURLBlocked.bind(manager, request.url));
1306 }
1307
1302 if (request && request.resourceType() === WebInspector.resourceTypes.XHR ) { 1308 if (request && request.resourceType() === WebInspector.resourceTypes.XHR ) {
1303 contextMenu.appendSeparator(); 1309 contextMenu.appendSeparator();
1304 contextMenu.appendItem(WebInspector.UIString("Replay XHR"), request. replayXHR.bind(request)); 1310 contextMenu.appendItem(WebInspector.UIString("Replay XHR"), request. replayXHR.bind(request));
1305 contextMenu.appendSeparator(); 1311 contextMenu.appendSeparator();
1306 } 1312 }
1307 1313
1308 contextMenu.show(); 1314 contextMenu.show();
1309 }, 1315 },
1310 1316
1311 _harRequests: function() 1317 _harRequests: function()
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
2061 return false; 2067 return false;
2062 return true; 2068 return true;
2063 } 2069 }
2064 2070
2065 WebInspector.NetworkLogView.EventTypes = { 2071 WebInspector.NetworkLogView.EventTypes = {
2066 RequestSelected: "RequestSelected", 2072 RequestSelected: "RequestSelected",
2067 SearchCountUpdated: "SearchCountUpdated", 2073 SearchCountUpdated: "SearchCountUpdated",
2068 SearchIndexUpdated: "SearchIndexUpdated", 2074 SearchIndexUpdated: "SearchIndexUpdated",
2069 UpdateRequest: "UpdateRequest" 2075 UpdateRequest: "UpdateRequest"
2070 }; 2076 };
OLDNEW
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | Source/devtools/front_end/network/NetworkPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698