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

Unified Diff: chrome/browser/resources/net_internals/main.js

Issue 6708030: NetLog: Removes private information from net-internals events tab (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/net_internals/main.js
===================================================================
--- chrome/browser/resources/net_internals/main.js (revision 78565)
+++ chrome/browser/resources/net_internals/main.js (working copy)
@@ -223,6 +223,11 @@
// When viewing a log file, all tabs are hidden except the event view,
// and all received events are ignored.
this.isViewingLogFile_ = false;
+
+ // True when cookies and authentication information should be removed from
+ // displayed events. When true, such information should be hidden from
+ // all pages.
+ this.doSecurityStripping_ = true;
}
/*
@@ -822,6 +827,27 @@
};
/**
+ * Sets the value of |doSecurityStripping_| and informs log observers
+ * of the change.
+ */
+BrowserBridge.prototype.setDoSecurityStripping =
eroman 2011/03/25 04:59:16 nit: in this and other locations, I suggest droppi
mmenke 2011/03/28 14:55:36 Done. I renamed the bools to "enableSecurityStrip
+ function(doSecurityStripping) {
+ this.doSecurityStripping_ = doSecurityStripping;
eroman 2011/03/25 04:59:16 same naming comment applies to variable. Maybe jus
mmenke 2011/03/28 14:55:36 Done.
+ for (var i = 0; i < this.logObservers_.length; ++i) {
+ if (this.logObservers_[i].onSecurityStrippingChanged)
+ this.logObservers_[i].onSecurityStrippingChanged();
+ }
+};
+
+/**
+ * Returns whether or not cookies and authentication information should be
+ * displayed for events that contain them.
+ */
+BrowserBridge.prototype.getDoSecurityStripping = function() {
+ return this.doSecurityStripping_;
+};
+
+/**
* Informs log observers whether or not future events will be from a log file.
* Hides all tabs except the events and data tabs when viewing a log file, shows
* them all otherwise.
« no previous file with comments | « chrome/browser/resources/net_internals/logviewpainter.js ('k') | chrome/browser/resources/net_internals/proxyview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698