Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: ui/ozone/platform/drm/mojo/drm_ipc_init_helper.cc

Issue 2011383002: Get rid of {Run,Terminate}MainApplication(), and more ApplicationDelegate conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « shell/test/pingable_app.cc ('k') | ui/ozone/public/ipc_init_helper_mojo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/mojo/drm_ipc_init_helper.cc
diff --git a/ui/ozone/platform/drm/mojo/drm_ipc_init_helper.cc b/ui/ozone/platform/drm/mojo/drm_ipc_init_helper.cc
index ee97c980eaa049582d50c0a3b3c8e1035b61cbc5..ddcad8dcd25485b03c37c4288692278c850b4fbc 100644
--- a/ui/ozone/platform/drm/mojo/drm_ipc_init_helper.cc
+++ b/ui/ozone/platform/drm/mojo/drm_ipc_init_helper.cc
@@ -19,12 +19,12 @@ class DrmIpcInitHelperMojo : public IpcInitHelperMojo {
DrmIpcInitHelperMojo();
~DrmIpcInitHelperMojo();
- void HostInitialize(mojo::ApplicationImpl* application) override;
- bool HostConfigureIncomingConnection(
+ void HostInitialize(mojo::Shell* shell) override;
+ bool HostAcceptConnection(
mojo::ServiceProviderImpl* service_provider_impl) override;
- void GpuInitialize(mojo::ApplicationImpl* application) override;
- bool GpuConfigureIncomingConnection(
+ void GpuInitialize(mojo::Shell* shell) override;
+ bool GpuAcceptConnection(
mojo::ServiceProviderImpl* service_provider_impl) override;
private:
@@ -36,19 +36,19 @@ DrmIpcInitHelperMojo::DrmIpcInitHelperMojo() {}
DrmIpcInitHelperMojo::~DrmIpcInitHelperMojo() {}
-void DrmIpcInitHelperMojo::HostInitialize(mojo::ApplicationImpl* application) {
- mojo::ConnectToService(application->shell(), "mojo:native_viewport_service",
+void DrmIpcInitHelperMojo::HostInitialize(mojo::Shell* shell) {
+ mojo::ConnectToService(shell, "mojo:native_viewport_service",
GetProxy(&ozone_drm_gpu_));
new MojoDrmHostDelegate(ozone_drm_gpu_.get());
}
-void DrmIpcInitHelperMojo::GpuInitialize(mojo::ApplicationImpl* application) {
- mojo::ConnectToService(application->shell(), "mojo:native_viewport_service",
+void DrmIpcInitHelperMojo::GpuInitialize(mojo::Shell* shell) {
+ mojo::ConnectToService(shell, "mojo:native_viewport_service",
GetProxy(&ozone_drm_host_));
new MojoDrmGpuDelegate(ozone_drm_host_.get());
}
-bool DrmIpcInitHelperMojo::HostConfigureIncomingConnection(
+bool DrmIpcInitHelperMojo::HostAcceptConnection(
mojo::ServiceProviderImpl* service_provider_impl) {
service_provider_impl->AddService<mojo::OzoneDrmHost>(
[](const mojo::ConnectionContext& connection_context,
@@ -58,7 +58,7 @@ bool DrmIpcInitHelperMojo::HostConfigureIncomingConnection(
return true;
}
-bool DrmIpcInitHelperMojo::GpuConfigureIncomingConnection(
+bool DrmIpcInitHelperMojo::GpuAcceptConnection(
mojo::ServiceProviderImpl* service_provider_impl) {
service_provider_impl->AddService<mojo::OzoneDrmGpu>(
[](const mojo::ConnectionContext& connection_context,
« no previous file with comments | « shell/test/pingable_app.cc ('k') | ui/ozone/public/ipc_init_helper_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698