Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 define('keep_alive', [ | |
| 6 'content/public/renderer/service_provider', | |
| 7 'extensions/common/mojo/keep_alive.mojom', | |
| 8 'mojo/public/js/bindings/router', | |
| 9 ], function(serviceProvider, mojom, routerModule) { | |
| 10 | |
| 11 function KeepAlive() { | |
|
Ken Rockot(use gerrit already)
2014/10/24 18:29:55
Documentation? It would be nice (IMO) to have our
Sam McNally
2014/10/27 05:07:24
Done. (Switched to holding the handle directly sin
| |
| 12 this.router_ = new routerModule.Router( | |
| 13 serviceProvider.connectToService(mojom.KeepAlive.name)); | |
| 14 } | |
| 15 | |
| 16 KeepAlive.prototype.close = function() { | |
| 17 this.router_.close(); | |
| 18 }; | |
| 19 | |
| 20 return { | |
| 21 createKeepAlive: function() { return new KeepAlive(); }, | |
| 22 }; | |
| 23 }); | |
| OLD | NEW |