OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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("mojo/public/js/bindings/connector", [ | 5 define("mojo/public/js/connector", [ |
6 "mojo/public/js/bindings/buffer", | 6 "mojo/public/js/buffer", |
7 "mojo/public/js/bindings/codec", | 7 "mojo/public/js/codec", |
8 "mojo/public/js/bindings/core", | 8 "mojo/public/js/core", |
9 "mojo/public/js/bindings/support", | 9 "mojo/public/js/support", |
10 ], function(buffer, codec, core, support) { | 10 ], function(buffer, codec, core, support) { |
11 | 11 |
12 function Connector(handle) { | 12 function Connector(handle) { |
13 this.handle_ = handle; | 13 this.handle_ = handle; |
14 this.dropWrites_ = false; | 14 this.dropWrites_ = false; |
15 this.error_ = false; | 15 this.error_ = false; |
16 this.incomingReceiver_ = null; | 16 this.incomingReceiver_ = null; |
17 this.readWaitCookie_ = null; | 17 this.readWaitCookie_ = null; |
18 this.errorHandler_ = null; | 18 this.errorHandler_ = null; |
19 | 19 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 TestConnector.prototype.deliverMessage = function() { | 121 TestConnector.prototype.deliverMessage = function() { |
122 this.readMore_(core.RESULT_OK); | 122 this.readMore_(core.RESULT_OK); |
123 } | 123 } |
124 | 124 |
125 var exports = {}; | 125 var exports = {}; |
126 exports.Connector = Connector; | 126 exports.Connector = Connector; |
127 exports.TestConnector = TestConnector; | 127 exports.TestConnector = TestConnector; |
128 return exports; | 128 return exports; |
129 }); | 129 }); |
OLD | NEW |