electron/brightray/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
..
linux [chromium-style] override / virtual warnings 2018-04-19 11:12:10 -07:00
mac clang-format objc files (#12673) 2018-04-20 11:47:04 -07:00
media [chromium-style] override / virtual warnings 2018-04-19 11:12:10 -07:00
net REVIEW: Re-use devtools network throttling from content layer 2018-03-20 10:13:15 +03:00
views Don't declare IsDesktopEnvironmentUnity on non-Linux 2018-05-10 13:59:48 -07:00
win format previously misses .cc files 2018-04-17 21:56:12 -04:00
brightray_paths.h clang-format brightray 2018-04-17 21:46:27 -04:00
browser_client.cc feat: netLog API for dynamic logging control (#13068) 2018-06-19 11:45:58 +10:00
browser_client.h feat: netLog API for dynamic logging control (#13068) 2018-06-19 11:45:58 +10:00
browser_context.cc format previously misses .cc files 2018-04-17 21:56:12 -04:00
browser_context.h clang-format brightray 2018-04-17 21:46:27 -04:00
browser_main_parts.cc Merge the logic of managing ViewsDelegate 2018-04-20 19:10:37 +09:00
browser_main_parts.h Merge the logic of managing ViewsDelegate 2018-04-20 19:10:37 +09:00
browser_main_parts_mac.mm clang-format objc files (#12673) 2018-04-20 11:47:04 -07:00
devtools_contents_resizing_strategy.cc format previously misses .cc files 2018-04-17 21:56:12 -04:00
devtools_contents_resizing_strategy.h clang-format brightray 2018-04-17 21:46:27 -04:00
devtools_embedder_message_dispatcher.cc format previously misses .cc files 2018-04-17 21:56:12 -04:00
devtools_embedder_message_dispatcher.h clang-format brightray 2018-04-17 21:46:27 -04:00
devtools_file_system_indexer.cc Part I: Move from base::Bind to base::BindOnce and remove unneeded base::Passed (#12661) 2018-04-20 19:55:05 +09:00
devtools_file_system_indexer.h clang-format brightray 2018-04-17 21:46:27 -04:00
devtools_manager_delegate.cc format previously misses .cc files 2018-04-17 21:56:12 -04:00
devtools_manager_delegate.h [chromium-style] override / virtual warnings 2018-04-19 11:12:10 -07:00
devtools_ui.cc format previously misses .cc files 2018-04-17 21:56:12 -04:00
devtools_ui.h Fix build/header_guard linter violations in brightray 2017-05-19 08:46:15 -07:00
inspectable_web_contents.cc [chromium-style] auto variable type must not deduce to a raw pointer type 2018-04-19 11:10:52 -07:00
inspectable_web_contents.h Enable using external WebContents as devtools 2017-12-01 10:35:23 +09:00
inspectable_web_contents_delegate.h clang-format brightray 2018-04-17 21:46:27 -04:00
inspectable_web_contents_impl.cc Part I: Move from base::Bind to base::BindOnce and remove unneeded base::Passed (#12661) 2018-04-20 19:55:05 +09:00
inspectable_web_contents_impl.h [chromium-style] override / virtual warnings 2018-04-19 11:12:10 -07:00
inspectable_web_contents_view.h Require !OS_MACOSX as well as TOOLKIT_VIEWS for views code 2018-05-10 14:11:19 -07:00
inspectable_web_contents_view_delegate.cc format previously misses .cc files 2018-04-17 21:56:12 -04:00
inspectable_web_contents_view_delegate.h clang-format brightray 2018-04-17 21:46:27 -04:00
inspectable_web_contents_view_mac.h [chromium-style] override / virtual warnings 2018-04-19 11:12:10 -07:00
inspectable_web_contents_view_mac.mm clang-format objc files (#12673) 2018-04-20 11:47:04 -07:00
io_thread.cc re-use request context from IOThread 2018-03-20 10:13:17 +03:00
io_thread.h clang-format brightray 2018-04-17 21:46:27 -04:00
net_log.cc feat: netLog API for dynamic logging control (#13068) 2018-06-19 11:45:58 +10:00
net_log.h feat: netLog API for dynamic logging control (#13068) 2018-06-19 11:45:58 +10:00
network_delegate.cc [chromium-style] auto variable type must not deduce to a raw pointer type 2018-04-19 11:10:52 -07:00
network_delegate.h [chromium-style] override / virtual warnings 2018-04-19 11:12:10 -07:00
notification.cc [chromium-style] out-of-line default constructors and destructors 2018-04-19 11:12:58 -07:00
notification.h [chromium-style] out-of-line default constructors and destructors 2018-04-19 11:12:58 -07:00
notification_delegate.h Fix cpp lint errors 2017-11-24 10:58:53 +09:00
notification_presenter.cc format previously misses .cc files 2018-04-17 21:56:12 -04:00
notification_presenter.h Fix build/header_guard linter violations in brightray 2017-05-19 08:46:15 -07:00
permission_manager.cc format previously misses .cc files 2018-04-17 21:56:12 -04:00
permission_manager.h Fix build/include_what_you_use linter violations in brightray 2017-05-19 08:46:15 -07:00
platform_notification_service.cc [chromium-style] auto variable type must not deduce to a raw pointer type 2018-04-19 11:10:52 -07:00
platform_notification_service.h FIXME: DesktopNotificationDelegate has been removed 2017-11-24 10:58:16 +09:00
special_storage_policy.cc format previously misses .cc files 2018-04-17 21:56:12 -04:00
special_storage_policy.h Fix API changes of Chrome 58 2017-04-17 16:16:02 +09:00
url_request_context_getter.cc [chromium-style] Complex class/struct needs an explicit out-of-line copy constructor. 2018-04-19 11:12:58 -07:00
url_request_context_getter.h [chromium-style] move methods out of headers 2018-04-19 11:12:58 -07:00
web_ui_controller_factory.cc [chromium-style] auto variable type must not deduce to a raw pointer type 2018-04-19 11:10:52 -07:00
web_ui_controller_factory.h [chromium-style] override / virtual warnings 2018-04-19 11:12:10 -07:00
zoom_level_delegate.cc remove unnecessary ptr_util.h include 2018-04-12 22:34:26 -04:00
zoom_level_delegate.h Fix build/include_what_you_use linter violations in brightray 2017-05-19 08:46:15 -07:00