electron/atom/common/api
Jeremy Apthorp 53f6cbccbf
refactor: use mojo for electron internal IPC (#17406)
* refactor: use mojo for electron internal IPC

* add sender_id, drop MessageSync

* remove usages of AtomFrameMsg_Message

* iwyu

* first draft of renderer->browser direction

* refactor to reuse a single ipc interface

* implement TakeHeapSnapshot through mojo

* the rest of the owl^WtakeHeapSnapshot mojofication

* remove no-op overrides in AtomRendererClient

* delete renderer-side ElectronApiServiceImpl when its pipe is destroyed

* looks like we don't need to overlay the renderer manifest after all

* don't try to send 2 replies to a sync rpc

* undo changes to manifests.cc

* unify sandboxed + unsandboxed ipc events

* lint

* register ElectronBrowser mojo service on devtools WebContents

* fix takeHeapSnapshopt failure paths

* {electron_api => atom}::mojom

* add send_to_all to ElectronRenderer::Message

* keep interface alive until callback is called

* review comments

* use GetContext from RendererClientBase

* robustify a test that uses window.open

* MessageSync posts a task to put sync messages in the same queue as async ones

* add v8::MicrotasksScope and node::CallbackScope

* iwyu

* use weakptr to api::WebContents instead of Unretained

* make MessageSync an asynchronous message & use non-associated interface

* iwyu + comments

* remove unused WeakPtrFactory

* inline OnRendererMessage[Sync]

* cleanups & comments

* use helper methods instead of inline lambdas

* remove unneeded async in test

* add mojo to manifests deps

* add gn check for //electron/manifests and mojo

* don't register renderer side service until preload has been run

* update gn check targets list

* move interface registration back to RenderFrameCreated
2019-04-02 15:38:16 -07:00
..
api.mojom refactor: use mojo for electron internal IPC (#17406) 2019-04-02 15:38:16 -07:00
api_messages.h refactor: use mojo for electron internal IPC (#17406) 2019-04-02 15:38:16 -07:00
atom_api_asar.cc chore: node_includes header no longer needs to be at the end of the list (#17090) 2019-03-11 17:13:43 -07:00
atom_api_clipboard.cc chore: node_includes header no longer needs to be at the end of the list (#17090) 2019-03-11 17:13:43 -07:00
atom_api_clipboard.h remove html/rtf methods marked for 2.0 2018-02-20 08:41:58 -05:00
atom_api_clipboard_mac.mm Add find text support to clipboard 2016-10-25 14:15:54 +09:00
atom_api_command_line.cc chore: node_includes header no longer needs to be at the end of the list (#17090) 2019-03-11 17:13:43 -07:00
atom_api_crash_reporter.cc refactor: load electron builtin modules with process._linkedBinding (#17247) 2019-03-08 10:29:52 -08:00
atom_api_key_weak_map.h clang-format atom files 2018-04-18 20:48:45 -04:00
atom_api_native_image.cc fix: add missing buffer size check in nativeImage (#17465) 2019-03-26 10:13:39 +09:00
atom_api_native_image.h feat: add safer nativeImage.createFromBitmap(), which does not decode PNG/JPEG (#17337) 2019-03-14 11:00:38 -07:00
atom_api_native_image_mac.mm CopyNSImage was removed 2019-01-22 10:32:04 -08:00
atom_api_shell.cc refactor: load electron builtin modules with process._linkedBinding (#17247) 2019-03-08 10:29:52 -08:00
atom_api_v8_util.cc refactor: load electron builtin modules with process._linkedBinding (#17247) 2019-03-08 10:29:52 -08:00
BUILD.gn refactor: use mojo for electron internal IPC (#17406) 2019-04-02 15:38:16 -07:00
constructor.h migrate to non-deprecated v8 functions 2019-01-22 10:32:03 -08:00
electron_bindings.cc chore: rename atomBinding to electronBinding (#17419) 2019-03-18 12:37:06 -07:00
electron_bindings.h chore: rename atomBinding to electronBinding (#17419) 2019-03-18 12:37:06 -07:00
event_emitter_caller.cc also format missing .cc files 2018-04-18 20:48:45 -04:00
event_emitter_caller.h clang-format atom files 2018-04-18 20:48:45 -04:00
features.cc spec: add tests for the autoUpdater on macOS that actually test if it works (#17442) 2019-03-29 17:32:52 -07:00
locker.cc also format missing .cc files 2018-04-18 20:48:45 -04:00
locker.h Update to API changes of Chrome 51 2016-05-23 10:59:39 +09:00
object_life_monitor.cc also format missing .cc files 2018-04-18 20:48:45 -04:00
object_life_monitor.h Fix context leak in ObjectLifeMonitor. 2017-04-28 11:21:53 -03:00
remote_callback_freer.cc refactor: use mojo for electron internal IPC (#17406) 2019-04-02 15:38:16 -07:00
remote_callback_freer.h fix double-freeing remote references 2018-07-12 10:44:26 +09:00
remote_object_freer.cc refactor: use mojo for electron internal IPC (#17406) 2019-04-02 15:38:16 -07:00
remote_object_freer.h fix double-freeing remote references 2018-07-12 10:44:26 +09:00