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

Side by Side Diff: chrome/browser/resources/net_internals/browser_bridge.js

Issue 1059843002: Refactor NetLog::LogLevel --> NetLogCaptureMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again to fix a merge conflict Created 5 years, 8 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Populated by constants from the browser. Used only by this file. 5 // Populated by constants from the browser. Used only by this file.
6 var NetInfoSources = null; 6 var NetInfoSources = null;
7 7
8 /** 8 /**
9 * This class provides a "bridge" for communicating between the javascript and 9 * This class provides a "bridge" for communicating between the javascript and
10 * the browser. 10 * the browser.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 }, 208 },
209 209
210 sendGetDataReductionProxyInfo: function() { 210 sendGetDataReductionProxyInfo: function() {
211 this.send('getDataReductionProxyInfo'); 211 this.send('getDataReductionProxyInfo');
212 }, 212 },
213 213
214 enableIPv6: function() { 214 enableIPv6: function() {
215 this.send('enableIPv6'); 215 this.send('enableIPv6');
216 }, 216 },
217 217
218 setLogLevel: function(logLevel) { 218 setCaptureMode: function(captureMode) {
219 this.send('setLogLevel', ['' + logLevel]); 219 this.send('setCaptureMode', ['' + captureMode]);
220 }, 220 },
221 221
222 importONCFile: function(fileContent, passcode) { 222 importONCFile: function(fileContent, passcode) {
223 this.send('importONCFile', [fileContent, passcode]); 223 this.send('importONCFile', [fileContent, passcode]);
224 }, 224 },
225 225
226 storeDebugLogs: function() { 226 storeDebugLogs: function() {
227 this.send('storeDebugLogs'); 227 this.send('storeDebugLogs');
228 }, 228 },
229 229
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 helper.removeObserver(this); 796 helper.removeObserver(this);
797 --this.observingCount_; 797 --this.observingCount_;
798 this.updatedData_[name] = data; 798 this.updatedData_[name] = data;
799 if (this.observingCount_ == 0) 799 if (this.observingCount_ == 0)
800 this.callback_(this.updatedData_); 800 this.callback_(this.updatedData_);
801 } 801 }
802 }; 802 };
803 803
804 return BrowserBridge; 804 return BrowserBridge;
805 })(); 805 })();
OLDNEW
« no previous file with comments | « chrome/browser/net/predictor_browsertest.cc ('k') | chrome/browser/resources/net_internals/capture_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698