| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #library('impl_bcap'); | 5 #library('impl_bcap'); |
| 6 #import('../../../../client/json/json.dart'); | 6 #import('../../../../lib/json/json.dart'); |
| 7 #import('../bcap.dart'); | 7 #import('../bcap.dart'); |
| 8 | 8 |
| 9 // This is the implementation of the base Bcap protocol. | 9 // This is the implementation of the base Bcap protocol. |
| 10 | 10 |
| 11 interface BcapInterface { | 11 interface BcapInterface { |
| 12 // Internally, Bcap implemetnations are invoked with this interface, where | 12 // Internally, Bcap implemetnations are invoked with this interface, where |
| 13 // the data is "processed: (serialized). | 13 // the data is "processed: (serialized). |
| 14 void invoke(String method, String data, SuccessI ski, FailureI fki); | 14 void invoke(String method, String data, SuccessI ski, FailureI fki); |
| 15 } | 15 } |
| 16 | 16 |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 Bcap grantAsyncFunc(BcapAsyncFunction f, [String key = null]) { | 333 Bcap grantAsyncFunc(BcapAsyncFunction f, [String key = null]) { |
| 334 return grant(new BcapAsyncFunctionHandler(f), key); | 334 return grant(new BcapAsyncFunctionHandler(f), key); |
| 335 } | 335 } |
| 336 | 336 |
| 337 Bcap restore(String ser) { | 337 Bcap restore(String ser) { |
| 338 return new BcapImpl(ser, this); | 338 return new BcapImpl(ser, this); |
| 339 } | 339 } |
| 340 } | 340 } |
| 341 | 341 |
| 342 | 342 |
| OLD | NEW |