| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 define([ | 5 define([ |
| 6 "console", | |
| 7 "mojo/apps/js/bindings/codec", | 6 "mojo/apps/js/bindings/codec", |
| 8 "mojo/apps/js/bindings/core", | 7 "mojo/apps/js/bindings/core", |
| 9 "mojo/apps/js/bindings/support", | 8 "mojo/apps/js/bindings/support", |
| 10 ], function(console, codec, core, support) { | 9 ], function(codec, core, support) { |
| 11 | 10 |
| 12 function Connector(handle) { | 11 function Connector(handle) { |
| 13 this.handle_ = handle; | 12 this.handle_ = handle; |
| 14 this.error_ = false; | 13 this.error_ = false; |
| 15 this.incomingReceiver_ = null; | 14 this.incomingReceiver_ = null; |
| 16 this.readWaitCookie_ = null; | 15 this.readWaitCookie_ = null; |
| 17 } | 16 } |
| 18 | 17 |
| 19 Connector.prototype.close = function() { | 18 Connector.prototype.close = function() { |
| 20 if (this.readWaitCookie_) { | 19 if (this.readWaitCookie_) { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 this.connector_.close(); | 88 this.connector_.close(); |
| 90 this.connector_ = null; | 89 this.connector_ = null; |
| 91 this.local = null; | 90 this.local = null; |
| 92 this.remote = null; | 91 this.remote = null; |
| 93 }; | 92 }; |
| 94 | 93 |
| 95 var exports = {}; | 94 var exports = {}; |
| 96 exports.Connection = Connection; | 95 exports.Connection = Connection; |
| 97 return exports; | 96 return exports; |
| 98 }); | 97 }); |
| OLD | NEW |