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

Side by Side Diff: mojo/public/go/application/connection.go

Issue 2034383003: Removed exposed_services from mojom definitions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package application 5 package application
6 6
7 import ( 7 import (
8 "log" 8 "log"
9 9
10 "mojo/public/go/bindings" 10 "mojo/public/go/bindings"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 localServices *bindings.Stub 80 localServices *bindings.Stub
81 outgoingConnection *OutgoingConnection 81 outgoingConnection *OutgoingConnection
82 isClosed bool 82 isClosed bool
83 // Is set if ProvideServicesWithDescriber was called. 83 // Is set if ProvideServicesWithDescriber was called.
84 // Note: When DescribeServices is invoked, some implementations may retu rn 84 // Note: When DescribeServices is invoked, some implementations may retu rn
85 // incomplete ServiceDescriptions. For example, if type information was not 85 // incomplete ServiceDescriptions. For example, if type information was not
86 // generated, then the methods called may return nil or an error. 86 // generated, then the methods called may return nil or an error.
87 describer *ServiceDescriberFactory 87 describer *ServiceDescriberFactory
88 } 88 }
89 89
90 func newConnection(requestorURL string, services *sp.ServiceProvider_Request, re solvedURL string) *Connection { 90 func newConnection(requestorURL string, services sp.ServiceProvider_Request, res olvedURL string) *Connection {
91 info := connectionInfo{ 91 info := connectionInfo{
92 requestorURL, 92 requestorURL,
93 resolvedURL, 93 resolvedURL,
94 } 94 }
95 return &Connection{ 95 return &Connection{
96 connectionInfo: info, 96 connectionInfo: info,
97 » » servicesRequest: services, 97 » » servicesRequest: &services,
98 outgoingConnection: &OutgoingConnection{ 98 outgoingConnection: &OutgoingConnection{
99 info, 99 info,
100 nil, 100 nil,
101 }, 101 },
102 } 102 }
103 } 103 }
104 104
105 // ProvideServices starts a service provider on a separate goroutine that 105 // ProvideServices starts a service provider on a separate goroutine that
106 // provides given services to the remote application. Returns a pointer to 106 // provides given services to the remote application. Returns a pointer to
107 // outgoing connection that can be used to connect to services provided by 107 // outgoing connection that can be used to connect to services provided by
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 messagePipe.Close() 214 messagePipe.Close()
215 return nil 215 return nil
216 } 216 }
217 factory.Create(messagePipe) 217 factory.Create(messagePipe)
218 return nil 218 return nil
219 } 219 }
220 220
221 func (sp *serviceProviderImpl) AddService(factory ServiceFactory) { 221 func (sp *serviceProviderImpl) AddService(factory ServiceFactory) {
222 sp.factories[factory.Name()] = factory 222 sp.factories[factory.Name()] = factory
223 } 223 }
OLDNEW
« no previous file with comments | « mojo/public/go/application/application_impl.go ('k') | mojo/public/interfaces/application/application.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698