| OLD | NEW | 
|---|
| 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 module mojo.shell; | 5 module mojo.shell; | 
| 6 | 6 | 
| 7 // The following two interfaces are implemented by a service application. Two | 7 // The following two interfaces are implemented by a service application. Two | 
| 8 // applications are started by a broker that connect to this service | 8 // applications are started by a broker that connect to this service | 
| 9 // application, one is limited by the broker to only see Safe while the other | 9 // application, one is limited by the broker to only see Safe while the other | 
| 10 // can see both Safe and Unsafe. | 10 // can see both Safe and Unsafe. | 
| 11 interface Safe { }; | 11 interface Safe { }; | 
| 12 interface Unsafe { }; | 12 interface Unsafe { }; | 
| 13 | 13 | 
| 14 // Implemented by a service that records services exposed to an application and | 14 // Implemented by a service that records interfaces exposed to an application | 
| 15 // connection errors to a target application. | 15 // and connection errors to a target application. | 
| 16 interface Validator { | 16 interface Validator { | 
| 17   AddServiceCalled(string app_url, | 17   AddInterfaceCalled(string app_url, | 
| 18                    string service_url, | 18                      string service_url, | 
| 19                    string name, | 19                      string name, | 
| 20                    bool blocked); | 20                      bool blocked); | 
| 21   ConnectionClosed(string from_url, string to_url); | 21   ConnectionClosed(string from_url, string to_url); | 
| 22 }; | 22 }; | 
| OLD | NEW | 
|---|