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/bindings/js/connector", [ | 5 define("mojo/public/js/bindings/connector", [ |
6 "mojo/public/bindings/js/codec", | 6 "mojo/public/js/bindings/codec", |
7 "mojo/bindings/js/core", | 7 "mojo/bindings/js/core", |
8 "mojo/bindings/js/support", | 8 "mojo/bindings/js/support", |
9 ], function(codec, core, support) { | 9 ], function(codec, core, support) { |
10 | 10 |
11 function Connector(handle) { | 11 function Connector(handle) { |
12 this.handle_ = handle; | 12 this.handle_ = handle; |
13 this.dropWrites_ = false; | 13 this.dropWrites_ = false; |
14 this.error_ = false; | 14 this.error_ = false; |
15 this.incomingReceiver_ = null; | 15 this.incomingReceiver_ = null; |
16 this.readWaitCookie_ = null; | 16 this.readWaitCookie_ = null; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 var message = new codec.Message(memory, read.handles); | 94 var message = new codec.Message(memory, read.handles); |
95 if (this.incomingReceiver_) | 95 if (this.incomingReceiver_) |
96 this.incomingReceiver_.accept(message); | 96 this.incomingReceiver_.accept(message); |
97 } | 97 } |
98 }; | 98 }; |
99 | 99 |
100 var exports = {}; | 100 var exports = {}; |
101 exports.Connector = Connector; | 101 exports.Connector = Connector; |
102 return exports; | 102 return exports; |
103 }); | 103 }); |
OLD | NEW |