electron/lib/browser
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
..
api feat: netLog API for dynamic logging control (#13068) 2018-06-19 11:45:58 +10:00
chrome-extension.js Replace custom function with Object.values() 2018-02-05 20:03:28 -08:00
desktop-capturer.js Add a display_id parameter to the desktopCapturer API. (#12417) 2018-04-09 14:43:35 +09:00
guest-view-manager.js rename blinkFeatures to enableBlinkFeatures 2018-05-23 14:01:34 -07:00
guest-window-manager.js Propagate referrer to new windows (#12397) 2018-04-05 18:13:24 -05:00
init.js Add "enable_desktop_capturer" build flag (#13133) 2018-06-13 11:15:34 -05:00
objects-registry.js Co-locate with other private methods 2016-12-02 10:41:42 -08:00
rpc-server.js add proper support for typed arrays in remote (#13055) 2018-05-24 21:05:46 +09:00