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

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: 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 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 contextMenu.appendItem(WebInspector.UIString.capitalize("Copy ^r esponse ^headers"), this._copyResponseHeaders.bind(this, request)); 1282 contextMenu.appendItem(WebInspector.UIString.capitalize("Copy ^r esponse ^headers"), this._copyResponseHeaders.bind(this, request));
1283 if (request.finished) 1283 if (request.finished)
1284 contextMenu.appendItem(WebInspector.UIString.capitalize("Copy ^r esponse"), this._copyResponse.bind(this, request)); 1284 contextMenu.appendItem(WebInspector.UIString.capitalize("Copy ^r esponse"), this._copyResponse.bind(this, request));
1285 1285
1286 if (WebInspector.isWin()) { 1286 if (WebInspector.isWin()) {
1287 contextMenu.appendItem(WebInspector.UIString("Copy as cURL (cmd) "), this._copyCurlCommand.bind(this, request, "win")); 1287 contextMenu.appendItem(WebInspector.UIString("Copy as cURL (cmd) "), this._copyCurlCommand.bind(this, request, "win"));
1288 contextMenu.appendItem(WebInspector.UIString("Copy as cURL (bash )"), this._copyCurlCommand.bind(this, request, "unix")); 1288 contextMenu.appendItem(WebInspector.UIString("Copy as cURL (bash )"), this._copyCurlCommand.bind(this, request, "unix"));
1289 } else { 1289 } else {
1290 contextMenu.appendItem(WebInspector.UIString("Copy as cURL"), th is._copyCurlCommand.bind(this, request, "unix")); 1290 contextMenu.appendItem(WebInspector.UIString("Copy as cURL"), th is._copyCurlCommand.bind(this, request, "unix"));
1291 } 1291 }
1292
1293 function toggleRequestURLBlocked()
1294 {
1295 WebInspector.multitargetNetworkManager.toggleURLBlocked(request. url);
1296 }
1297
1298 var blocked = WebInspector.multitargetNetworkManager.blockedURLs().h as(request.url);
1299 contextMenu.appendSeparator();
1300 contextMenu.appendItem(blocked ? WebInspector.UIString.capitalize("U nblock ^request URL") : WebInspector.UIString.capitalize("Block ^request URL"), toggleRequestURLBlocked);
1292 } 1301 }
1293 contextMenu.appendItem(WebInspector.UIString.capitalize("Copy ^all as HA R"), this._copyAll.bind(this)); 1302 contextMenu.appendItem(WebInspector.UIString.capitalize("Copy ^all as HA R"), this._copyAll.bind(this));
1294 1303
1295 contextMenu.appendSeparator(); 1304 contextMenu.appendSeparator();
1296 contextMenu.appendItem(WebInspector.UIString.capitalize("Save as HAR wit h ^content"), this._exportAll.bind(this)); 1305 contextMenu.appendItem(WebInspector.UIString.capitalize("Save as HAR wit h ^content"), this._exportAll.bind(this));
1297 1306
1298 contextMenu.appendSeparator(); 1307 contextMenu.appendSeparator();
1299 contextMenu.appendItem(WebInspector.UIString.capitalize("Clear ^browser ^cache"), this._clearBrowserCache.bind(this)); 1308 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)); 1309 contextMenu.appendItem(WebInspector.UIString.capitalize("Clear ^browser ^cookies"), this._clearBrowserCookies.bind(this));
1301 1310
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
2061 return false; 2070 return false;
2062 return true; 2071 return true;
2063 } 2072 }
2064 2073
2065 WebInspector.NetworkLogView.EventTypes = { 2074 WebInspector.NetworkLogView.EventTypes = {
2066 RequestSelected: "RequestSelected", 2075 RequestSelected: "RequestSelected",
2067 SearchCountUpdated: "SearchCountUpdated", 2076 SearchCountUpdated: "SearchCountUpdated",
2068 SearchIndexUpdated: "SearchIndexUpdated", 2077 SearchIndexUpdated: "SearchIndexUpdated",
2069 UpdateRequest: "UpdateRequest" 2078 UpdateRequest: "UpdateRequest"
2070 }; 2079 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698