electron/lib/browser/api
Zhuo Lu ab24a1e36d feat: netLog API for dynamic logging control (#13068)
* Introduce `net.{start|stop}Logging()`

- Slight regression right now as Electron won't automatically start logging net-logs at launch, will soon be fixed
- To implement callback for async controls

* Add `net.isLogging` & optional callback param for `net.stopLogging()`

* Fix small regression on --log-net-log

--log-net-log should work again

* Error on empty file path

* Only start with valid file path

* Remove unused var

* Allow setting log file path before URLRequestContextGetter starts logging

* Add net log tests

* Remove redundant checks

* Use brightray::NetLog

* Clean up code

* Should automatically stop listening

* 🎨 Attempt to fix styles

* Only run non-null callback

* Dump file to tmpdir

* Simplify net log spec

Spawned Electron process on Linux CI can fail to launch

* Separate netLog module

* Remove net logging test from net spec

* Add tests for netLog

* Fix header guard

* Clean up code

* Add netLog.currentlyLoggingPath

* Callback with filepath

* Add test for case when only .stopLogging() is called

* Add docs

* Reintroduce error on invalid arg

* Update copyright

* Update error message

* Juggle file path string types
2018-06-19 11:45:58 +10:00
..
auto-updater fix windows tests 2018-02-16 16:02:10 +11:00
exports Refactor electron exports to keep module list in separate files 2017-03-09 19:08:01 -03:00
app.js add app.isPackaged (#12656) 2018-05-07 23:15:31 -07:00
auto-updater.js
box-layout.js Add LayoutManager/BoxLayout APIs 2018-05-24 15:36:29 +09:00
browser-view.js 🐛 Ooops, fix that 2017-11-22 17:07:57 -08:00
browser-window.js feat: add TopLevelWindow.setContentView API 2018-05-15 14:12:47 +09:00
button.js feat: add Button API 2018-06-18 16:51:36 +09:00
content-tracing.js
dialog.js Implement App-Scoped Security scoped bookmarks (#11711) 2018-02-12 13:25:06 -05:00
global-shortcut.js
in-app-purchase.js Handle in-app-purchase less fatally on non-Darwin (#12511) 2018-04-02 18:55:44 -05:00
ipc-main.js
label-button.js feat: add LabelButton API 2018-06-18 16:51:36 +09:00
layout-manager.js Add LayoutManager/BoxLayout APIs 2018-05-24 15:36:29 +09:00
menu-item-roles.js improve Menu and MenuItem testing (#12015) 2018-02-23 07:53:59 -06:00
menu-item.js Fix syntax 2018-01-01 02:23:32 +08:00
menu-utils.js Add menu item order control (#12362) 2018-05-05 09:37:29 -07:00
menu.js Add menu item order control (#12362) 2018-05-05 09:37:29 -07:00
module-list.js feat: netLog API for dynamic logging control (#13068) 2018-06-19 11:45:58 +10:00
navigation-controller.js Revert "Fixes electron/electron#12147" (#12293) 2018-03-15 16:18:36 +09:00
net-log.js feat: netLog API for dynamic logging control (#13068) 2018-06-19 11:45:58 +10:00
net.js 🔧 Fix style issues 2017-11-23 13:42:48 -08:00
notification.js Fix linting errors and add isSupported 2017-05-30 20:27:24 +10:00
power-monitor.js Simplify the public PowerObserver interface 2018-02-05 15:28:58 +09:00
power-save-blocker.js
protocol.js
screen.js remove screen.getMenuBarHeight() deprecation 2018-05-23 09:11:48 -07:00
session.js rename exposed session method to setCertificateVerifyProc 2018-05-23 13:51:28 -07:00
system-preferences.js singletons that are retroactively turned into EventEmitters should call the EventEmitter ctor 2017-11-01 23:05:27 -05:00
text-field.js feat: add TextField API 2018-06-18 16:51:36 +09:00
top-level-window.js Make Menu API accept TopLevelWindow 2018-04-19 13:08:37 +09:00
touch-bar.js Fix event leak on reuse of touchbar item (#12527) 2018-04-15 10:24:47 -05:00
tray.js remove tray.setHighlightMode() deprecation 2018-05-23 09:20:39 -07:00
view.js feat: add TopLevelWindow.setContentView API 2018-05-15 14:12:47 +09:00
web-contents-view.js feat: add WebContentsView API 2018-05-15 14:03:21 +09:00
web-contents.js perf: don't use JSON to send the result of ipcRenderer.sendSync. (#8953) 2018-06-13 17:38:31 +10:00