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

Unified Diff: services/native_viewport/app_delegate.h

Issue 1975993002: Change InterfaceFactory<I>::Create() to take a ConnectionContext instead of an ApplicationConnectio… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 | « services/native_support/process_impl.cc ('k') | services/native_viewport/app_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/native_viewport/app_delegate.h
diff --git a/services/native_viewport/app_delegate.h b/services/native_viewport/app_delegate.h
index fd651f310b0ce631e521d8d465713157b0cb1212..2362355d0a28c271a9208bcc429cc8cba794fbfb 100644
--- a/services/native_viewport/app_delegate.h
+++ b/services/native_viewport/app_delegate.h
@@ -22,15 +22,12 @@
#include "ui/events/event_switches.h"
#include "ui/gl/gl_surface.h"
-using mojo::ApplicationConnection;
-using mojo::Gpu;
-using mojo::NativeViewport;
-
namespace native_viewport {
-class NativeViewportAppDelegate : public mojo::ApplicationDelegate,
- public mojo::InterfaceFactory<NativeViewport>,
- public mojo::InterfaceFactory<Gpu> {
+class NativeViewportAppDelegate
+ : public mojo::ApplicationDelegate,
+ public mojo::InterfaceFactory<mojo::NativeViewport>,
+ public mojo::InterfaceFactory<mojo::Gpu> {
public:
NativeViewportAppDelegate();
~NativeViewportAppDelegate() override;
@@ -38,15 +35,16 @@ class NativeViewportAppDelegate : public mojo::ApplicationDelegate,
// mojo::ApplicationDelegate implementation.
void Initialize(mojo::ApplicationImpl* application) override;
- bool ConfigureIncomingConnection(ApplicationConnection* connection) override;
+ bool ConfigureIncomingConnection(
+ mojo::ApplicationConnection* connection) override;
- // mojo::InterfaceFactory<NativeViewport> implementation.
- void Create(ApplicationConnection* connection,
- mojo::InterfaceRequest<NativeViewport> request) override;
+ // mojo::InterfaceFactory<mojo::NativeViewport> implementation.
+ void Create(const mojo::ConnectionContext& connection_context,
+ mojo::InterfaceRequest<mojo::NativeViewport> request) override;
- // mojo::InterfaceFactory<Gpu> implementation.
- void Create(ApplicationConnection* connection,
- mojo::InterfaceRequest<Gpu> request) override;
+ // mojo::InterfaceFactory<mojo::Gpu> implementation.
+ void Create(const mojo::ConnectionContext& connection_context,
+ mojo::InterfaceRequest<mojo::Gpu> request) override;
private:
void InitLogging(mojo::ApplicationImpl* application);
« no previous file with comments | « services/native_support/process_impl.cc ('k') | services/native_viewport/app_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698