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

Unified Diff: mojo/public/go/application/connection.go

Issue 1345263002: Generate Mojom Types in Go (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Use unexported functions instead of variables Created 5 years, 2 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
Index: mojo/public/go/application/connection.go
diff --git a/mojo/public/go/application/connection.go b/mojo/public/go/application/connection.go
index f3be55c9a691443630e02d33e3d7bbfe3ffe38db..119872e9275b24bdbc3e370a46609a9e0b30d4c4 100644
--- a/mojo/public/go/application/connection.go
+++ b/mojo/public/go/application/connection.go
@@ -11,6 +11,7 @@ import (
"mojo/public/go/system"
sp "mojo/public/interfaces/application/service_provider"
+ "mojo/public/interfaces/bindings/mojom_types"
)
type connectionInfo struct {
@@ -34,6 +35,12 @@ type ServiceRequest interface {
// Name returns the name of requested mojo service.
Name() string
+ // Type returns a type description of the interface.
+ Type() mojom_types.MojomInterface
+
+ // Descriptor returns the mapping between string identifiers and relevant UserDefinedTypes.
+ Desc() map[string]mojom_types.UserDefinedType
+
// PassMessagePipe passes ownership of the underlying message pipe
// handle to the newly created handle object, invalidating the
// underlying handle object in the process.

Powered by Google App Engine
This is Rietveld 408576698