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

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

Issue 8741009: ONC import option to chromeos tab in chrome://net-internals (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review feedback Created 9 years 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/browser_bridge.js
===================================================================
--- chrome/browser/resources/net_internals/browser_bridge.js (revision 112661)
+++ chrome/browser/resources/net_internals/browser_bridge.js (working copy)
@@ -25,6 +25,7 @@
this.hstsObservers_ = [];
this.httpThrottlingObservers_ = [];
this.constantsObservers_ = [];
+ this.crosONCFileParseObservers_ = [];
this.pollableDataHelpers_ = {};
this.pollableDataHelpers_.proxySettings =
@@ -224,6 +225,10 @@
this.send('getSystemLog', [log_key, cellId]);
},
+ importONCFile: function(fileContent, passcode) {
+ this.send('importONCFile', [fileContent, passcode]);
+ },
+
//--------------------------------------------------------------------------
// Messages received from the browser.
//--------------------------------------------------------------------------
@@ -311,6 +316,11 @@
this.hstsObservers_[i].onHSTSQueryResult(info);
},
+ receivedONCFileParse: function(status) {
+ for (var i = 0; i < this.crosONCFileParseObservers_.length; ++i)
James Hawkins 2011/12/02 22:08:57 i++
achuithb 2011/12/03 00:23:32 Done.
+ this.crosONCFileParseObservers_[i].onONCFileParse(status);
+ },
+
receivedHttpCacheInfo: function(info) {
this.pollableDataHelpers_.httpCacheInfo.update(info);
},
@@ -485,6 +495,16 @@
},
/**
+ * Adds a listener for ONC file parse status. The observer will be called
+ * back with:
+ *
+ * observer.onONCFileParse(status);
+ */
+ addCrosONCFileParseObserver: function(observer) {
+ this.crosONCFileParseObservers_.push(observer);
+ },
+
+ /**
* Adds a listener for HTTP throttling-related events. |observer| will be
* called back when HTTP throttling is enabled/disabled, through:
*

Powered by Google App Engine
This is Rietveld 408576698