Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(980)

Unified Diff: corelib/src/implementation/promise_implementation.dart

Issue 8383034: Rename various Proxy classes. Provide a Proxy interface. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: corelib/src/implementation/promise_implementation.dart
===================================================================
--- corelib/src/implementation/promise_implementation.dart (revision 626)
+++ corelib/src/implementation/promise_implementation.dart (working copy)
@@ -262,23 +262,23 @@
}
}
-class ProxyImpl {
+class ProxyBase {
- ProxyImpl.forPort(SendPort port) {
+ ProxyBase.forPort(SendPort port) {
_promise = new Promise<SendPort>();
_promise.complete(port);
}
// Construct a proxy for a message reply; see the [Proxy.forReply]
// documentation for more details.
- ProxyImpl.forReply(Promise<SendPort> port) {
+ ProxyBase.forReply(Promise<SendPort> port) {
_promise = port;
}
// Note that comparing proxies or using them in maps is illegal
// until they complete.
bool operator ==(var other) {
- return (other is ProxyImpl) && _promise.value == other._promise.value;
+ return (other is ProxyBase) && _promise.value == other._promise.value;
}
int hashCode() => _promise.value.hashCode();

Powered by Google App Engine
This is Rietveld 408576698