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

Side by Side Diff: samples/proxy/proxy.dart

Issue 9422019: isolates refactor: this change introduces 'dart:isolate' as a library. This is a (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samples/proxy/promise.dart ('k') | samples/tests/samples/src/chat/ChatServerTest.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("proxy"); 5 #library("proxy");
6 #import("dart:isolate");
6 7
7 /** 8 /**
8 * Base class for all RpcProxy's 9 * Base class for all RpcProxy's
9 * 10 *
10 * RpcProxy objects run in the "client" isolate and have a SendPort which 11 * RpcProxy objects run in the "client" isolate and have a SendPort which
11 * they use to send messages to RpcReceiver objects running in a "service" 12 * they use to send messages to RpcReceiver objects running in a "service"
12 * isolate. 13 * isolate.
13 */ 14 */
14 15
15 class RpcProxy { 16 class RpcProxy {
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 if (object === null || !(object is String)) { 231 if (object === null || !(object is String)) {
231 return null; 232 return null;
232 } 233 }
233 String s = object; 234 String s = object;
234 if (!s.startsWith(prefix)) { 235 if (!s.startsWith(prefix)) {
235 return null; 236 return null;
236 } 237 }
237 return new RpcException(s.substring(prefix.length, s.length)); 238 return new RpcException(s.substring(prefix.length, s.length));
238 } 239 }
239 } 240 }
OLDNEW
« no previous file with comments | « samples/proxy/promise.dart ('k') | samples/tests/samples/src/chat/ChatServerTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698