electron/shell/browser/api
trop[bot] 258a4a76cf
fix: -Wunsafe-buffer-usage warning in ChunkedDataPipeReadableStream (#44223)
* chore: rename v8_value_serializer.cc,h to v8_util.cc,h

Co-authored-by: Charles Kerr <charles@charleskerr.com>

* feat: add electron::util::as_byte_span(v8::Local<v8::ArrayBuffer>)

Co-authored-by: Charles Kerr <charles@charleskerr.com>

* fix: -Wunsafe-buffer-usage warnings in ChunkedDataPipeReadableStream::ReadInternal()

Xref: https://chromium-review.googlesource.com/c/chromium/src/+/5619253

Co-authored-by: Charles Kerr <charles@charleskerr.com>

* refactor: restore node buffer span util

Co-authored-by: Charles Kerr <charles@charleskerr.com>

* refactor: remove redundant span wrapper

Co-authored-by: Charles Kerr <charles@charleskerr.com>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-10-14 11:37:40 -05:00
..
views chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_app.cc fix: -Wunsafe-buffer-usage warning in ChunkedDataPipeReadableStream (#44223) 2024-10-14 11:37:40 -05:00
electron_api_app.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_app_mac.mm chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
electron_api_app_mas.mm chore: bump chromium to 117.0.5923.0 (main) (#39304) 2023-08-04 10:47:29 +02:00
electron_api_auto_updater.cc fix: gin_helper::MicrotasksScope instantiation (#43185) 2024-08-05 08:24:27 -05:00
electron_api_auto_updater.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_base_window.cc refactor: NativeWindow::Create() returns a unique_ptr (#43607) 2024-09-06 14:20:09 -05:00
electron_api_base_window.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_browser_window.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_browser_window.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_content_tracing.cc chore: replace absl::optional<T> with std::optional<T> (#40928) 2024-01-10 16:23:35 -06:00
electron_api_cookies.cc refactor: revert url::DomainIs() for cookie domains (#44154) 2024-10-08 20:34:55 -07:00
electron_api_cookies.h chore: iwyu mojom-forward header files (33-x-y) (#43777) 2024-09-19 09:58:45 +02:00
electron_api_crash_reporter.cc refactor: move impl functions into private namespace (#43408) 2024-08-21 19:43:01 -05:00
electron_api_crash_reporter.h chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
electron_api_data_pipe_holder.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_data_pipe_holder.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_debugger.cc refactor: add EmitWarning(v8::Isolate*) helper (#43736) 2024-09-17 11:50:48 +02:00
electron_api_debugger.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_desktop_capturer.cc feat: add support for system picker in setDisplayMediaRequestHandler (#43680) 2024-09-11 09:57:39 -07:00
electron_api_desktop_capturer.h feat: add support for system picker in setDisplayMediaRequestHandler (#43680) 2024-09-11 09:57:39 -07:00
electron_api_desktop_capturer_mac.mm feat: add support for system picker in setDisplayMediaRequestHandler (#43680) 2024-09-11 09:57:39 -07:00
electron_api_dialog.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_download_item.cc refactor: add EmitWarning(v8::Isolate*) helper (#43736) 2024-09-17 11:50:48 +02:00
electron_api_download_item.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_event_emitter.cc chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
electron_api_event_emitter.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
electron_api_global_shortcut.cc refactor: prefer std::ranges over begin() and end() (#43482) 2024-08-26 14:37:56 -04:00
electron_api_global_shortcut.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_in_app_purchase.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_in_app_purchase.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_menu.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_menu.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_menu_mac.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_menu_mac.mm chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_menu_views.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_menu_views.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_native_theme.cc feat: add transparency checking to nativeTheme (#42862) 2024-07-24 14:38:22 +02:00
electron_api_native_theme.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_native_theme_mac.mm chore: cleanup arc migration helpers (#39606) 2023-08-23 09:54:21 -04:00
electron_api_net_log.cc refactor: add EmitWarning(v8::Isolate*) helper (#43736) 2024-09-17 11:50:48 +02:00
electron_api_net_log.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_notification.cc chore: remove unused Notification fields icon_path_, has_icon_ (#43286) 2024-08-12 09:55:54 +02:00
electron_api_notification.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_power_monitor.cc chore: bump chromium to 130.0.6723.6 (33-x-y) (#43453) 2024-09-26 11:12:12 +02:00
electron_api_power_monitor.h chore: bump chromium to 130.0.6723.6 (33-x-y) (#43453) 2024-09-26 11:12:12 +02:00
electron_api_power_monitor_mac.mm fix: user-did-{resign|become}-active events on macOS (#41506) 2024-03-06 12:43:39 +01:00
electron_api_power_monitor_win.cc chore: iwyu mojom-forward header files (33-x-y) (#43777) 2024-09-19 09:58:45 +02:00
electron_api_power_save_blocker.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_power_save_blocker.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_printing.cc chore: remove deprecated webContents.getPrinters() (#39663) 2023-09-05 10:16:41 +02:00
electron_api_protocol.cc refactor: add EmitWarning(v8::Isolate*) helper (#43736) 2024-09-17 11:50:48 +02:00
electron_api_protocol.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_push_notifications.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_push_notifications.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_push_notifications_mac.mm chore: cleanup arc migration helpers (#39606) 2023-08-23 09:54:21 -04:00
electron_api_safe_storage.cc refactor: move safe_storage functions into anonymous namespace (#43032) 2024-07-25 13:18:13 -05:00
electron_api_screen.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_screen.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_service_worker_context.cc refactor: add EmitWarning(v8::Isolate*) helper (#43736) 2024-09-17 11:50:48 +02:00
electron_api_service_worker_context.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_session.cc refactor: add EmitWarning(v8::Isolate*) helper (#43736) 2024-09-17 11:50:48 +02:00
electron_api_session.h chore: iwyu mojom-forward header files (33-x-y) (#43777) 2024-09-19 09:58:45 +02:00
electron_api_system_preferences.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_system_preferences.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_system_preferences_mac.mm chore: bump chromium to 130.0.6723.6 (33-x-y) (#43453) 2024-09-26 11:12:12 +02:00
electron_api_system_preferences_win.cc refactor: reduce code duplication in gin_helper::Promise (33-x-y) (#43778) 2024-09-19 13:01:13 +02:00
electron_api_tray.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_tray.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_utility_process.cc fix: -Wunsafe-buffer-usage warning in ChunkedDataPipeReadableStream (#44223) 2024-10-14 11:37:40 -05:00
electron_api_utility_process.h feat: add error event for utility process (33-x-y) (#43997) 2024-09-29 17:12:15 -05:00
electron_api_view.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_view.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_web_contents.cc fix: -Wunsafe-buffer-usage warning in ChunkedDataPipeReadableStream (#44223) 2024-10-14 11:37:40 -05:00
electron_api_web_contents.h chore: bump chromium to 130.0.6723.6 (33-x-y) (#43453) 2024-09-26 11:12:12 +02:00
electron_api_web_contents_impl.cc chore: bump chromium to 130.0.6723.6 (33-x-y) (#43453) 2024-09-26 11:12:12 +02:00
electron_api_web_contents_mac.mm chore: bump chromium to 127.0.6521.0 (main) (#42118) 2024-06-07 17:18:35 -04:00
electron_api_web_contents_view.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_web_contents_view.h feat: customize border radius of Views (#42320) 2024-07-16 20:16:25 -04:00
electron_api_web_frame_main.cc fix: -Wunsafe-buffer-usage warning in ChunkedDataPipeReadableStream (#44223) 2024-10-14 11:37:40 -05:00
electron_api_web_frame_main.h chore: bump chromium to 130.0.6723.6 (33-x-y) (#43453) 2024-09-26 11:12:12 +02:00
electron_api_web_request.cc fix: restore Chromium default Content-Disposition header parsing (#43670) 2024-09-10 12:10:53 -04:00
electron_api_web_request.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
electron_api_web_view_manager.cc chore: rename built-in modules to bindings to match naming update in node (#37182) 2023-02-09 10:31:38 +09:00
frame_subscriber.cc refactor: put empty virtual function definitions in header (#43285) 2024-08-12 09:56:51 +02:00
frame_subscriber.h refactor: put empty virtual function definitions in header (#43285) 2024-08-12 09:56:51 +02:00
gpu_info_enumerator.cc refactor: simplify code by using base::Value::EnsureList() (#41162) 2024-01-30 14:48:09 -06:00
gpu_info_enumerator.h chore: add/fix interface comments for sections of methods (#42566) 2024-06-20 10:49:07 +02:00
gpuinfo_manager.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
gpuinfo_manager.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
message_port.cc fix: -Wunsafe-buffer-usage warning in ChunkedDataPipeReadableStream (#44223) 2024-10-14 11:37:40 -05:00
message_port.h refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
process_metric.cc chore: bump chromium to 123.0.6296.0 (main) (#41204) 2024-02-14 12:33:32 -05:00
process_metric.h chore: bump chromium to 100.0.4857.0 (main) (#32419) 2022-02-09 18:58:52 -08:00
save_page_handler.cc chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
save_page_handler.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
ui_event.cc chore: used nested namespaces (#34737) 2022-06-29 12:55:47 -07:00
ui_event.h chore: used nested namespaces (#34737) 2022-06-29 12:55:47 -07:00