| 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 content.mojom; | 5 module content.mojom; |
| 6 | 6 |
| 7 interface TestMojoService { | 7 interface TestService { |
| 8 // Doesn't actually do anything, just responds. | 8 // Doesn't actually do anything, just responds. |
| 9 DoSomething() => (); | 9 DoSomething() => (); |
| 10 | 10 |
| 11 // Terminates the current process to cause a connection error. Meant to test | 11 // Terminates the current process to cause a connection error. Meant to test |
| 12 // a connection error for the utility process. | 12 // a connection error for the utility process. |
| 13 DoTerminateProcess() => (); | 13 DoTerminateProcess() => (); |
| 14 | 14 |
| 15 // Tries to create a temporary folder. Requires a sandbox to succeed. | 15 // Tries to create a temporary folder. Requires a sandbox to succeed. |
| 16 CreateFolder() => (bool succeeded); | 16 CreateFolder() => (bool succeeded); |
| 17 | 17 |
| 18 // Retrieve the requestor name as seen by the test app providing this service. | 18 // Retrieve the requestor name as seen by the test app providing this service. |
| 19 GetRequestorName() => (string name); | 19 GetRequestorName() => (string name); |
| 20 | 20 |
| 21 // Requests that a new shared buffer be created and returned. If successful, | 21 // Requests that a new shared buffer be created and returned. If successful, |
| 22 // |buffer| is non-null and its contents match |message|'s bytes exactly. | 22 // |buffer| is non-null and its contents match |message|'s bytes exactly. |
| 23 CreateSharedBuffer(string message) => (handle<shared_buffer>? buffer); | 23 CreateSharedBuffer(string message) => (handle<shared_buffer>? buffer); |
| 24 }; | 24 }; |
| OLD | NEW |