| 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 | 5 |
| 6 /** | 6 /** |
| 7 * This URL is defined in content/public/test/test_mojo_app.cc. It identifies | 7 * This URL is defined in content/public/test/test_mojo_app.cc. It identifies |
| 8 * content_shell's out-of-process Mojo test app. | 8 * content_shell's out-of-process Mojo test app. |
| 9 */ | 9 */ |
| 10 var TEST_APP_URL = 'system:content_mojo_test'; | 10 var TEST_APP_URL = 'system:content_mojo_test'; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 var urlRequest = new urlMojom.URLRequest({ url: TEST_APP_URL }); | 33 var urlRequest = new urlMojom.URLRequest({ url: TEST_APP_URL }); |
| 34 shell.connectToApplication(urlRequest, | 34 shell.connectToApplication(urlRequest, |
| 35 function (services) { | 35 function (services) { |
| 36 var test = connectToService(services, testMojom.TestMojoService); | 36 var test = connectToService(services, testMojom.TestMojoService); |
| 37 test.getRequestorURL().then(function(response) { | 37 test.getRequestorURL().then(function(response) { |
| 38 // The requestor URL seen by the app should be localhost because the | 38 // The requestor URL seen by the app should be localhost because the |
| 39 // connection comes from this script hosted on the test server. | 39 // connection comes from this script hosted on the test server. |
| 40 domAutomationController.send(response.url == 'http://127.0.0.1/'); | 40 domAutomationController.send(response.url == 'http://127.0.0.1/'); |
| 41 }); | 41 }); |
| 42 }, | 42 }, |
| 43 function (exposedServices) {}); | 43 function (exposedServices) {}, |
| 44 new shellMojom.CapabilityFilter({ filter: new Map([["*", ["*"]]]) })); |
| 44 }; | 45 }; |
| 45 }); | 46 }); |
| OLD | NEW |